Skip to content

Commit

Permalink
Add project into kms destroy command
Browse files Browse the repository at this point in the history
  • Loading branch information
romanini-ciandt committed Nov 12, 2024
1 parent 375d688 commit 90ad6c7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func TestMonitoringAlertKeyVersion(t *testing.T) {
// Deleting a key will be tested just for a specific key use case in order
// to avoid increasing too much the testing runtime.

gcloud.Runf(t, fmt.Sprintf("kms keys versions destroy 1 --location us-central1 --keyring %s --key alert-key", keyring))
gcloud.Runf(t, fmt.Sprintf("kms keys versions destroy 1 --location us-central1 --keyring %s --key alert-key --project %s", keyring, projectId))
utils.Poll(t, func() (bool, error) {
alertingLogs := gcloud.Runf(t, "logging read logName:\"projects/%s/logs/monitoring.googleapis.com\" --freshness=2m --project %s", projectId, projectId).Array()
for _, log := range alertingLogs {
Expand Down

0 comments on commit 90ad6c7

Please sign in to comment.