hashicorp / terraform-provider-google

Terraform Provider for Google Cloud Platform
https://registry.terraform.io/providers/hashicorp/google/latest/docs
Mozilla Public License 2.0
2.33k stars 1.74k forks source link

Failing test(s): TestAccEventarcTrigger_HttpDest #18911

Open SarahFrench opened 3 months ago

SarahFrench commented 3 months ago

Impacted tests

Affected Resource(s)

Failure rates

Message(s)

------- Stdout: -------
=== RUN   TestAccEventarcTrigger_HttpDest
=== PAUSE TestAccEventarcTrigger_HttpDest
=== CONT  TestAccEventarcTrigger_HttpDest
    vcr_utils.go:152: Step 1/2 error: Error running apply: exit status 1
        Error: Error creating Trigger: operation received error: error code "9", message: generic::failed_precondition: Cloud Pub/Sub did not have the necessary permissions configured to support this operation. Please verify that the service account service-594424405950@gcp-sa-pubsub.iam.gserviceaccount.com was granted the Cloud KMS CryptoKey Encrypter/Decrypter role for the project containing the CryptoKey resource projects/ci-test-project-nightly-ga/locations/us-central1/keyRings/tftest-shared-keyring-1/cryptoKeys/tf-bootstrap-eventarc-google-channel-config-key2/grants/679eb2e0524cd8a1., details: [map[@type:type.googleapis.com/google.rpc.RequestInfo requestId:9f3a673896c08bcb] map[@type:type.googleapis.com/google.rpc.RequestInfo requestId:9f3a673896c08bcb]]
         details: map[]
          with google_eventarc_trigger.primary,
          on terraform_plugin_test.tf line 6, in resource "google_eventarc_trigger" "primary":
           6: resource "google_eventarc_trigger" "primary" {
--- FAIL: TestAccEventarcTrigger_HttpDest (39.06s)
FAIL

Nightly build test history

b/357623082

SarahFrench commented 3 months ago

Permissions issue - should be an easy enough fix