mirror of
https://github.com/coredns/coredns.git
synced 2025-11-03 10:43:20 -05:00
Fix path for asset storage (#144)
Define locations for keys and secondary zones, 'n stuff. Add a bunch of tests as well.
This commit is contained in:
11
middleware/test/file_test.go
Normal file
11
middleware/test/file_test.go
Normal file
@@ -0,0 +1,11 @@
|
||||
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()
|
||||
}
|
||||
8
middleware/test/helpers_test.go
Normal file
8
middleware/test/helpers_test.go
Normal file
@@ -0,0 +1,8 @@
|
||||
package test
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestA(t *testing.T) {
|
||||
// should not crash
|
||||
A("miek.nl. IN A 127.0.0.1")
|
||||
}
|
||||
Reference in New Issue
Block a user