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.73k forks source link

Failing test(s): TestAccSecurityPosturePostureDeployment_securityposturePostureDeployment_update #19537

Closed zli82016 closed 6 hours ago

zli82016 commented 1 month ago

Impacted tests

Affected Resource(s)

Failure rates

Message(s)

    resource_securityposture_posture_deployment_test.go:23: Step 1/4 error: Error running apply: exit status 1
        Error: Error creating Posture: googleapi: Error 404: Resource "organization not onboarded to security posture service: organization organizations/xxxxxxxx not found: not found" was not found
        Details:
        [
          {
            "@type": "type.googleapis.com/google.rpc.ResourceInfo",
            "resourceName": "organization not onboarded to security posture service: organization organizations/xxxxxxx not found: not found"
          },
          {
            "@type": "type.googleapis.com/google.rpc.RequestInfo",
            "requestId": "f211bf1da8eb831b"
          }
        ]
          with google_securityposture_posture.posture_one,
          on terraform_plugin_test.tf line 2, in resource "google_securityposture_posture" "posture_one":
           2: resource "google_securityposture_posture" "posture_one" {

Nightly build test history

b/371061648

melinath commented 6 hours ago

Enrolled the GA nightly test org in SCC premium tier, which resolved the issue.