3131 "display_name" : Representation {repType : Optional , create : `displayName` , update : `displayName2` },
3232 "id" : Representation {repType : Optional , create : `${oci_devops_deployment.test_deployment.id}` },
3333 "project_id" : Representation {repType : Optional , create : `${oci_devops_project.test_project.id}` },
34- "state" : Representation {repType : Optional , create : `Accepted` },
3534 "filter" : RepresentationGroup {Required , devopsDeploymentDataSourceFilterRepresentation }}
3635 devopsDeploymentDataSourceFilterRepresentation = map [string ]interface {}{
3736 "name" : Representation {repType : Required , create : `id` },
4443 "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")}` },
4544 "deployment_arguments" : RepresentationGroup {Optional , deploymentDeploymentArgumentsRepresentation },
4645 "display_name" : Representation {repType : Optional , create : `displayName` },
47- "freeform_tags" : Representation {repType : Optional , create : map [string ]string {"bar-key" : "value" }, update : map [string ]string {"Department" : "Accounting" }},
46+ "freeform_tags" : Representation {repType : Optional , create : map [string ]string {"bar-key" : "value" }},
47+ "lifecycle" : RepresentationGroup {Required , ignoreDefinedTagsDifferencesRepresentation },
4848 }
4949 deploymentDeploymentArgumentsRepresentation = map [string ]interface {}{
5050 "items" : RepresentationGroup {Optional , deploymentDeploymentArgumentsItemsRepresentation },
7171 AvailabilityDomainConfig +
7272 DefinedTagsDependencies +
7373 generateResourceFromRepresentationMap ("oci_logging_log_group" , "test_log_group" , Required , Create , logGroupRepresentation ) +
74- generateResourceFromRepresentationMap ("oci_logging_log" , "test_log" , Optional , Create , getMultipleUpdatedRepresenationCopy (
75- []string {"configuration" , "is_enabled" , "retention_duration" }, []interface {}{
76- RepresentationGroup {Required , devopLogConfigurationRepresentation },
77- Representation {repType : Required , create : `true` },
78- Representation {repType : Required , create : `30` }},
79- logRepresentation )) +
74+ generateResourceFromRepresentationMap ("oci_logging_log" , "test_log" , Optional , Create , deployLogRepresentation ) +
8075 generateResourceFromRepresentationMap ("oci_ons_notification_topic" , "test_notification_topic" , Required , Create , notificationTopicRepresentation )
8176)
8277
@@ -130,7 +125,6 @@ func TestDevopsDeploymentResource_basic(t *testing.T) {
130125 generateResourceFromRepresentationMap ("oci_devops_deployment" , "test_deployment" , Optional , Create , devopsDeploymentRepresentation ),
131126 Check : resource .ComposeAggregateTestCheckFunc (
132127 resource .TestCheckResourceAttrSet (resourceName , "compartment_id" ),
133- resource .TestCheckResourceAttr (resourceName , "defined_tags.%" , "1" ),
134128 resource .TestCheckResourceAttrSet (resourceName , "deploy_pipeline_id" ),
135129 resource .TestCheckResourceAttr (resourceName , "deployment_arguments.#" , "1" ),
136130 resource .TestCheckResourceAttr (resourceName , "deployment_arguments.0.items.#" , "1" ),
@@ -160,7 +154,6 @@ func TestDevopsDeploymentResource_basic(t *testing.T) {
160154 generateResourceFromRepresentationMap ("oci_devops_deployment" , "test_deployment" , Optional , Update , devopsDeploymentRepresentation ),
161155 Check : resource .ComposeAggregateTestCheckFunc (
162156 resource .TestCheckResourceAttrSet (resourceName , "compartment_id" ),
163- resource .TestCheckResourceAttr (resourceName , "defined_tags.%" , "1" ),
164157 resource .TestCheckResourceAttrSet (resourceName , "deploy_pipeline_id" ),
165158 resource .TestCheckResourceAttr (resourceName , "deployment_arguments.#" , "1" ),
166159 resource .TestCheckResourceAttr (resourceName , "deployment_arguments.0.items.#" , "1" ),
@@ -192,9 +185,9 @@ func TestDevopsDeploymentResource_basic(t *testing.T) {
192185 resource .TestCheckResourceAttrSet (datasourceName , "deploy_pipeline_id" ),
193186 resource .TestCheckResourceAttr (datasourceName , "display_name" , "displayName2" ),
194187 resource .TestCheckResourceAttrSet (datasourceName , "project_id" ),
195- resource .TestCheckResourceAttr (datasourceName , "state" , "Accepted" ),
196188
197189 resource .TestCheckResourceAttr (datasourceName , "deployment_collection.#" , "1" ),
190+ resource .TestCheckResourceAttr (datasourceName , "deployment_collection.0.items.#" , "0" ),
198191 ),
199192 },
200193 // verify singular datasource
@@ -206,7 +199,6 @@ func TestDevopsDeploymentResource_basic(t *testing.T) {
206199 resource .TestCheckResourceAttrSet (singularDatasourceName , "deployment_id" ),
207200
208201 resource .TestCheckResourceAttrSet (singularDatasourceName , "compartment_id" ),
209- resource .TestCheckResourceAttr (singularDatasourceName , "defined_tags.%" , "1" ),
210202 resource .TestCheckResourceAttr (singularDatasourceName , "deployment_arguments.#" , "1" ),
211203 resource .TestCheckResourceAttr (singularDatasourceName , "deployment_arguments.0.items.#" , "1" ),
212204 resource .TestCheckResourceAttr (singularDatasourceName , "deployment_arguments.0.items.0.name" , "name" ),
@@ -216,7 +208,6 @@ func TestDevopsDeploymentResource_basic(t *testing.T) {
216208 resource .TestCheckResourceAttr (singularDatasourceName , "display_name" , "displayName" ),
217209 resource .TestCheckResourceAttr (singularDatasourceName , "freeform_tags.%" , "1" ),
218210 resource .TestCheckResourceAttrSet (singularDatasourceName , "id" ),
219- resource .TestCheckResourceAttrSet (singularDatasourceName , "state" ),
220211 resource .TestCheckResourceAttrSet (singularDatasourceName , "time_created" ),
221212 resource .TestCheckResourceAttrSet (singularDatasourceName , "time_updated" ),
222213 ),
0 commit comments