mirror of
				https://github.com/coredns/coredns.git
				synced 2025-11-04 03:03:14 -05:00 
			
		
		
		
	* Update Caddy to 1.0.1, and update import path This fix updates caddy to 1.0.1 and also updates the import path to github.com/caddyserver/caddy This fix fixes 2959 Signed-off-by: Yong Tang <yong.tang.github@outlook.com> * Also update plugin.cfg Signed-off-by: Yong Tang <yong.tang.github@outlook.com> * Update and bump zplugin.go Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
		
			
				
	
	
		
			20 lines
		
	
	
		
			370 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			370 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package loop
 | 
						|
 | 
						|
import (
 | 
						|
	"testing"
 | 
						|
 | 
						|
	"github.com/caddyserver/caddy"
 | 
						|
)
 | 
						|
 | 
						|
func TestSetup(t *testing.T) {
 | 
						|
	c := caddy.NewTestController("dns", `loop`)
 | 
						|
	if err := setup(c); err != nil {
 | 
						|
		t.Fatalf("Expected no errors, but got: %v", err)
 | 
						|
	}
 | 
						|
 | 
						|
	c = caddy.NewTestController("dns", `loop argument`)
 | 
						|
	if err := setup(c); err == nil {
 | 
						|
		t.Fatal("Expected errors, but got none")
 | 
						|
	}
 | 
						|
}
 |