@@ -60,12 +60,11 @@ var (
6060 "alias_name" : Representation {repType : Required , create : `aliasName1` , update : `aliasName2` },
6161 "compartment_id" : Representation {repType : Required , create : `${var.compartment_id}` },
6262 "display_name" : Representation {repType : Required , create : `displayName` , update : `displayName2` },
63- "fqdn" : Representation {repType : Required , create : `fqdn` , update : `fqdn2` },
63+ "fqdn" : Representation {repType : Required , create : `fqdn.example.com ` , update : `fqdn2.example.com ` },
6464 "password" : Representation {repType : Required , create : `BEstrO0ng_#11` , update : `BEstrO0ng_#12` },
6565 "username" : Representation {repType : Required , create : `username` , update : `username2` },
6666 "connection_string" : Representation {repType : Optional , create : `connectionString` , update : `connectionString2` },
6767 "database_id" : Representation {repType : Optional , create : `${data.oci_database_databases.t.databases.0.id}` },
68- "defined_tags" : Representation {repType : Optional , create : `${map("${oci_identity_tag_namespace.tag-namespace1.name}.${oci_identity_tag.tag1.name}", "value")}` , update : `${map("${oci_identity_tag_namespace.tag-namespace1.name}.${oci_identity_tag.tag1.name}", "updatedValue")}` },
6968 "description" : Representation {repType : Optional , create : `description` , update : `description2` },
7069 "freeform_tags" : Representation {repType : Optional , create : map [string ]string {"bar-key" : "value" }, update : map [string ]string {"Department" : "Accounting" }},
7170 //IP address from db Nodes need vnic_id, which is null because of using test header purposes
@@ -75,10 +74,15 @@ var (
7574 "subnet_id" : Representation {repType : Optional , create : `${oci_core_subnet.test_subnet.id}` },
7675 "vault_id" : Representation {repType : Optional , create : `${var.kms_vault_id}` },
7776 "wallet" : Representation {repType : Optional , create : `wallet` , update : `wallet2` },
77+ "lifecycle" : RepresentationGroup {Required , ignoreGGSDefinedTagsChangesRepresentation },
78+ }
79+
80+ ignoreGGSDefinedTagsChangesRepresentation = map [string ]interface {}{
81+ "ignore_changes" : Representation {repType : Required , create : []string {`defined_tags` }},
7882 }
7983
8084 goldenGateDbSystemRepresentation = map [string ]interface {}{
81- "availability_domain" : Representation {repType : Required , create : `${lower("${data.oci_identity_availability_domains.test_availability_domains.availability_domains.2 .name}")}` },
85+ "availability_domain" : Representation {repType : Required , create : `${lower("${data.oci_identity_availability_domains.test_availability_domains.availability_domains.0 .name}")}` },
8286 "compartment_id" : Representation {repType : Required , create : `${var.compartment_id}` },
8387 "database_edition" : Representation {repType : Required , create : `ENTERPRISE_EDITION` },
8488 "db_home" : RepresentationGroup {Required , goldenGateDbSystemDbHomeRepresentation },
99103
100104 goldenGateDbSystemDbHomeRepresentation = map [string ]interface {}{
101105 "database" : RepresentationGroup {Required , goldenGateDatabaseRepresentation },
102- "db_version" : Representation {repType : Required , create : `21.1 .0.0` },
106+ "db_version" : Representation {repType : Required , create : `21.3 .0.0` },
103107 }
104108
105109 goldenGateDatabaseRepresentation = map [string ]interface {}{
@@ -153,7 +157,7 @@ func TestGoldenGateDatabaseRegistrationResource_basic(t *testing.T) {
153157 resource .TestCheckResourceAttr (resourceName , "alias_name" , "aliasName1" ),
154158 resource .TestCheckResourceAttr (resourceName , "compartment_id" , compartmentId ),
155159 resource .TestCheckResourceAttr (resourceName , "display_name" , "displayName" ),
156- resource .TestCheckResourceAttr (resourceName , "fqdn" , "fqdn" ),
160+ resource .TestCheckResourceAttr (resourceName , "fqdn" , "fqdn.example.com " ),
157161 resource .TestCheckResourceAttr (resourceName , "password" , "BEstrO0ng_#11" ),
158162 resource .TestCheckResourceAttr (resourceName , "username" , "username" ),
159163
@@ -177,10 +181,9 @@ func TestGoldenGateDatabaseRegistrationResource_basic(t *testing.T) {
177181 resource .TestCheckResourceAttr (resourceName , "compartment_id" , compartmentId ),
178182 resource .TestCheckResourceAttr (resourceName , "connection_string" , "connectionString" ),
179183 resource .TestCheckResourceAttrSet (resourceName , "database_id" ),
180- resource .TestCheckResourceAttr (resourceName , "defined_tags.%" , "1" ),
181184 resource .TestCheckResourceAttr (resourceName , "description" , "description" ),
182185 resource .TestCheckResourceAttr (resourceName , "display_name" , "displayName" ),
183- resource .TestCheckResourceAttr (resourceName , "fqdn" , "fqdn" ),
186+ resource .TestCheckResourceAttr (resourceName , "fqdn" , "fqdn.example.com " ),
184187 resource .TestCheckResourceAttr (resourceName , "freeform_tags.%" , "1" ),
185188 resource .TestCheckResourceAttrSet (resourceName , "id" ),
186189 // resource.TestCheckResourceAttr(resourceName, "ip_address", "ipAddress"),
@@ -216,10 +219,9 @@ func TestGoldenGateDatabaseRegistrationResource_basic(t *testing.T) {
216219 resource .TestCheckResourceAttr (resourceName , "compartment_id" , compartmentIdU ),
217220 resource .TestCheckResourceAttr (resourceName , "connection_string" , "connectionString" ),
218221 resource .TestCheckResourceAttrSet (resourceName , "database_id" ),
219- resource .TestCheckResourceAttr (resourceName , "defined_tags.%" , "1" ),
220222 resource .TestCheckResourceAttr (resourceName , "description" , "description" ),
221223 resource .TestCheckResourceAttr (resourceName , "display_name" , "displayName" ),
222- resource .TestCheckResourceAttr (resourceName , "fqdn" , "fqdn" ),
224+ resource .TestCheckResourceAttr (resourceName , "fqdn" , "fqdn.example.com " ),
223225 resource .TestCheckResourceAttr (resourceName , "freeform_tags.%" , "1" ),
224226 resource .TestCheckResourceAttrSet (resourceName , "id" ),
225227 // resource.TestCheckResourceAttr(resourceName, "ip_address", "ipAddress"),
@@ -249,10 +251,9 @@ func TestGoldenGateDatabaseRegistrationResource_basic(t *testing.T) {
249251 resource .TestCheckResourceAttr (resourceName , "compartment_id" , compartmentId ),
250252 resource .TestCheckResourceAttr (resourceName , "connection_string" , "connectionString2" ),
251253 resource .TestCheckResourceAttrSet (resourceName , "database_id" ),
252- resource .TestCheckResourceAttr (resourceName , "defined_tags.%" , "1" ),
253254 resource .TestCheckResourceAttr (resourceName , "description" , "description2" ),
254255 resource .TestCheckResourceAttr (resourceName , "display_name" , "displayName2" ),
255- resource .TestCheckResourceAttr (resourceName , "fqdn" , "fqdn2" ),
256+ resource .TestCheckResourceAttr (resourceName , "fqdn" , "fqdn2.example.com " ),
256257 resource .TestCheckResourceAttr (resourceName , "freeform_tags.%" , "1" ),
257258 resource .TestCheckResourceAttrSet (resourceName , "id" ),
258259 // resource.TestCheckResourceAttr(resourceName, "ip_address", "ipAddress"),
@@ -298,10 +299,9 @@ func TestGoldenGateDatabaseRegistrationResource_basic(t *testing.T) {
298299 resource .TestCheckResourceAttr (singularDatasourceName , "alias_name" , "aliasName2" ),
299300 resource .TestCheckResourceAttr (singularDatasourceName , "compartment_id" , compartmentId ),
300301 resource .TestCheckResourceAttr (singularDatasourceName , "connection_string" , "connectionString2" ),
301- resource .TestCheckResourceAttr (singularDatasourceName , "defined_tags.%" , "1" ),
302302 resource .TestCheckResourceAttr (singularDatasourceName , "description" , "description2" ),
303303 resource .TestCheckResourceAttr (singularDatasourceName , "display_name" , "displayName2" ),
304- resource .TestCheckResourceAttr (singularDatasourceName , "fqdn" , "fqdn2" ),
304+ resource .TestCheckResourceAttr (singularDatasourceName , "fqdn" , "fqdn2.example.com " ),
305305 resource .TestCheckResourceAttr (singularDatasourceName , "freeform_tags.%" , "1" ),
306306 resource .TestCheckResourceAttrSet (singularDatasourceName , "id" ),
307307 //resource.TestCheckResourceAttr(singularDatasourceName, "ip_address", "ipAddress"),
0 commit comments