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
This commit is contained in:
Miek Gieben 2016-04-10 18:50:11 +01:00
parent db98cd4e4b
commit 0ea2a6088d
13 changed files with 191 additions and 135 deletions

11
test/etcd_test.go Normal file
View file

@ -0,0 +1,11 @@
// +build etcd
package test
import "testing"
// This test starts two coredns servers (and needs etcd). Configure a stubzones in both (that will loop) and
// will then test if we detect this loop.
func TestEtcdStubForwarding(t *testing.T) {
// TODO(miek)
}