Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make google_oracle_database_autonomous_database.name field unique per acceptance test #8867

Conversation

modular-magician
Copy link
Collaborator

Latest PR in my effort to close the ticket about failing Oracle resource tests. This PR is to address this issue that impacts:

  • TestAccOracleDatabaseAutonomousDatabase_oracledatabaseAutonomousDatabaseFullExample
  • TestAccOracleDatabaseAutonomousDatabase_oracledatabaseAutonomousDatabaseBasicExample
------- Stdout: -------
=== RUN   TestAccOracleDatabaseAutonomousDatabase_oracledatabaseAutonomousDatabaseFullExample
=== PAUSE TestAccOracleDatabaseAutonomousDatabase_oracledatabaseAutonomousDatabaseFullExample
=== CONT  TestAccOracleDatabaseAutonomousDatabase_oracledatabaseAutonomousDatabaseFullExample
    resource_oracle_database_autonomous_database_generated_test.go:96: Step 1/2 error: Error running apply: exit status 1
        Error: Error waiting to create AutonomousDatabase: Error waiting for Creating AutonomousDatabase: Error code 3, message: generic::invalid_argument: InvalidParameter: Provisioning Autonomous Database failed Cause: Provisioning failed because a database named testdatabase already exists in compartment 466158962507. The name must be unique among all Autonomous Data Warehouses and Autonomous Databases in your tenancy in the same region. Specify a different database name and try again.
          with google_oracle_database_autonomous_database.myADB,
          on terraform_plugin_test.tf line 2, in resource "google_oracle_database_autonomous_database" "myADB":
           2: resource "google_oracle_database_autonomous_database" "myADB"{
--- FAIL: TestAccOracleDatabaseAutonomousDatabase_oracledatabaseAutonomousDatabaseFullExample (503.35s)
FAIL

Release Note Template for Downstream PRs (will be copied)

See Write release notes for guidance.


Derived from GoogleCloudPlatform/magic-modules#12511

… acceptance test (#12511)

[upstream:35f6ab5527f0545b71e27e0e5dc124c24890560b]

Signed-off-by: Modular Magician <[email protected]>
@modular-magician modular-magician requested a review from a team as a code owner December 7, 2024 08:13
@modular-magician modular-magician merged commit ccf1caf into hashicorp:main Dec 7, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant