|
47 | 47 | "query_properties": acctest.RepresentationGroup{RepType: acctest.Required, Group: MeteringComputationScheduleQueryPropertiesRepresentation}, |
48 | 48 | "result_location": acctest.RepresentationGroup{RepType: acctest.Required, Group: MeteringComputationScheduleResultLocationRepresentation}, |
49 | 49 | "schedule_recurrences": acctest.Representation{RepType: acctest.Required, Create: `DAILY`}, |
50 | | - "time_scheduled": acctest.Representation{RepType: acctest.Required, Create: `2022-06-19T00:00:00Z`}, |
| 50 | + "time_scheduled": acctest.Representation{RepType: acctest.Required, Create: `2022-10-19T00:00:00Z`}, |
| 51 | + "description": acctest.Representation{RepType: acctest.Optional, Create: `description`, Update: `description2`}, |
| 52 | + "output_file_format": acctest.Representation{RepType: acctest.Optional, Create: `CSV`, Update: `PDF`}, |
51 | 53 | } |
52 | 54 | MeteringComputationScheduleQueryPropertiesRepresentation = map[string]interface{}{ |
53 | 55 | "date_range": acctest.RepresentationGroup{RepType: acctest.Required, Group: MeteringComputationScheduleQueryPropertiesDateRangeRepresentation}, |
@@ -103,7 +105,7 @@ func TestMeteringComputationScheduleResource_basic(t *testing.T) { |
103 | 105 | resource.TestCheckResourceAttr(resourceName, "result_location.0.namespace", "idy3u7psgoxm"), |
104 | 106 | resource.TestCheckResourceAttr(resourceName, "result_location.0.region", "us-ashburn-1"), |
105 | 107 | resource.TestCheckResourceAttr(resourceName, "schedule_recurrences", "DAILY"), |
106 | | - resource.TestCheckResourceAttr(resourceName, "time_scheduled", "2022-06-19T00:00:00Z"), |
| 108 | + resource.TestCheckResourceAttr(resourceName, "time_scheduled", "2022-10-19T00:00:00Z"), |
107 | 109 |
|
108 | 110 | func(s *terraform.State) (err error) { |
109 | 111 | resId, err = acctest.FromInstanceState(s, resourceName, "id") |
@@ -135,6 +137,8 @@ func TestMeteringComputationScheduleResource_basic(t *testing.T) { |
135 | 137 | resource.TestCheckResourceAttr(resourceName, "result_location.0.namespace", "idy3u7psgoxm"), |
136 | 138 | resource.TestCheckResourceAttr(resourceName, "result_location.0.region", "us-ashburn-1"), |
137 | 139 | resource.TestCheckResourceAttr(resourceName, "schedule_recurrences", "DAILY"), |
| 140 | + resource.TestCheckResourceAttr(resourceName, "description", "description"), |
| 141 | + resource.TestCheckResourceAttr(resourceName, "output_file_format", "CSV"), |
138 | 142 |
|
139 | 143 | func(s *terraform.State) (err error) { |
140 | 144 | resId, err = acctest.FromInstanceState(s, resourceName, "id") |
@@ -167,6 +171,8 @@ func TestMeteringComputationScheduleResource_basic(t *testing.T) { |
167 | 171 | resource.TestCheckResourceAttr(resourceName, "result_location.0.namespace", "idy3u7psgoxm"), |
168 | 172 | resource.TestCheckResourceAttr(resourceName, "result_location.0.region", "us-ashburn-1"), |
169 | 173 | resource.TestCheckResourceAttr(resourceName, "schedule_recurrences", "DAILY"), |
| 174 | + resource.TestCheckResourceAttr(resourceName, "description", "description2"), |
| 175 | + resource.TestCheckResourceAttr(resourceName, "output_file_format", "PDF"), |
170 | 176 |
|
171 | 177 | func(s *terraform.State) (err error) { |
172 | 178 | resId2, err = acctest.FromInstanceState(s, resourceName, "id") |
|
0 commit comments