Skip to content

Commit 2451d76

Browse files
committed
CHAD-17683: Tagging passing tests with min_api_version=19
- Updated copyright on missing files and fixed missing newlines at EOF
1 parent 0298090 commit 2451d76

480 files changed

Lines changed: 16778 additions & 3309 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

drivers/SmartThings/matter-appliance/src/test/test_cook_top.lua

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,10 @@ test.register_coroutine_test(
8989
local component_to_endpoint_map = mock_device:get_field("__component_to_endpoint_map")
9090
assert(component_to_endpoint_map["cookSurfaceOne"] == COOK_SURFACE_ONE_ENDPOINT, "Cook Surface One Endpoint must be 2")
9191
assert(component_to_endpoint_map["cookSurfaceTwo"] == COOK_SURFACE_TWO_ENDPOINT, "Cook Surface Two Endpoint must be 3")
92-
end
92+
end,
93+
{
94+
min_api_version = 19
95+
}
9396
)
9497

9598
test.register_message_test(
@@ -112,6 +115,9 @@ test.register_message_test(
112115
clusters.OnOff.server.commands.Off(mock_device, COOK_TOP_ENDPOINT)
113116
}
114117
}
118+
},
119+
{
120+
min_api_version = 19
115121
}
116122
)
117123

@@ -149,6 +155,9 @@ test.register_message_test(
149155
clusters.TemperatureControl.server.commands.SetTemperature(mock_device, COOK_SURFACE_TWO_ENDPOINT, nil, 0) --0 is the index where Level1 is stored.
150156
}
151157
},
158+
},
159+
{
160+
min_api_version = 19
152161
}
153162
)
154163

@@ -181,6 +190,9 @@ test.register_message_test(
181190
direction = "send",
182191
message = mock_device:generate_test_message("cookSurfaceTwo", capabilities.temperatureMeasurement.temperature({ value = 20.0, unit = "C" }))
183192
}
193+
},
194+
{
195+
min_api_version = 19
184196
}
185197
)
186198

drivers/SmartThings/matter-appliance/src/test/test_dishwasher.lua

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@ test.register_message_test(
101101
clusters.OnOff.server.commands.Off(mock_device, APPLICATION_ENDPOINT)
102102
}
103103
}
104+
},
105+
{
106+
min_api_version = 19
104107
}
105108
)
106109

@@ -166,6 +169,9 @@ test.register_message_test(
166169
}))
167170
}
168171
}, -- on receiving NO ERROR we don't do anything.
172+
},
173+
{
174+
min_api_version = 19
169175
}
170176
)
171177

@@ -231,6 +237,9 @@ test.register_message_test(
231237
}))
232238
}
233239
}, -- on receiving NO ERROR we don't do anything.
240+
},
241+
{
242+
min_api_version = 19
234243
}
235244
)
236245

@@ -296,6 +305,9 @@ test.register_message_test(
296305
}))
297306
}
298307
}, -- on receiving NO ERROR we don't do anything.
308+
},
309+
{
310+
min_api_version = 19
299311
}
300312
)
301313

@@ -372,6 +384,9 @@ test.register_message_test(
372384
}))
373385
}
374386
}, -- on receiving NO ERROR we don't do anything.
387+
},
388+
{
389+
min_api_version = 19
375390
}
376391
)
377392

@@ -433,6 +448,9 @@ test.register_message_test(
433448
clusters.DishwasherMode.server.commands.ChangeToMode(mock_device, APPLICATION_ENDPOINT, 1) --1 is the index where Super Dry is stored.
434449
}
435450
}
451+
},
452+
{
453+
min_api_version = 19
436454
}
437455
)
438456

@@ -470,6 +488,9 @@ test.register_message_test(
470488
clusters.TemperatureControl.server.commands.SetTemperature(mock_device, APPLICATION_ENDPOINT, nil, 0) --0 is the index where Level1 is stored.
471489
}
472490
},
491+
},
492+
{
493+
min_api_version = 19
473494
}
474495
)
475496

@@ -526,6 +547,9 @@ test.register_message_test(
526547
clusters.TemperatureControl.commands.SetTemperature(mock_device, APPLICATION_ENDPOINT, 40 * 100, nil)
527548
}
528549
},
550+
},
551+
{
552+
min_api_version = 19
529553
}
530554
)
531555

drivers/SmartThings/matter-appliance/src/test/test_extractor_hood.lua

Lines changed: 36 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,9 @@ test.register_message_test(
174174
clusters.FanControl.attributes.PercentSetting:write(mock_device, 1, 50)
175175
}
176176
}
177+
},
178+
{
179+
min_api_version = 19
177180
}
178181
)
179182

@@ -245,6 +248,9 @@ test.register_message_test(
245248
direction = "send",
246249
message = mock_device:generate_test_message("main", capabilities.fanMode.fanMode("auto"))
247250
}
251+
},
252+
{
253+
min_api_version = 19
248254
}
249255
)
250256

@@ -331,6 +337,9 @@ test.register_message_test(
331337
clusters.FanControl.attributes.FanMode:write(mock_device, 1, clusters.FanControl.types.FanModeEnum.AUTO)
332338
}
333339
}
340+
},
341+
{
342+
min_api_version = 19
334343
}
335344
)
336345
test.register_message_test(
@@ -441,6 +450,9 @@ test.register_message_test(
441450
capabilities.fanMode.fanMode.high.NAME
442451
}, {visibility={displayed=false}}))
443452
}
453+
},
454+
{
455+
min_api_version = 19
444456
}
445457
)
446458

@@ -476,6 +488,9 @@ test.register_message_test(
476488
direction = "send",
477489
message = mock_device:generate_test_message("main", capabilities.windMode.windMode.naturalWind())
478490
}
491+
},
492+
{
493+
min_api_version = 19
479494
}
480495
)
481496

@@ -514,6 +529,9 @@ test.register_message_test(
514529
clusters.FanControl.attributes.WindSetting:write(mock_device, 1, clusters.FanControl.types.WindSettingMask.NATURAL_WIND)
515530
}
516531
}
532+
},
533+
{
534+
min_api_version = 19
517535
}
518536
)
519537

@@ -572,6 +590,9 @@ test.register_message_test(
572590
direction = "send",
573591
message = mock_device:generate_test_message("hepaFilter", capabilities.filterStatus.filterStatus.replace())
574592
},
593+
},
594+
{
595+
min_api_version = 19
575596
}
576597
)
577598

@@ -630,6 +651,9 @@ test.register_message_test(
630651
direction = "send",
631652
message = mock_device:generate_test_message("activatedCarbonFilter", capabilities.filterStatus.filterStatus.replace())
632653
},
654+
},
655+
{
656+
min_api_version = 19
633657
}
634658
)
635659

@@ -640,7 +664,10 @@ test.register_coroutine_test(
640664
mock_device_onoff:expect_metadata_update({ profile = "extractor-hood-wind-light" })
641665
mock_device_onoff:expect_metadata_update({ provisioning_state = "PROVISIONED" })
642666
end,
643-
{ test_init = test_init_onoff }
667+
{ test_init = test_init_onoff },
668+
{
669+
min_api_version = 19
670+
}
644671
)
645672

646673
test.register_coroutine_test(
@@ -663,7 +690,10 @@ test.register_coroutine_test(
663690
clusters.OnOff.server.commands.Off(mock_device_onoff, 2)
664691
})
665692
end,
666-
{ test_init = test_init_onoff }
693+
{ test_init = test_init_onoff },
694+
{
695+
min_api_version = 19
696+
}
667697
)
668698

669699
test.register_coroutine_test(
@@ -684,7 +714,10 @@ test.register_coroutine_test(
684714
mock_device_onoff:generate_test_message("light", capabilities.switch.switch.off())
685715
)
686716
end,
687-
{ test_init = test_init_onoff }
717+
{ test_init = test_init_onoff },
718+
{
719+
min_api_version = 19
720+
}
688721
)
689722

690723
test.run_registered_tests()

drivers/SmartThings/matter-appliance/src/test/test_laundry_dryer.lua

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ test.register_message_test(
100100
clusters.OnOff.server.commands.Off(mock_device, APPLICATION_ENDPOINT)
101101
}
102102
}
103+
},
104+
{
105+
min_api_version = 19
103106
}
104107
)
105108

@@ -165,6 +168,9 @@ test.register_message_test(
165168
}))
166169
}
167170
}, -- on receiving NO ERROR we don't do anything.
171+
},
172+
{
173+
min_api_version = 19
168174
}
169175
)
170176

@@ -230,6 +236,9 @@ test.register_message_test(
230236
}))
231237
}
232238
}, -- on receiving NO ERROR we don't do anything.
239+
},
240+
{
241+
min_api_version = 19
233242
}
234243
)
235244

@@ -295,6 +304,9 @@ test.register_message_test(
295304
}))
296305
}
297306
}, -- on receiving NO ERROR we don't do anything.
307+
},
308+
{
309+
min_api_version = 19
298310
}
299311
)
300312

@@ -371,6 +383,9 @@ test.register_message_test(
371383
}))
372384
}
373385
}, -- on receiving NO ERROR we don't do anything.
386+
},
387+
{
388+
min_api_version = 19
374389
}
375390
)
376391

@@ -432,6 +447,9 @@ test.register_message_test(
432447
clusters.LaundryWasherMode.server.commands.ChangeToMode(mock_device, APPLICATION_ENDPOINT, 1) --1 is the index where Super Dry is stored.
433448
}
434449
}
450+
},
451+
{
452+
min_api_version = 19
435453
}
436454
)
437455

@@ -469,6 +487,9 @@ test.register_message_test(
469487
clusters.TemperatureControl.server.commands.SetTemperature(mock_device, APPLICATION_ENDPOINT, nil, 0) --0 is the index where Level1 is stored.
470488
}
471489
},
490+
},
491+
{
492+
min_api_version = 19
472493
}
473494
)
474495

@@ -525,6 +546,9 @@ test.register_message_test(
525546
clusters.TemperatureControl.commands.SetTemperature(mock_device, APPLICATION_ENDPOINT, 40 * 100, nil)
526547
}
527548
},
549+
},
550+
{
551+
min_api_version = 19
528552
}
529553
)
530554

@@ -565,6 +589,9 @@ test.register_message_test(
565589
direction = "send",
566590
message = mock_device:generate_test_message("main", capabilities.temperatureSetpoint.temperatureSetpoint({value = 50.0, unit = "C"}))
567591
}
592+
},
593+
{
594+
min_api_version = 19
568595
}
569596
)
570597

drivers/SmartThings/matter-appliance/src/test/test_laundry_washer.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,9 @@ test.register_message_test(
133133
clusters.TemperatureControl.commands.SetTemperature(mock_device_washer, APPLICATION_ENDPOINT, 25 * 100, nil)
134134
}
135135
},
136+
},
137+
{
138+
min_api_version = 19
136139
}
137140
)
138141

@@ -173,6 +176,9 @@ test.register_message_test(
173176
direction = "send",
174177
message = mock_device_washer:generate_test_message("main", capabilities.temperatureSetpoint.temperatureSetpoint({value = 30.0, unit = "C"}))
175178
}
179+
},
180+
{
181+
min_api_version = 19
176182
}
177183
)
178184

0 commit comments

Comments
 (0)