@@ -58,14 +58,15 @@ func TestGoldenGateDeploymentBackupResource_basic(t *testing.T) {
5858 }
5959
6060 deploymentBackupRepresentation = map [string ]interface {}{
61- "bucket" : acctest.Representation {RepType : acctest .Required , Create : `${var.objectstorage_bucket_name}` },
62- "compartment_id" : acctest.Representation {RepType : acctest .Required , Create : `${var.compartment_id}` },
63- "deployment_id" : acctest.Representation {RepType : acctest .Required , Create : `${var.test_deployment_id}` },
64- "display_name" : acctest.Representation {RepType : acctest .Required , Create : `demoDeploymentBackup` },
65- "namespace" : acctest.Representation {RepType : acctest .Required , Create : `${var.objectstorage_namespace}` },
66- "object" : acctest.Representation {RepType : acctest .Required , Create : `object` },
67- "freeform_tags" : acctest.Representation {RepType : acctest .Optional , Create : map [string ]string {"bar-key" : "value" }, Update : map [string ]string {"Department" : "Accounting" }},
68- "lifecycle" : acctest.RepresentationGroup {RepType : acctest .Required , Group : ignoreDefinedTagsChangesRepresentation },
61+ "bucket" : acctest.Representation {RepType : acctest .Required , Create : `${var.objectstorage_bucket_name}` },
62+ "compartment_id" : acctest.Representation {RepType : acctest .Required , Create : `${var.compartment_id}` },
63+ "deployment_id" : acctest.Representation {RepType : acctest .Required , Create : `${var.test_deployment_id}` },
64+ "display_name" : acctest.Representation {RepType : acctest .Required , Create : `demoDeploymentBackup` },
65+ "namespace" : acctest.Representation {RepType : acctest .Required , Create : `${var.objectstorage_namespace}` },
66+ "object" : acctest.Representation {RepType : acctest .Required , Create : `object` },
67+ "freeform_tags" : acctest.Representation {RepType : acctest .Optional , Create : map [string ]string {"bar-key" : "value" }, Update : map [string ]string {"Department" : "Accounting" }},
68+ "is_metadata_only" : acctest.Representation {RepType : acctest .Optional , Create : `false` },
69+ "lifecycle" : acctest.RepresentationGroup {RepType : acctest .Required , Group : ignoreDefinedTagsChangesRepresentation },
6970 }
7071
7172 deploymentBackupLocksRepresentation = map [string ]interface {}{
@@ -111,6 +112,7 @@ func TestGoldenGateDeploymentBackupResource_basic(t *testing.T) {
111112 makeVariableStr (OBJECTSTORAGE_BUCKET_NAME , t ) +
112113 makeVariableStr (OBJECTSTORAGE_NAMESPACE , t ) +
113114 makeVariableStr (TEST_DEPLOYMENT_ID , t ) +
115+ makeVariableStr (TEST_DEPLOYMENT_TYPE , t ) +
114116 DeploymentBackupResourceDependencies
115117
116118 // Save TF content to Create resource with optional properties. This has to be exactly the same as the config part in the "Create with optionals" step in the test.
@@ -244,6 +246,7 @@ func TestGoldenGateDeploymentBackupResource_basic(t *testing.T) {
244246 resource .TestCheckResourceAttr (resourceName , "deployment_type" , testDeploymentType ),
245247 resource .TestCheckResourceAttr (datasourceName , "display_name" , "demoDeploymentBackup" ),
246248 resource .TestCheckResourceAttr (datasourceName , "state" , "ACTIVE" ),
249+ resource .TestCheckResourceAttr (resourceName , "is_metadata_only" , "false" ),
247250
248251 resource .TestCheckResourceAttr (datasourceName , "deployment_backup_collection.#" , "1" ),
249252 resource .TestCheckResourceAttr (datasourceName , "deployment_backup_collection.0.items.#" , "1" ),
@@ -261,6 +264,7 @@ func TestGoldenGateDeploymentBackupResource_basic(t *testing.T) {
261264 resource .TestCheckResourceAttrSet (singularDatasourceName , "bucket" ),
262265 resource .TestCheckResourceAttr (singularDatasourceName , "compartment_id" , testCompartmentId ),
263266 resource .TestCheckResourceAttr (resourceName , "deployment_type" , testDeploymentType ),
267+ resource .TestCheckResourceAttr (resourceName , "is_metadata_only" , "false" ),
264268 resource .TestCheckResourceAttr (singularDatasourceName , "display_name" , "demoDeploymentBackup" ),
265269 resource .TestCheckResourceAttr (singularDatasourceName , "freeform_tags.%" , "1" ),
266270 resource .TestCheckResourceAttrSet (singularDatasourceName , "id" ),
0 commit comments