mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-15 14:14:39 +00:00
Fix static URL conformance test
1. /validate service does not exist, so remove the test for it and add some that actually do exist 2. The namespace does not exist so this will always return NotFound Note: DoRaw() ignores the StatusCode. This is in preparation for the next commit
This commit is contained in:
@@ -59,14 +59,18 @@ var _ = framework.KubeDescribe("Networking", func() {
|
||||
tests := []struct {
|
||||
path string
|
||||
}{
|
||||
{path: "/validate"},
|
||||
{path: "/healthz"},
|
||||
{path: "/api"},
|
||||
{path: "/apis"},
|
||||
{path: "/logs"},
|
||||
{path: "/metrics"},
|
||||
{path: "/swaggerapi"},
|
||||
{path: "/version"},
|
||||
// TODO: test proxy links here
|
||||
}
|
||||
for _, test := range tests {
|
||||
By(fmt.Sprintf("testing: %s", test.path))
|
||||
data, err := f.Client.RESTClient.Get().
|
||||
Namespace(f.Namespace.Name).
|
||||
AbsPath(test.path).
|
||||
DoRaw()
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user