@@ -28,9 +28,7 @@ func TestAccReverseETLModelResource(t *testing.T) {
2828 "description": "My reverse etl model description",
2929 "enabled": true,
3030 "query": "SELECT hi FROM greetings",
31- "queryIdentifierColumn": "hi",
32- "scheduleStrategy": "SPECIFIC_DAYS",
33- "scheduleConfig": {"days":[0,1,2,3],"hours":[0,1,3,2],"timezone":"America/Los_Angeles"}
31+ "queryIdentifierColumn": "hi"
3432 }
3533 }
3634 }
@@ -46,9 +44,7 @@ func TestAccReverseETLModelResource(t *testing.T) {
4644 "description": "My new reverse etl model description",
4745 "enabled": false,
4846 "query": "SELECT hello FROM greetings",
49- "queryIdentifierColumn": "hello",
50- "scheduleStrategy": "SPECIFIC_DAYS",
51- "scheduleConfig": {"days":[0,1,2,3,4],"hours":[0,1,5],"timezone":"America/Los_Angeles"}
47+ "queryIdentifierColumn": "hello"
5248 }
5349 }
5450 }
@@ -66,9 +62,7 @@ func TestAccReverseETLModelResource(t *testing.T) {
6662 "description": "My reverse etl model description",
6763 "enabled": true,
6864 "query": "SELECT hi FROM greetings",
69- "queryIdentifierColumn": "hi",
70- "scheduleStrategy": "SPECIFIC_DAYS",
71- "scheduleConfig": {"days":[0,1,2,3],"hours":[0,1,3,2],"timezone":"America/Los_Angeles"}
65+ "queryIdentifierColumn": "hi"
7266 }
7367 }
7468 }
@@ -84,9 +78,7 @@ func TestAccReverseETLModelResource(t *testing.T) {
8478 "description": "My new reverse etl model description",
8579 "enabled": false,
8680 "query": "SELECT hello FROM greetings",
87- "queryIdentifierColumn": "hello",
88- "scheduleStrategy": "SPECIFIC_DAYS",
89- "scheduleConfig": {"days":[0,1,2,3,4],"hours":[0,1,5],"timezone":"America/Los_Angeles"}
81+ "queryIdentifierColumn": "hello"
9082 }
9183 }
9284 }
@@ -117,14 +109,8 @@ func TestAccReverseETLModelResource(t *testing.T) {
117109 name = "My reverse etl model name"
118110 enabled = true
119111 description = "My reverse etl model description"
120- schedule_strategy = "SPECIFIC_DAYS"
121112 query = "SELECT hi FROM greetings"
122113 query_identifier_column = "hi"
123- schedule_config = jsonencode({
124- "days": [0, 1, 2, 3],
125- "hours": [0, 1, 3, 2],
126- "timezone": "America/Los_Angeles"
127- })
128114 }
129115 ` ,
130116 Check : resource .ComposeAggregateTestCheckFunc (
@@ -133,10 +119,8 @@ func TestAccReverseETLModelResource(t *testing.T) {
133119 resource .TestCheckResourceAttr ("segment_reverse_etl_model.test" , "name" , "My reverse etl model name" ),
134120 resource .TestCheckResourceAttr ("segment_reverse_etl_model.test" , "enabled" , "true" ),
135121 resource .TestCheckResourceAttr ("segment_reverse_etl_model.test" , "description" , "My reverse etl model description" ),
136- resource .TestCheckResourceAttr ("segment_reverse_etl_model.test" , "schedule_strategy" , "SPECIFIC_DAYS" ),
137122 resource .TestCheckResourceAttr ("segment_reverse_etl_model.test" , "query" , "SELECT hi FROM greetings" ),
138123 resource .TestCheckResourceAttr ("segment_reverse_etl_model.test" , "query_identifier_column" , "hi" ),
139- resource .TestCheckResourceAttr ("segment_reverse_etl_model.test" , "schedule_config" , "{\" days\" :[0,1,2,3],\" hours\" :[0,1,3,2],\" timezone\" :\" America/Los_Angeles\" }" ),
140124 ),
141125 },
142126 // ImportState testing
@@ -148,14 +132,8 @@ func TestAccReverseETLModelResource(t *testing.T) {
148132 name = "My reverse etl model name"
149133 enabled = true
150134 description = "My reverse etl model description"
151- schedule_strategy = "SPECIFIC_DAYS"
152135 query = "SELECT hi FROM greetings"
153136 query_identifier_column = "hi"
154- schedule_config = jsonencode({
155- "days": [0, 1, 2, 3],
156- "hours": [0, 1, 3, 2],
157- "timezone": "America/Los_Angeles"
158- })
159137 }
160138 ` ,
161139 ImportState : true ,
@@ -169,14 +147,8 @@ func TestAccReverseETLModelResource(t *testing.T) {
169147 name = "My new reverse etl model name"
170148 enabled = false
171149 description = "My new reverse etl model description"
172- schedule_strategy = "SPECIFIC_DAYS"
173150 query = "SELECT hello FROM greetings"
174151 query_identifier_column = "hello"
175- schedule_config = jsonencode({
176- "days": [0, 1, 2, 3, 4],
177- "hours": [0, 1, 5],
178- "timezone": "America/Los_Angeles"
179- })
180152 }
181153 ` ,
182154 Check : resource .ComposeAggregateTestCheckFunc (
@@ -185,10 +157,8 @@ func TestAccReverseETLModelResource(t *testing.T) {
185157 resource .TestCheckResourceAttr ("segment_reverse_etl_model.test" , "name" , "My new reverse etl model name" ),
186158 resource .TestCheckResourceAttr ("segment_reverse_etl_model.test" , "enabled" , "false" ),
187159 resource .TestCheckResourceAttr ("segment_reverse_etl_model.test" , "description" , "My new reverse etl model description" ),
188- resource .TestCheckResourceAttr ("segment_reverse_etl_model.test" , "schedule_strategy" , "SPECIFIC_DAYS" ),
189160 resource .TestCheckResourceAttr ("segment_reverse_etl_model.test" , "query" , "SELECT hello FROM greetings" ),
190161 resource .TestCheckResourceAttr ("segment_reverse_etl_model.test" , "query_identifier_column" , "hello" ),
191- resource .TestCheckResourceAttr ("segment_reverse_etl_model.test" , "schedule_config" , "{\" days\" :[0,1,2,3,4],\" hours\" :[0,1,5],\" timezone\" :\" America/Los_Angeles\" }" ),
192162 ),
193163 },
194164 // Delete testing automatically occurs in TestCase
0 commit comments