|
41 | 41 |
|
42 | 42 | alertRuleRepresentation = map[string]interface{}{ |
43 | 43 | "budget_id": Representation{repType: Required, create: `${oci_budget_budget.test_budget.id}`}, |
44 | | - "recipients": Representation{ repType: Required, create: `[email protected]`, update: `[email protected]`}, |
45 | 44 | "threshold": Representation{repType: Required, create: `100`, update: `200`}, |
46 | 45 | "threshold_type": Representation{repType: Required, create: `PERCENTAGE`, update: `ABSOLUTE`}, |
47 | 46 | "type": Representation{repType: Required, create: `ACTUAL`, update: `FORECAST`}, |
|
50 | 49 | "display_name": Representation{repType: Optional, create: `displayName`, update: `displayName2`}, |
51 | 50 | "freeform_tags": Representation{repType: Optional, create: map[string]string{"Department": "Finance"}, update: map[string]string{"Department": "Accounting"}}, |
52 | 51 | "message": Representation{repType: Optional, create: `message`, update: `message2`}, |
| 52 | + "recipients": Representation{ repType: Optional, create: `[email protected]`, update: `[email protected]`}, |
53 | 53 | } |
54 | 54 |
|
55 | 55 | AlertRuleResourceDependencies = generateResourceFromRepresentationMap("oci_budget_budget", "test_budget", Required, Create, budgetRepresentationWithTargetCompartmentId) + |
@@ -85,7 +85,6 @@ func TestBudgetAlertRuleResource_basic(t *testing.T) { |
85 | 85 | generateResourceFromRepresentationMap("oci_budget_alert_rule", "test_alert_rule", Required, Create, alertRuleRepresentation), |
86 | 86 | Check: resource.ComposeAggregateTestCheckFunc( |
87 | 87 | resource.TestCheckResourceAttrSet(resourceName, "budget_id"), |
88 | | - resource. TestCheckResourceAttr( resourceName, "recipients", "[email protected]"), |
89 | 88 | resource.TestCheckResourceAttr(resourceName, "threshold", "100"), |
90 | 89 | resource.TestCheckResourceAttr(resourceName, "threshold_type", "PERCENTAGE"), |
91 | 90 | resource.TestCheckResourceAttr(resourceName, "type", "ACTUAL"), |
|
0 commit comments