@@ -210,6 +210,33 @@ func TestGoldenGateDeploymentResource_basic(t *testing.T) {
210210 Config : config ,
211211 },
212212
213+ {
214+ Config : config + testDeploymentIdVariableStr + acctest .GenerateResourceFromRepresentationMap ("oci_golden_gate_deployment" , "depl_test_ggs_deployment" , acctest .Required , acctest .Create ,
215+ acctest .RepresentationCopyWithNewProperties (goldenGateDeploymentRepresentation , map [string ]interface {}{
216+ "deployment_type" : acctest.Representation {RepType : acctest .Required , Create : `GGSA` },
217+ })),
218+
219+ Check : acctest .ComposeAggregateTestCheckFuncWrapper (
220+ resource .TestCheckResourceAttr (resourceName , "compartment_id" , compartmentId ),
221+ resource .TestCheckResourceAttr (resourceName , "cpu_core_count" , "1" ),
222+ resource .TestCheckResourceAttr (resourceName , "deployment_type" , "GGSA" ),
223+ resource .TestCheckResourceAttr (resourceName , "display_name" , "Terraform_integration_test" ),
224+ resource .TestCheckResourceAttr (resourceName , "is_auto_scaling_enabled" , "false" ),
225+ resource .TestCheckResourceAttrSet (resourceName , "subnet_id" ),
226+ resource .TestCheckResourceAttr (resourceName , "license_model" , "LICENSE_INCLUDED" ),
227+ resource .TestCheckResourceAttr (resourceName , "ogg_data.#" , "1" ),
228+ resource .TestCheckResourceAttr (resourceName , "ogg_data.0.credential_store" , "GOLDENGATE" ),
229+ resource .TestCheckResourceAttr (resourceName , "ogg_data.0.admin_username" , "adminUsername" ),
230+ resource .TestCheckResourceAttrSet (resourceName , "ogg_data.0.deployment_name" ),
231+ resource .TestCheckResourceAttrSet (resourceName , "ogg_data.0.ogg_version" ),
232+
233+ func (s * terraform.State ) (err error ) {
234+ resId , err = acctest .FromInstanceState (s , resourceName , "id" )
235+ return err
236+ },
237+ ),
238+ },
239+
213240 // optional step: verify Create with IAM credential store and identity domain id
214241 {
215242 PreConfig : func () {
0 commit comments