mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-31 10:13:14 -04:00 
			
		
		
		
	mw/autopath: integration test with erratic (#930)
Add integration test with erratic. For this erratic now also returns an autopath searchpath. This tests the whole chain; i.e registring a searchfunction and calling that from autopath. This tests does a autopathing domain and a non-autopathing one.
This commit is contained in:
		| @@ -33,6 +33,7 @@ func TestSetupAutoPath(t *testing.T) { | ||||
| 		{`autopath ` + resolv, false, "", "", []string{"bar.com.", "baz.com.", ""}, ""}, | ||||
| 		// negative | ||||
| 		{`autopath kubernetes`, true, "", "", nil, "open kubernetes: no such file or directory"}, | ||||
| 		{`autopath`, true, "", "", nil, "no resolv-conf"}, | ||||
| 	} | ||||
|  | ||||
| 	for i, test := range tests { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user