|
46 | 46 | "namespace": Representation{repType: Required, create: `oci_computeagent`, update: `oci_lbaas`}, |
47 | 47 | "query": Representation{repType: Required, create: `CpuUtilization[10m].percentile(0.9) < 85`, update: `AcceptedConnections[10m].count() <= 0`}, |
48 | 48 | "severity": Representation{repType: Required, create: `WARNING`, update: `INFO`}, |
49 | | - "body": Representation{repType: Optional, create: `High CPU utilization reached`, update: `body2`}, |
| 49 | + "body": Representation{repType: Optional, create: `CPU utilization has reached high values.`, update: `body2`}, |
50 | 50 | "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")}`}, |
51 | 51 | "freeform_tags": Representation{repType: Optional, create: map[string]string{"Department": "Finance"}, update: map[string]string{"Department": "Accounting"}}, |
52 | 52 | "metric_compartment_id_in_subtree": Representation{repType: Optional, create: `false`, update: `true`}, |
@@ -116,7 +116,7 @@ func TestMonitoringAlarmResource_basic(t *testing.T) { |
116 | 116 | Config: config + compartmentIdVariableStr + AlarmResourceDependencies + |
117 | 117 | generateResourceFromRepresentationMap("oci_monitoring_alarm", "test_alarm", Optional, Create, alarmRepresentation), |
118 | 118 | Check: resource.ComposeAggregateTestCheckFunc( |
119 | | - resource.TestCheckResourceAttr(resourceName, "body", "High CPU utilization reached"), |
| 119 | + resource.TestCheckResourceAttr(resourceName, "body", "CPU utilization has reached high values."), |
120 | 120 | resource.TestCheckResourceAttr(resourceName, "compartment_id", compartmentId), |
121 | 121 | resource.TestCheckResourceAttr(resourceName, "defined_tags.%", "1"), |
122 | 122 | resource.TestCheckResourceAttr(resourceName, "destinations.#", "1"), |
|
0 commit comments