Skip to content

Commit

Permalink
Merge pull request #123684 from hakuna-matatah/123570
Browse files Browse the repository at this point in the history
Addd negative case for the fix in #123570
  • Loading branch information
k8s-ci-robot committed Mar 5, 2024
2 parents bc00c9e + 4a5fe2d commit 4369fcb
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -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)
Expand All @@ -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) {
Expand Down

0 comments on commit 4369fcb

Please sign in to comment.