* 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.
11 lines
182 B
Go
11 lines
182 B
Go
package test
|
|
|
|
import "testing"
|
|
|
|
func TestTempFile(t *testing.T) {
|
|
_, f, e := TempFile(t, ".", "test")
|
|
if e != nil {
|
|
t.Fatalf("failed to create temp file: %s", e)
|
|
}
|
|
defer f()
|
|
}
|