Skip to content

Commit 94ec8b8

Browse files
authored
Merge pull request #3329 from SmartThingsCommunity/test/min-api-version-startup-messages
test: gate startup-message tests on min_api_version 15
2 parents f0792c5 + adb711e commit 94ec8b8

2 files changed

Lines changed: 15 additions & 9 deletions

File tree

‎drivers/SmartThings/matter-switch/src/test/test_deprecated_color_temperature_profiles.lua‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ test.register_coroutine_test(
6464
assert(not switch_utils.check_deprecated_color_temperature_profile_vendor_overrides(unlisted_pid_device),
6565
"listed VID with unlisted PID should not match")
6666
end,
67-
{ min_api_version = 14 }
67+
{ min_api_version = 15 }
6868
)
6969

7070
test.register_coroutine_test(
@@ -83,7 +83,7 @@ test.register_coroutine_test(
8383
})
8484
listed_device:expect_metadata_update({ provisioning_state = "PROVISIONED" })
8585
end,
86-
{ min_api_version = 14 }
86+
{ min_api_version = 15 }
8787
)
8888

8989
for name, device in pairs({["unlisted VID"] = unlisted_device, ["unlisted PID"] = unlisted_pid_device}) do
@@ -104,7 +104,7 @@ for name, device in pairs({["unlisted VID"] = unlisted_device, ["unlisted PID"]
104104
device:expect_metadata_update({ profile = "light-color-level" })
105105
device:expect_metadata_update({ provisioning_state = "PROVISIONED" })
106106
end,
107-
{ min_api_version = 14 }
107+
{ min_api_version = 15 }
108108
)
109109
end
110110

‎drivers/SmartThings/zwave-lock/src/test/test_schlage_lock.lua‎

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@ test.register_coroutine_test(
102102
)
103103
)
104104
)
105-
end
105+
end,
106+
{ min_api_version = 15 }
106107
)
107108

108109
test.register_coroutine_test(
@@ -122,7 +123,8 @@ test.register_coroutine_test(
122123
test.socket.capability:__expect_send(
123124
mock_device:generate_test_message("main", capabilities.lockCredentials.maxPinCodeLen(6))
124125
)
125-
end
126+
end,
127+
{ min_api_version = 15 }
126128
)
127129

128130
test.register_coroutine_test(
@@ -171,7 +173,8 @@ test.register_coroutine_test(
171173
test.socket.capability:__expect_send(
172174
mock_device:generate_test_message("main", capabilities.lockCredentials.maxPinCodeLen(4))
173175
)
174-
end
176+
end,
177+
{ min_api_version = 15 }
175178
)
176179

177180
test.register_coroutine_test(
@@ -200,7 +203,8 @@ test.register_coroutine_test(
200203
{ visibility = { displayed = false } })
201204
)
202205
)
203-
end
206+
end,
207+
{ min_api_version = 15 }
204208
)
205209

206210
test.register_coroutine_test(
@@ -226,7 +230,8 @@ test.register_coroutine_test(
226230
)
227231
)
228232
mock_device:expect_metadata_update({ provisioning_state = "PROVISIONED" })
229-
end
233+
end,
234+
{ min_api_version = 15 }
230235
)
231236

232237
test.register_coroutine_test(
@@ -251,7 +256,8 @@ test.register_coroutine_test(
251256
})
252257
)
253258
)
254-
end
259+
end,
260+
{ min_api_version = 15 }
255261
)
256262

257263
test.register_coroutine_test(

0 commit comments

Comments
 (0)