@@ -58,7 +58,7 @@ class ZoneApi_IT(
58
58
@Test
59
59
@DisplayName(" POST /homes/{homeId}/zones" )
60
60
@Order(15 )
61
- @Disabled(" needs more investigation " )
61
+ @Disabled(" Unsuitable for weekly automated test execution: moving a device to a new zone " )
62
62
fun createZoneAndMoveDevice () {
63
63
val endpoint = " POST /homes/{homeId}/zones"
64
64
val input = ZoneCreate (" IMPLICIT_CONTROL" , ZoneType .HEATING , listOf (MoveDeviceRequest (" xxx" )))
@@ -104,7 +104,7 @@ class ZoneApi_IT(
104
104
105
105
@Test
106
106
@DisplayName(" PUT /homes/{homeId}/zones/{zoneId}/dazzle" )
107
- @Order(25 )
107
+ @Order(30 )
108
108
@EnabledIf(value= " isHeatingZoneConfigured" , disabledReason = " no heating zone configured" )
109
109
fun putDazzle () {
110
110
val input = DazzleInput (true )
@@ -113,7 +113,7 @@ class ZoneApi_IT(
113
113
114
114
@Test
115
115
@DisplayName(" PUT /homes/{homeId}/zones/{zoneId}/dazzle" )
116
- @Order(27 )
116
+ @Order(35 )
117
117
@EnabledIf(value= " isHeatingZoneConfigured" , disabledReason = " no heating zone configured" )
118
118
fun putDetails () {
119
119
// set the zone's current name
@@ -123,7 +123,7 @@ class ZoneApi_IT(
123
123
124
124
@Test
125
125
@DisplayName(" PUT /homes/{homeId}/zones/{zoneId}/openWindowDetection" )
126
- @Order(28 )
126
+ @Order(40 )
127
127
@EnabledIf(value= " isHeatingZoneConfigured" , disabledReason = " no heating zone configured" )
128
128
fun putOpenWindowDetection () {
129
129
// set the zone's current open window detection settings
@@ -136,24 +136,26 @@ class ZoneApi_IT(
136
136
137
137
@Test
138
138
@DisplayName(" POST /homes/{homeId}/zones/{zoneId}/state/openWindow/activate" )
139
- @Order(29 )
140
- @Disabled( " needs more investigation " )
139
+ @Order(41 )
140
+ @EnabledIf(value = " isHeatingZoneConfigured " , disabledReason = " no heating zone configured " )
141
141
fun activateOpenWindowStateForZone () {
142
- tadoStrictZoneAPI.activateOpenWindowState(tadoConfig.home!! .id, tadoConfig.zone!! .heating!! .id)
142
+ // no idea what this operation actually does
143
+ tadoStrictZoneAPI.activateOpenWindowState(tadoConfig.home!! .id, tadoConfig.zone!! .heating!! .id)
143
144
}
144
145
145
146
@Test
146
147
@DisplayName(" DELETE /homes/{homeId}/zones/{zoneId}/state/openWindow" )
147
- @Order(30 )
148
- @Disabled( " needs more investigation " )
148
+ @Order(42 )
149
+ @EnabledIf(value = " isHeatingZoneConfigured " , disabledReason = " no heating zone configured " )
149
150
fun deleteOpenWindowStateForZone () {
151
+ // no idea what this operation actually does
150
152
tadoStrictZoneAPI.deactivateOpenWindowState(tadoConfig.home!! .id, tadoConfig.zone!! .heating!! .id)
151
153
}
152
154
153
155
@Test
154
156
@DisplayName(" GET /homes/{homeId}/zones/{zoneId}/state - AIR_CONDITIONING" )
155
157
@EnabledIf(value = " isAirConZoneConfigured" , disabledReason = " no AIR_CONDITIONING zone specified in tado set-up" )
156
- @Order(30 )
158
+ @Order(50 )
157
159
fun getZoneState_AirCon () {
158
160
val endpoint = " GET /homes/{homeId}/zones/{zoneId}/state"
159
161
val zoneState = assertCorrectResponse { tadoStrictZoneAPI.getZoneState(tadoConfig.home!! .id, tadoConfig.zone!! .airCon!! .id) }
@@ -163,7 +165,7 @@ class ZoneApi_IT(
163
165
@Test
164
166
@DisplayName(" GET /homes/{homeId}/zones/{zoneId}/state - HEATING" )
165
167
@EnabledIf(value = " isHomeAndHeatingZoneConfigured" , disabledReason = " no home and/or HEATING zone specified in tado set-up" )
166
- @Order(31 )
168
+ @Order(51 )
167
169
fun getZoneState_Heating () {
168
170
val endpoint = " GET /homes/{homeId}/zones/{zoneId}/state"
169
171
val zoneState = assertCorrectResponse { tadoStrictZoneAPI.getZoneState(tadoConfig.home!! .id, tadoConfig.zone!! .heating!! .id) }
@@ -173,7 +175,7 @@ class ZoneApi_IT(
173
175
@Test
174
176
@DisplayName(" GET /homes/{homeId}/zones/{zoneId}/state - HOT_WATER" )
175
177
@EnabledIf(value = " isHomeAndHotWaterZoneConfigured" , disabledReason = " no home and/or HOT_WATER zone specified in tado set-up" )
176
- @Order(32 )
178
+ @Order(52 )
177
179
fun getZoneState_HotWater () {
178
180
val endpoint = " GET /homes/{homeId}/zones/{zoneId}/state"
179
181
val zoneState = assertCorrectResponse { tadoStrictZoneAPI.getZoneState(tadoConfig.home!! .id, tadoConfig.zone!! .hotWater!! .id) }
@@ -182,23 +184,15 @@ class ZoneApi_IT(
182
184
183
185
@Test
184
186
@DisplayName(" GET /homes/{homeId}/zones/{zoneId}/state - 404 (unknown zoneId)" )
185
- @Order(33 )
187
+ @Order(53 )
186
188
@EnabledIf(value = " isHomeConfigured" , disabledReason = " no home specified in tado set-up" )
187
189
fun getZoneState_404 () {
188
190
assertHttpErrorStatus(HttpStatus .NOT_FOUND ) { tadoStrictZoneAPI.getZoneState(tadoConfig.home!! .id, 99999 ) }
189
191
}
190
192
191
- @Test
192
- @DisplayName(" PUT /homes/{homeId}/zoneOrder" )
193
- @Order(35 )
194
- @Disabled(" not yet available in spec" )
195
- fun putZoneOrder () {
196
- // TODO: implement once available in spec
197
- }
198
-
199
193
@Test
200
194
@DisplayName(" GET /homes/{homeId}/zoneStates" )
201
- @Order(40 )
195
+ @Order(55 )
202
196
@EnabledIf(value = " isHomeConfigured" , disabledReason = " no home specified in tado set-up" )
203
197
fun getZoneStates () {
204
198
val endpoint = " GET /homes/{homeId}/zoneStates"
@@ -214,5 +208,13 @@ class ZoneApi_IT(
214
208
verifyZoneState(zoneStates.zoneStates?.get(tadoConfig.zone!! .airCon!! .id.toString())!! , endpoint, ancestorObjectProps = mapOf (ZONE_TYPE to ZoneType .AIR_CONDITIONING ))
215
209
}
216
210
}
211
+
212
+ @Test
213
+ @DisplayName(" PUT /homes/{homeId}/zoneOrder" )
214
+ @Order(60 )
215
+ @Disabled(" not yet available in API definition" )
216
+ fun putZoneOrder () {
217
+ // TODO: implement once available in API definition
218
+ }
217
219
218
220
}
0 commit comments