Skip to content

Commit

Permalink
Make google_oracle_database_autonomous_database.name field unique per…
Browse files Browse the repository at this point in the history
… acceptance test (#12511) (#8867)

[upstream:35f6ab5527f0545b71e27e0e5dc124c24890560b]

Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored Dec 7, 2024
1 parent a10fc6e commit ccf1caf
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .changelog/12511.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:none

```
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ func TestAccOracleDatabaseAutonomousDatabase_oracledatabaseAutonomousDatabaseBas
t.Parallel()

context := map[string]interface{}{
"database_name": fmt.Sprintf("tftestdatabase%s", acctest.RandString(t, 10)),
"deletion_protection": false,
"project": "oci-terraform-testing",
"random_suffix": acctest.RandString(t, 10),
Expand Down Expand Up @@ -63,7 +64,7 @@ resource "google_oracle_database_autonomous_database" "myADB"{
autonomous_database_id = "tf-test-my-instance%{random_suffix}"
location = "us-east4"
project = "%{project}"
database = "testdb"
database = "%{database_name}"
admin_password = "123Abpassword"
network = data.google_compute_network.default.id
cidr = "10.5.0.0/24"
Expand All @@ -88,6 +89,7 @@ func TestAccOracleDatabaseAutonomousDatabase_oracledatabaseAutonomousDatabaseFul
t.Parallel()

context := map[string]interface{}{
"database_name": fmt.Sprintf("tftestdatabase%s", acctest.RandString(t, 10)),
"deletion_protection": false,
"project": "oci-terraform-testing",
"random_suffix": acctest.RandString(t, 10),
Expand Down Expand Up @@ -118,7 +120,7 @@ resource "google_oracle_database_autonomous_database" "myADB"{
location = "us-east4"
project = "%{project}"
display_name = "autonomousDatabase displayname"
database = "testdatabase"
database = "%{database_name}"
admin_password = "123Abpassword"
network = data.google_compute_network.default.id
cidr = "10.5.0.0/24"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ resource "google_oracle_database_autonomous_database" "myADB"{
autonomous_database_id = "my-instance"
location = "us-east4"
project = "my-project"
database = "testdb"
database = "mydatabase"
admin_password = "123Abpassword"
network = data.google_compute_network.default.id
cidr = "10.5.0.0/24"
Expand Down Expand Up @@ -74,7 +74,7 @@ resource "google_oracle_database_autonomous_database" "myADB"{
location = "us-east4"
project = "my-project"
display_name = "autonomousDatabase displayname"
database = "testdatabase"
database = "mydatabase"
admin_password = "123Abpassword"
network = data.google_compute_network.default.id
cidr = "10.5.0.0/24"
Expand Down

0 comments on commit ccf1caf

Please sign in to comment.