mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 15:05:20 +00:00
Adding namespaces/finalizer subresource to federation apiserver
This commit is contained in:
@@ -283,8 +283,8 @@ func testCoreResourceList(t *testing.T) {
|
||||
}
|
||||
assert.Equal(t, "", apiResourceList.APIVersion)
|
||||
assert.Equal(t, v1.SchemeGroupVersion.String(), apiResourceList.GroupVersion)
|
||||
// Assert that there are exactly 6 resources.
|
||||
assert.Equal(t, 6, len(apiResourceList.APIResources))
|
||||
// Assert that there are exactly 7 resources.
|
||||
assert.Equal(t, 7, len(apiResourceList.APIResources))
|
||||
|
||||
// Verify services.
|
||||
found := findResource(apiResourceList.APIResources, "services")
|
||||
@@ -301,6 +301,9 @@ func testCoreResourceList(t *testing.T) {
|
||||
found = findResource(apiResourceList.APIResources, "namespaces/status")
|
||||
assert.NotNil(t, found)
|
||||
assert.False(t, found.Namespaced)
|
||||
found = findResource(apiResourceList.APIResources, "namespaces/finalize")
|
||||
assert.NotNil(t, found)
|
||||
assert.False(t, found.Namespaced)
|
||||
|
||||
// Verify events.
|
||||
found = findResource(apiResourceList.APIResources, "events")
|
||||
|
||||
Reference in New Issue
Block a user