mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-07 03:03:59 +00:00
Merge pull request #123684 from hakuna-matatah/123570
Addd negative case for the fix in #123570
This commit is contained in:
commit
4369fcb00f
@ -210,6 +210,7 @@ func TestAPIServiceOpenAPIServiceMismatch(t *testing.T) {
|
||||
expectPath(t, swagger, "/apis/apiservicegroup/v1")
|
||||
expectPath(t, swagger, "/apis/apiservicegroup/v2")
|
||||
expectPath(t, swagger, "/apis/apiregistration.k8s.io/v1")
|
||||
expectNoPath(t, swagger, "/apis/a")
|
||||
|
||||
t.Logf("Remove APIService %s", apiService.Name)
|
||||
s.RemoveAPIService(apiService.Name)
|
||||
@ -221,6 +222,7 @@ func TestAPIServiceOpenAPIServiceMismatch(t *testing.T) {
|
||||
// Ensure that the if the APIService is added then removed, the OpenAPI disappears from the aggregated OpenAPI as well.
|
||||
expectNoPath(t, swagger, "/apis/apiservicegroup/v1")
|
||||
expectPath(t, swagger, "/apis/apiregistration.k8s.io/v1")
|
||||
expectNoPath(t, swagger, "/apis/a")
|
||||
}
|
||||
|
||||
func TestAddRemoveAPIService(t *testing.T) {
|
||||
|
Loading…
Reference in New Issue
Block a user