3232 ruleDataSourceRepresentation = map [string ]interface {}{
3333 "compartment_id" : Representation {repType : Required , create : `${var.compartment_id}` },
3434 "display_name" : Representation {repType : Optional , create : `This rule sends a notification upon completion of DbaaS backup` , update : `displayName2` },
35- "state" : Representation {repType : Optional , create : `ACTIVE ` },
35+ "state" : Representation {repType : Optional , create : `INACTIVE ` },
3636 "filter" : RepresentationGroup {Required , ruleDataSourceFilterRepresentation }}
3737 ruleDataSourceFilterRepresentation = map [string ]interface {}{
3838 "name" : Representation {repType : Required , create : `id` },
4444 "compartment_id" : Representation {repType : Required , create : `${var.compartment_id}` },
4545 "condition" : Representation {repType : Required , create : `{\"eventType\":\"com.oraclecloud.databaseservice.autonomous.database.backup.end\"}` , update : `{}` },
4646 "display_name" : Representation {repType : Required , create : `This rule sends a notification upon completion of DbaaS backup` , update : `displayName2` },
47- "is_enabled" : Representation {repType : Required , create : `false ` , update : `true ` },
47+ "is_enabled" : Representation {repType : Required , create : `true ` , update : `false ` },
4848 "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")}` },
4949 "description" : Representation {repType : Optional , create : `description` , update : `description2` },
5050 "freeform_tags" : Representation {repType : Optional , create : map [string ]string {"Department" : "Finance" }, update : map [string ]string {"Department" : "Accounting" }},
@@ -137,7 +137,7 @@ func TestEventsRuleResource_basic(t *testing.T) {
137137 resource .TestCheckResourceAttr (resourceName , "display_name" , "This rule sends a notification upon completion of DbaaS backup" ),
138138 resource .TestCheckResourceAttr (resourceName , "freeform_tags.%" , "1" ),
139139 resource .TestCheckResourceAttrSet (resourceName , "id" ),
140- resource .TestCheckResourceAttr (resourceName , "is_enabled" , "false " ),
140+ resource .TestCheckResourceAttr (resourceName , "is_enabled" , "true " ),
141141 resource .TestCheckResourceAttrSet (resourceName , "state" ),
142142 resource .TestCheckResourceAttrSet (resourceName , "time_created" ),
143143
@@ -180,7 +180,7 @@ func TestEventsRuleResource_basic(t *testing.T) {
180180 resource .TestCheckResourceAttr (resourceName , "display_name" , "This rule sends a notification upon completion of DbaaS backup" ),
181181 resource .TestCheckResourceAttr (resourceName , "freeform_tags.%" , "1" ),
182182 resource .TestCheckResourceAttrSet (resourceName , "id" ),
183- resource .TestCheckResourceAttr (resourceName , "is_enabled" , "false " ),
183+ resource .TestCheckResourceAttr (resourceName , "is_enabled" , "true " ),
184184 resource .TestCheckResourceAttrSet (resourceName , "state" ),
185185 resource .TestCheckResourceAttrSet (resourceName , "time_created" ),
186186
@@ -239,7 +239,7 @@ func TestEventsRuleResource_basic(t *testing.T) {
239239 resource .TestCheckResourceAttr (resourceName , "display_name" , "displayName2" ),
240240 resource .TestCheckResourceAttr (resourceName , "freeform_tags.%" , "1" ),
241241 resource .TestCheckResourceAttrSet (resourceName , "id" ),
242- resource .TestCheckResourceAttr (resourceName , "is_enabled" , "true " ),
242+ resource .TestCheckResourceAttr (resourceName , "is_enabled" , "false " ),
243243 resource .TestCheckResourceAttrSet (resourceName , "state" ),
244244 resource .TestCheckResourceAttrSet (resourceName , "time_created" ),
245245
@@ -261,7 +261,7 @@ func TestEventsRuleResource_basic(t *testing.T) {
261261 Check : resource .ComposeAggregateTestCheckFunc (
262262 resource .TestCheckResourceAttr (datasourceName , "compartment_id" , compartmentId ),
263263 resource .TestCheckResourceAttr (datasourceName , "display_name" , "displayName2" ),
264- resource .TestCheckResourceAttr (datasourceName , "state" , "ACTIVE " ),
264+ resource .TestCheckResourceAttr (datasourceName , "state" , "INACTIVE " ),
265265
266266 resource .TestCheckResourceAttr (datasourceName , "rules.#" , "1" ),
267267 resource .TestCheckResourceAttr (datasourceName , "rules.0.compartment_id" , compartmentId ),
@@ -271,7 +271,7 @@ func TestEventsRuleResource_basic(t *testing.T) {
271271 resource .TestCheckResourceAttr (datasourceName , "rules.0.display_name" , "displayName2" ),
272272 resource .TestCheckResourceAttr (datasourceName , "rules.0.freeform_tags.%" , "1" ),
273273 resource .TestCheckResourceAttrSet (datasourceName , "rules.0.id" ),
274- resource .TestCheckResourceAttr (datasourceName , "rules.0.is_enabled" , "true " ),
274+ resource .TestCheckResourceAttr (datasourceName , "rules.0.is_enabled" , "false " ),
275275 resource .TestCheckResourceAttrSet (datasourceName , "rules.0.state" ),
276276 resource .TestCheckResourceAttrSet (datasourceName , "rules.0.time_created" ),
277277 ),
@@ -293,7 +293,7 @@ func TestEventsRuleResource_basic(t *testing.T) {
293293 resource .TestCheckResourceAttr (singularDatasourceName , "display_name" , "displayName2" ),
294294 resource .TestCheckResourceAttr (singularDatasourceName , "freeform_tags.%" , "1" ),
295295 resource .TestCheckResourceAttrSet (singularDatasourceName , "id" ),
296- resource .TestCheckResourceAttr (singularDatasourceName , "is_enabled" , "true " ),
296+ resource .TestCheckResourceAttr (singularDatasourceName , "is_enabled" , "false " ),
297297 resource .TestCheckResourceAttrSet (singularDatasourceName , "state" ),
298298 resource .TestCheckResourceAttrSet (singularDatasourceName , "time_created" ),
299299 ),
0 commit comments