@@ -34,11 +34,9 @@ func TestAccOracleDatabaseCloudVmCluster_oracledatabaseCloudVmclusterBasicExampl
34
34
t .Parallel ()
35
35
36
36
context := map [string ]interface {}{
37
- "cloud_exadata_infrastructure_id" : "ofake-exadata-for-vm-basic" ,
38
- "cloud_vm_cluster_id" : "ofake-vmcluster-basic" ,
39
- "deletion_protection" : false ,
40
- "project" : "oci-terraform-testing" ,
41
- "random_suffix" : acctest .RandString (t , 10 ),
37
+ "deletion_protection" : false ,
38
+ "project" : "oci-terraform-testing" ,
39
+ "random_suffix" : acctest .RandString (t , 10 ),
42
40
}
43
41
44
42
acctest .VcrTest (t , resource.TestCase {
@@ -62,8 +60,8 @@ func TestAccOracleDatabaseCloudVmCluster_oracledatabaseCloudVmclusterBasicExampl
62
60
func testAccOracleDatabaseCloudVmCluster_oracledatabaseCloudVmclusterBasicExample (context map [string ]interface {}) string {
63
61
return acctest .Nprintf (`
64
62
resource "google_oracle_database_cloud_vm_cluster" "my_vmcluster"{
65
- cloud_vm_cluster_id = "%{cloud_vm_cluster_id }"
66
- display_name = "%{cloud_vm_cluster_id } displayname"
63
+ cloud_vm_cluster_id = "tf-test-my-instance%{random_suffix }"
64
+ display_name = "tf-test-my-instance%{random_suffix } displayname"
67
65
location = "us-east4"
68
66
project = "%{project}"
69
67
exadata_infrastructure = google_oracle_database_cloud_exadata_infrastructure.cloudExadataInfrastructures.id
@@ -82,8 +80,8 @@ resource "google_oracle_database_cloud_vm_cluster" "my_vmcluster"{
82
80
}
83
81
84
82
resource "google_oracle_database_cloud_exadata_infrastructure" "cloudExadataInfrastructures"{
85
- cloud_exadata_infrastructure_id = "%{cloud_exadata_infrastructure_id }"
86
- display_name = "%{cloud_exadata_infrastructure_id } displayname"
83
+ cloud_exadata_infrastructure_id = "tf-test-my-exadata%{random_suffix }"
84
+ display_name = "tf-test-my-exadata%{random_suffix } displayname"
87
85
location = "us-east4"
88
86
project = "%{project}"
89
87
properties {
@@ -106,11 +104,9 @@ func TestAccOracleDatabaseCloudVmCluster_oracledatabaseCloudVmclusterFullExample
106
104
t .Parallel ()
107
105
108
106
context := map [string ]interface {}{
109
- "cloud_exadata_infrastructure_id" : "ofake-exadata-for-vm-full" ,
110
- "cloud_vm_cluster_id" : "ofake-vmcluster-full" ,
111
- "deletion_protection" : false ,
112
- "project" : "oci-terraform-testing" ,
113
- "random_suffix" : acctest .RandString (t , 10 ),
107
+ "deletion_protection" : false ,
108
+ "project" : "oci-terraform-testing" ,
109
+ "random_suffix" : acctest .RandString (t , 10 ),
114
110
}
115
111
116
112
acctest .VcrTest (t , resource.TestCase {
@@ -134,8 +130,8 @@ func TestAccOracleDatabaseCloudVmCluster_oracledatabaseCloudVmclusterFullExample
134
130
func testAccOracleDatabaseCloudVmCluster_oracledatabaseCloudVmclusterFullExample (context map [string ]interface {}) string {
135
131
return acctest .Nprintf (`
136
132
resource "google_oracle_database_cloud_vm_cluster" "my_vmcluster"{
137
- cloud_vm_cluster_id = "%{cloud_vm_cluster_id }"
138
- display_name = "%{cloud_vm_cluster_id } displayname"
133
+ cloud_vm_cluster_id = "tf-test-my-instance%{random_suffix }"
134
+ display_name = "tf-test-my-instance%{random_suffix } displayname"
139
135
location = "us-east4"
140
136
project = "%{project}"
141
137
exadata_infrastructure = google_oracle_database_cloud_exadata_infrastructure.cloudExadataInfrastructures.id
@@ -175,8 +171,8 @@ resource "google_oracle_database_cloud_vm_cluster" "my_vmcluster"{
175
171
}
176
172
177
173
resource "google_oracle_database_cloud_exadata_infrastructure" "cloudExadataInfrastructures"{
178
- cloud_exadata_infrastructure_id = "%{cloud_exadata_infrastructure_id }"
179
- display_name = "%{cloud_exadata_infrastructure_id } displayname"
174
+ cloud_exadata_infrastructure_id = "tf-test-my-exadata%{random_suffix }"
175
+ display_name = "tf-test-my-exadata%{random_suffix } displayname"
180
176
location = "us-east4"
181
177
project = "%{project}"
182
178
properties {
0 commit comments