The namespace context for a get of an individual namespace is the namespace

This commit is contained in:
derekwaynecarr
2015-02-11 14:53:32 -05:00
parent 15c57efde2
commit 7b34d6ef8e
2 changed files with 4 additions and 2 deletions

View File

@@ -80,7 +80,7 @@ func TestGetAPIRequestInfo(t *testing.T) {
// resource paths
{"GET", "/namespaces", "list", "", "", "namespaces", "Namespace", "", []string{"namespaces"}},
{"GET", "/namespaces/other", "get", "", "", "namespaces", "Namespace", "other", []string{"namespaces", "other"}},
{"GET", "/namespaces/other", "get", "", "other", "namespaces", "Namespace", "other", []string{"namespaces", "other"}},
{"GET", "/namespaces/other/pods", "list", "", "other", "pods", "Pod", "", []string{"pods"}},
{"GET", "/namespaces/other/pods/foo", "get", "", "other", "pods", "Pod", "foo", []string{"pods", "foo"}},