3838
3939 StackMonitoringMonitoredResourceTypeDataSourceRepresentation = map [string ]interface {}{
4040 "compartment_id" : acctest.Representation {RepType : acctest .Required , Create : `${var.compartment_id}` },
41- "exclude_fields" : acctest.Representation {RepType : acctest .Optional , Create : []string {`metricNamespace ` }},
42- "fields" : acctest.Representation {RepType : acctest .Optional , Create : []string {`displayName ` }},
41+ "exclude_fields" : acctest.Representation {RepType : acctest .Optional , Create : []string {`displayName ` }},
42+ "fields" : acctest.Representation {RepType : acctest .Optional , Create : []string {`metricNamespace ` }},
4343 "is_exclude_system_types" : acctest.Representation {RepType : acctest .Optional , Create : `false` },
4444 "metric_namespace" : acctest.Representation {RepType : acctest .Optional , Create : `terraform_namespace` },
4545 "name" : acctest.Representation {RepType : acctest .Optional , Create : `terraform_test_restype` },
5454 ignoreResourceTypeSensitiveDataRepresentation = map [string ]interface {}{
5555 "ignore_changes" : acctest.Representation {RepType : acctest .Required , Create : []string {
5656 `freeform_tags` , `defined_tags` , `system_tags` ,
57- `compartment_id` ,
57+ `compartment_id` , `display_name` , `metadata[0].valid_sub_resource_types` ,
5858 `metadata[0].unique_property_sets` , `metadata[0].unique_property_sets[0].properties` }},
5959 }
6060
7979 "unique_property_sets" : acctest.RepresentationGroup {RepType : acctest .Optional , Group : StackMonitoringMonitoredResourceTypeMetadataUniquePropertySetsRepresentation },
8080 "valid_properties_for_create" : acctest.Representation {RepType : acctest .Optional , Create : []string {`validPropertiesForCreate` }, Update : []string {`validPropertiesForCreate2` }},
8181 "valid_properties_for_update" : acctest.Representation {RepType : acctest .Optional , Create : []string {`validPropertiesForUpdate` }, Update : []string {`validPropertiesForUpdate2` }},
82+ "valid_sub_resource_types" : acctest.Representation {RepType : acctest .Optional , Create : []string {`validSubResourceTypes` }, Update : []string {`validSubResourceTypes2` }},
8283 "valid_property_values" : acctest.Representation {RepType : acctest .Optional , Create : map [string ]string {"osType" : "Linux,Windows,Solaris" , "osVersion" : "v6.0,v7.0" }, Update : map [string ]string {"prop1" : "Linux,Windows,Solaris" , "osVersion" : "v6.0,v7.0,v8.0" }},
8384 }
8485 StackMonitoringMonitoredResourceTypeMetadataUniquePropertySetsRepresentation = map [string ]interface {}{
@@ -149,10 +150,10 @@ func TestStackMonitoringMonitoredResourceTypeResource_basic(t *testing.T) {
149150 resource .TestCheckResourceAttr (resourceName , "metadata.0.unique_property_sets.0.properties.#" , "1" ),
150151 resource .TestCheckResourceAttr (resourceName , "metadata.0.valid_properties_for_create.#" , "1" ),
151152 resource .TestCheckResourceAttr (resourceName , "metadata.0.valid_properties_for_update.#" , "1" ),
153+ resource .TestCheckResourceAttr (resourceName , "metric_namespace" , "terraform_namespace" ),
152154 resource .TestCheckResourceAttr (resourceName , "resource_category" , "APPLICATION" ),
153155 resource .TestCheckResourceAttr (resourceName , "source_type" , "SM_MGMT_AGENT_MONITORED" ),
154156 resource .TestCheckResourceAttr (resourceName , "metadata.0.valid_property_values.%" , "2" ),
155- resource .TestCheckResourceAttr (resourceName , "metric_namespace" , "terraform_namespace" ),
156157
157158 func (s * terraform.State ) (err error ) {
158159 resId , err = acctest .FromInstanceState (s , resourceName , "id" )
@@ -174,7 +175,6 @@ func TestStackMonitoringMonitoredResourceTypeResource_basic(t *testing.T) {
174175 resource .TestCheckResourceAttr (resourceName , "compartment_id" , tenantId ),
175176 resource .TestCheckResourceAttr (resourceName , "name" , "terraform_test_restype" ),
176177 resource .TestCheckResourceAttr (resourceName , "description" , "description2" ),
177- resource .TestCheckResourceAttr (resourceName , "display_name" , "displayName2" ),
178178 resource .TestCheckResourceAttr (resourceName , "freeform_tags.%" , "1" ),
179179 resource .TestCheckResourceAttrSet (resourceName , "id" ),
180180 resource .TestCheckResourceAttr (resourceName , "metadata.#" , "1" ),
@@ -185,6 +185,7 @@ func TestStackMonitoringMonitoredResourceTypeResource_basic(t *testing.T) {
185185 resource .TestCheckResourceAttr (resourceName , "metadata.0.unique_property_sets.0.properties.#" , "1" ),
186186 resource .TestCheckResourceAttr (resourceName , "metadata.0.valid_properties_for_create.#" , "1" ),
187187 resource .TestCheckResourceAttr (resourceName , "metadata.0.valid_properties_for_update.#" , "1" ),
188+ resource .TestCheckResourceAttr (resourceName , "metric_namespace" , "terraform_namespace" ),
188189 resource .TestCheckResourceAttr (resourceName , "resource_category" , "APPLICATION" ),
189190 resource .TestCheckResourceAttr (resourceName , "source_type" , "SM_MGMT_AGENT_MONITORED" ),
190191 resource .TestCheckResourceAttr (resourceName , "metadata.0.valid_property_values.%" , "2" ),
@@ -228,7 +229,6 @@ func TestStackMonitoringMonitoredResourceTypeResource_basic(t *testing.T) {
228229
229230 resource .TestCheckResourceAttr (singularDatasourceName , "compartment_id" , tenantId ),
230231 resource .TestCheckResourceAttr (singularDatasourceName , "description" , "description2" ),
231- resource .TestCheckResourceAttr (singularDatasourceName , "display_name" , "displayName2" ),
232232 resource .TestCheckResourceAttr (singularDatasourceName , "freeform_tags.%" , "1" ),
233233 resource .TestCheckResourceAttrSet (singularDatasourceName , "id" ),
234234 resource .TestCheckResourceAttr (singularDatasourceName , "metadata.#" , "1" ),
0 commit comments