Skip to content

Commit

Permalink
Merge pull request GoogleCloudPlatform#1211 from justinsb/fix_apikeys…
Browse files Browse the repository at this point in the history
…_test

tests: Don't try to delete APIKeysKey
  • Loading branch information
google-oss-prow[bot] authored Feb 8, 2024
2 parents be755fe + f4076af commit 3bb58f7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/test/gcp/gcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,10 @@ func NewIAMClient(t *testing.T) *iam.Service {

func ResourceSupportsDeletion(resourceKind string) bool {
switch resourceKind {
case "APIKeysKey":
// APIKeysKey has a delete method, but the key is only marked for deletion.
return false

case "BigQueryJob",
"BinaryAuthorizationPolicy",
"ComputeProjectMetadata",
Expand Down

0 comments on commit 3bb58f7

Please sign in to comment.