Commit Graph

37 Commits

Author SHA1 Message Date
Chris O'Haver
e8184d3a5a plugin/kubernetes: Modify integration tests for coredns/ci (#1152)
* integration ci

* rename test

* unfunctionalize DoIntegrationTests

* alphabetize expected answers

* Enable out-of-cluster test

* Enable out-of-cluster test

* move integration tests back to ci repo
2017-10-25 15:40:48 -04:00
Miek Gieben
d8714e64e4 Remove the word middleware (#1067)
* Rename middleware to plugin

first pass; mostly used 'sed', few spots where I manually changed
text.

This still builds a coredns binary.

* fmt error

* Rename AddMiddleware to AddPlugin

* Readd AddMiddleware to remain backwards compat
2017-09-14 09:36:06 +01:00
Miek Gieben
afad8abef3 travis: enable go 1.9 (#992) 2017-08-26 17:05:56 +01:00
Sandeep Rajan
5e9991556e Middleware/Kubernetes: Add RR check to K8s integration tests (#884) 2017-08-24 11:05:16 -04:00
Miek Gieben
0a80ca7dba travis: drop 1.7 (#956)
Yes, the previous Go version is important but this doubles the wait on
travis. This drops 1.7 from travis. This means we wait for bug reports
to show up, or tell people to use the precompiled binaries are docker
containers.
2017-08-20 00:40:06 +01:00
Yong Tang
a682f73b5c Disable Travis cache (#953)
It looks like the cached path
- `$GOPATH/src`
- `$GOPATH/pkg`
overlaps with the source path of
`$GOPATH/src/github.com/coredns/coredns`.

Disable the cache for now.

May enable cache in the future if we could exclude
`$GOPATH/src/github.com/coredns/coredns` from `$GOPATH/src`.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2017-08-19 20:47:48 +01:00
Miek Gieben
60c83fefac travis: remove -bench and -race from coverage (#949)
Not needed and already done in the other test (bench is not looked at
at all)
2017-08-19 17:53:31 +01:00
Miek Gieben
219a899772 travis: parallize builds (#947)
* travis: parallize builds

* trying out stuff

* order matters
2017-08-19 17:02:16 +01:00
insomniac
1ab8b37e7e Make CoreDNS build on Go 1.7 (#919) 2017-08-14 13:51:18 -07:00
Chris O'Haver
d917ff5ac2 Add k8s external service CNAMEs (#677)
* Add external service cnames

* remove cruft

* update CI k8s version

* change CI k8s version

* min k8s ver for ext services

* trying k8s 1.5

* k8s 1.5 requires ports spec

* remove kruft

* update dns schema version
2017-05-30 13:20:39 +01:00
Miek Gieben
757f49d8ff dump travis to 1.8 (#606) 2017-03-19 09:12:18 +00:00
Yong Tang
81af74aad0 Fix import path github.com/miekg/coredns -> github.com/coredns/coredns (#547)
This fix fixes import path from
`github.com/miekg/coredns`
->
`github.com/coredns/coredns`
2017-02-22 06:51:47 +00:00
Miek Gieben
a5f3cb5fe5 La context (#521)
* middleware/proxy: give Exchange a context

Make context.Context the first paramater in the Exchange method.
This is inline with all other query functions.

* up the version
2017-02-11 16:56:04 +00:00
John Belamaric
afe4368c34 K8s Test Cleanup and Service PTR
Change the CI setup for K8s to be simpler. Now it just creates a
set of objects via a yaml file, making it very easy to modify
the tests.

Implement PTR for services.
2016-11-15 01:35:24 +00:00
Yong Tang
a2bd9ad3f5 Use docker container (instead of binary) for kubectl and travis cleanup (#352)
This fix uses docker container for kubectl. Since Kubernetes docker
image hyperkube has already been downloaded and it consists of
kubectl, there is really no need to download kubectl binary again.

This fix cleans up the Kubernetes related travis setup and removes
unneeded scripts.

This fix also fixes several mismatches of the Kubernetes version used,
so that any changes in version in the future only need to update .travis.yml.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2016-10-20 11:06:15 -07:00
Miek Gieben
ea98429512 kubernetes: hide contrib (#320)
This is purely travis (and maybe local testing). Does not warrent (IMHO)
a contrib/ directory. Hide it in a .travis directory.
2016-10-05 16:17:52 +01:00
Yong Tang
9b6b8d2762 Cleanup Makefile and .travis.yml (#305)
This fix updates .travis.yml and Makefile for several places:
- Remove unneeded `docker pull gcr.io/google_containers/hyperkube-amd64:v1.2.4` (only v1.3.7 was used)
- Use docker to deploy etcd (insteadof downloading etcd binary).
- Merge `make testk8s` and `make testk8s-setup` (no need to have multiple targets for a couple of tests)
- Set version of etcd and kubernetes in .travis.yml (so that it is easy to update new version in the future)

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2016-09-27 07:57:04 +08:00
Yong Tang
6a7db541fa Move .coverage.sh to make coverage (#301)
This fix moves the content of `.coverage.sh` to the Makefile
and creates a target of `make coverage`. This cleans up as
there is really no need to have a redundant script for
simple coverage test.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2016-09-26 07:22:48 +01:00
Yong Tang
ed1a4eed2e Clean up .travis.yml and use go_import_path (#302)
This fix cleans up `.travis.yml` and use `go_import_path`
to replace the customerized script for go import path
(in case the build is from a forked repo).

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2016-09-26 07:22:07 +01:00
Miek Gieben
1e706b5f21 Rename coverage.sh to .coverage.sh (#270)
This is "infrastructure/meta" code, don't need to see it.
2016-09-19 10:56:21 +01:00
Yong Tang
587a347a40 Add codecov.io processing with travis-ci integration. (#269)
This fix adds the codecov.io process with travis-ci integration,
so that code coverage could be processed and displayed with codecov.io.

Since go cannot use test profile flag with multiple packages,
we have to iterate through packages with `coverage.sh`.

Some consolidation could be done by combining them into one `make test`.

Will do some consolidation in a follow up PR.

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2016-09-18 11:01:57 -07:00
Michael Richmond
2153d2defd Fix k8s integration tests (#231)
* Adding debug message when starting k8s controller

* Adding work-around for timing issue in k8s integration tests

* Remove unused import

* Fix Makefile for ast package

* Increase k8s verbosity in travis

* Updating TODO list to find root cause of test issue

* go fmt cleanup
2016-08-23 07:15:21 +01:00
Miek Gieben
9ac3cab1b7 Make CoreDNS a server type plugin for Caddy (#220)
* Make CoreDNS a server type plugin for Caddy

Remove code we don't need and port all middleware over. Fix all tests
and rework the documentation.

Also make `go generate` build a caddy binary which we then copy into
our directory. This means `go build`-builds remain working as-is.

And new etc instances in each etcd test for better isolation.
Fix more tests and rework test.Server with the newer support Caddy offers.

Fix Makefile to support new mode of operation.
2016-08-19 17:14:17 -07:00
Michael Richmond
9aaeef6376 Moving k8s support scripts out of code folder (#216)
* Adding pod setup to kubernetes startup scripts

* Adding template description to k8s README.md

* Fix typo.

* Moving kubernetes setup scripts out of go folder

* Fixing script error

* Adding messages to k8s scripts for clarity
2016-08-16 09:12:52 -07:00
Miek Gieben
79fd268e9c Remove go 1.5 from travi (#214) 2016-08-14 14:24:40 -07:00
Michael Richmond
6d90b745e0 Switch over to k8s notification API (#202)
* Merge notification code by @aledbf and update for recent changes.
* Fix travis environment to correctly build with k8s.io and forked repositories.
* Refactored kubernetes Corefile parser
* Added lots of Corefile parsing tests
2016-08-05 18:19:51 -07:00
Michael Richmond
8dec292668 Fix Travis IPv6 and add k8s integration testing to CI (#194)
Updating travis yaml file to:
* Force IPv6 to work in their VM environment
* Enable docker (requires VM environment and sudo)
* Run kubernetes integration tests in Travis
2016-07-27 10:01:24 -07:00
Miek Gieben
e5e0cde08f Fix travis.yml (#129)
Also fix failing test in setup/error.
2016-04-21 14:26:02 +01:00
Miek Gieben
b46bc89a21 etcd build is broken 2016-04-19 23:03:41 +01:00
Miek Gieben
8184328dba Use IsDomainName (#119)
Liberal as it as it still has its use. Reject invalid domain names
in the config.

Unrelated: clear up the README as well. And fix travis script.
2016-04-13 23:23:35 +01:00
Miek Gieben
0ea2a6088d Add TestServer (#102)
Add a fullblown testing server. This allows us to do integration tests.

Also add a basic proxy test. Further tests will test etcd proxy
and stub zone communication and other "wildish" configurations.
Redo the server startup, so we can access the ports it listens on when
it has started up (with dns.ActivateAndServer).

Extend the .travis file to download etcd and test for that as well.

Put integration tests in test dir
2016-04-10 18:50:11 +01:00
Miek Gieben
b915393aa0 Add Benchmark functions
Add benchmark for normal and DNSSEC lookup. We can probably shave quite
a lot of these, but first lets actually get to something that is
serving.
2016-03-31 22:10:17 +01:00
Miek Gieben
9d14d5fcf0 no tip 2016-03-19 16:33:59 +00:00
Miek Gieben
0ed79664db Fix more tests and remove json caddyfile stuff 2016-03-19 14:55:26 +00:00
Miek Gieben
d933bb2666 Make whole heap of tests better 2016-03-19 14:46:32 +00:00
Miek Gieben
b45b686d8a travis 2016-03-19 07:37:20 +00:00
Miek Gieben
3ec0d9fe6b First commit 2016-03-18 20:57:35 +00:00