Skip to content

Commit ccf1caf

Browse files
Make google_oracle_database_autonomous_database.name field unique per acceptance test (#12511) (#8867)
[upstream:35f6ab5527f0545b71e27e0e5dc124c24890560b] Signed-off-by: Modular Magician <[email protected]>
1 parent a10fc6e commit ccf1caf

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

.changelog/12511.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:none
2+
3+
```

google-beta/services/oracledatabase/resource_oracle_database_autonomous_database_generated_test.go

+4-2
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ func TestAccOracleDatabaseAutonomousDatabase_oracledatabaseAutonomousDatabaseBas
3434
t.Parallel()
3535

3636
context := map[string]interface{}{
37+
"database_name": fmt.Sprintf("tftestdatabase%s", acctest.RandString(t, 10)),
3738
"deletion_protection": false,
3839
"project": "oci-terraform-testing",
3940
"random_suffix": acctest.RandString(t, 10),
@@ -63,7 +64,7 @@ resource "google_oracle_database_autonomous_database" "myADB"{
6364
autonomous_database_id = "tf-test-my-instance%{random_suffix}"
6465
location = "us-east4"
6566
project = "%{project}"
66-
database = "testdb"
67+
database = "%{database_name}"
6768
admin_password = "123Abpassword"
6869
network = data.google_compute_network.default.id
6970
cidr = "10.5.0.0/24"
@@ -88,6 +89,7 @@ func TestAccOracleDatabaseAutonomousDatabase_oracledatabaseAutonomousDatabaseFul
8889
t.Parallel()
8990

9091
context := map[string]interface{}{
92+
"database_name": fmt.Sprintf("tftestdatabase%s", acctest.RandString(t, 10)),
9193
"deletion_protection": false,
9294
"project": "oci-terraform-testing",
9395
"random_suffix": acctest.RandString(t, 10),
@@ -118,7 +120,7 @@ resource "google_oracle_database_autonomous_database" "myADB"{
118120
location = "us-east4"
119121
project = "%{project}"
120122
display_name = "autonomousDatabase displayname"
121-
database = "testdatabase"
123+
database = "%{database_name}"
122124
admin_password = "123Abpassword"
123125
network = data.google_compute_network.default.id
124126
cidr = "10.5.0.0/24"

website/docs/r/oracle_database_autonomous_database.html.markdown

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ resource "google_oracle_database_autonomous_database" "myADB"{
4141
autonomous_database_id = "my-instance"
4242
location = "us-east4"
4343
project = "my-project"
44-
database = "testdb"
44+
database = "mydatabase"
4545
admin_password = "123Abpassword"
4646
network = data.google_compute_network.default.id
4747
cidr = "10.5.0.0/24"
@@ -74,7 +74,7 @@ resource "google_oracle_database_autonomous_database" "myADB"{
7474
location = "us-east4"
7575
project = "my-project"
7676
display_name = "autonomousDatabase displayname"
77-
database = "testdatabase"
77+
database = "mydatabase"
7878
admin_password = "123Abpassword"
7979
network = data.google_compute_network.default.id
8080
cidr = "10.5.0.0/24"

0 commit comments

Comments
 (0)