mirror of
https://github.com/coredns/coredns.git
synced 2025-10-30 09:43:17 -04:00
Adding test cases for Corefile parsing (#193)
Adding test cases for Corefile parsing. Some code refactoring to allow test reuse.
This commit is contained in:
11
middleware/kubernetes/k8stest/k8stest.go
Normal file
11
middleware/kubernetes/k8stest/k8stest.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package k8stest
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// checkKubernetesRunning performs a basic
|
||||
func CheckKubernetesRunning() bool {
|
||||
_, err := http.Get("http://localhost:8080/api/v1")
|
||||
return err == nil
|
||||
}
|
||||
Reference in New Issue
Block a user