Skip to content

Commit

Permalink
Make private_endpoint_label unique per test run of `TestAccOracleDa…
Browse files Browse the repository at this point in the history
…tabaseAutonomousDatabase_oracledatabaseAutonomousDatabaseFullExample` (#12523)
  • Loading branch information
SarahFrench authored Dec 11, 2024
1 parent 2936c3b commit 1faadb6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions mmv1/products/oracledatabase/AutonomousDatabase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,15 @@ examples:
project: 'my-project'
autonomous_database_id: 'my-instance'
database_name: 'mydatabase'
endpoint_name: 'myendpoint'
deletion_protection: 'true'
ignore_read_extra:
- 'deletion_protection'
test_vars_overrides:
project: '"oci-terraform-testing"'
deletion_protection: 'false'
database_name: 'fmt.Sprintf("tftestdatabase%s", acctest.RandString(t, 10))'
endpoint_name: 'fmt.Sprintf("tftestendpoint%s", acctest.RandString(t, 10))'
virtual_fields:
- name: 'deletion_protection'
type: Boolean
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ resource "google_oracle_database_autonomous_database" "{{$.PrimaryResourceId}}"{
email = "[email protected]"
}
private_endpoint_ip = "10.5.0.11"
private_endpoint_label = "testhost"
private_endpoint_label = "{{index $.Vars "endpoint_name"}}"
}
deletion_protection = "{{index $.Vars "deletion_protection"}}"
}
Expand Down

0 comments on commit 1faadb6

Please sign in to comment.