@@ -28,9 +28,7 @@ func TestAccReverseETLModelResource(t *testing.T) {
28
28
"description": "My reverse etl model description",
29
29
"enabled": true,
30
30
"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"
34
32
}
35
33
}
36
34
}
@@ -46,9 +44,7 @@ func TestAccReverseETLModelResource(t *testing.T) {
46
44
"description": "My new reverse etl model description",
47
45
"enabled": false,
48
46
"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"
52
48
}
53
49
}
54
50
}
@@ -66,9 +62,7 @@ func TestAccReverseETLModelResource(t *testing.T) {
66
62
"description": "My reverse etl model description",
67
63
"enabled": true,
68
64
"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"
72
66
}
73
67
}
74
68
}
@@ -84,9 +78,7 @@ func TestAccReverseETLModelResource(t *testing.T) {
84
78
"description": "My new reverse etl model description",
85
79
"enabled": false,
86
80
"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"
90
82
}
91
83
}
92
84
}
@@ -117,14 +109,8 @@ func TestAccReverseETLModelResource(t *testing.T) {
117
109
name = "My reverse etl model name"
118
110
enabled = true
119
111
description = "My reverse etl model description"
120
- schedule_strategy = "SPECIFIC_DAYS"
121
112
query = "SELECT hi FROM greetings"
122
113
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
- })
128
114
}
129
115
` ,
130
116
Check : resource .ComposeAggregateTestCheckFunc (
@@ -133,10 +119,8 @@ func TestAccReverseETLModelResource(t *testing.T) {
133
119
resource .TestCheckResourceAttr ("segment_reverse_etl_model.test" , "name" , "My reverse etl model name" ),
134
120
resource .TestCheckResourceAttr ("segment_reverse_etl_model.test" , "enabled" , "true" ),
135
121
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" ),
137
122
resource .TestCheckResourceAttr ("segment_reverse_etl_model.test" , "query" , "SELECT hi FROM greetings" ),
138
123
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\" }" ),
140
124
),
141
125
},
142
126
// ImportState testing
@@ -148,14 +132,8 @@ func TestAccReverseETLModelResource(t *testing.T) {
148
132
name = "My reverse etl model name"
149
133
enabled = true
150
134
description = "My reverse etl model description"
151
- schedule_strategy = "SPECIFIC_DAYS"
152
135
query = "SELECT hi FROM greetings"
153
136
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
- })
159
137
}
160
138
` ,
161
139
ImportState : true ,
@@ -169,14 +147,8 @@ func TestAccReverseETLModelResource(t *testing.T) {
169
147
name = "My new reverse etl model name"
170
148
enabled = false
171
149
description = "My new reverse etl model description"
172
- schedule_strategy = "SPECIFIC_DAYS"
173
150
query = "SELECT hello FROM greetings"
174
151
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
- })
180
152
}
181
153
` ,
182
154
Check : resource .ComposeAggregateTestCheckFunc (
@@ -185,10 +157,8 @@ func TestAccReverseETLModelResource(t *testing.T) {
185
157
resource .TestCheckResourceAttr ("segment_reverse_etl_model.test" , "name" , "My new reverse etl model name" ),
186
158
resource .TestCheckResourceAttr ("segment_reverse_etl_model.test" , "enabled" , "false" ),
187
159
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" ),
189
160
resource .TestCheckResourceAttr ("segment_reverse_etl_model.test" , "query" , "SELECT hello FROM greetings" ),
190
161
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\" }" ),
192
162
),
193
163
},
194
164
// Delete testing automatically occurs in TestCase
0 commit comments