Skip to content

Commit 130bdc3

Browse files
Added StayActiveRequest scenarios to the yaml test
1 parent c54a103 commit 130bdc3

File tree

1 file changed

+67
-0
lines changed

1 file changed

+67
-0
lines changed

src/app/tests/suites/TestIcdManagementCluster.yaml

+67
Original file line numberDiff line numberDiff line change
@@ -372,3 +372,70 @@ tests:
372372
value: 102
373373
response:
374374
error: NOT_FOUND
375+
376+
- label: "Wait for a little bit less than the active mode duration (10000ms)"
377+
cluster: "DelayCommands"
378+
command: "WaitForMs"
379+
arguments:
380+
values:
381+
- name: "ms"
382+
value: 9000
383+
384+
- label: "StayActive Scenario 1: Confirm the promised active duration is increased to a specific if a value less than 30000ms is requested and the device does not intend to stay active longer"
385+
command: "StayActiveRequest"
386+
arguments:
387+
values:
388+
- name: "StayActiveDuration"
389+
value: 20000
390+
response:
391+
values:
392+
- name: "PromisedActiveDuration"
393+
constraints:
394+
type: int32u
395+
minValue: 19500
396+
maxValue: 20500
397+
398+
399+
- label: "Wait for a little bit less than the new promied active mode duration (20000ms)"
400+
cluster: "DelayCommands"
401+
command: "WaitForMs"
402+
arguments:
403+
values:
404+
- name: "ms"
405+
value: 19000
406+
407+
- label: "StayActive Scenario 2: Confirm the promised active duration is reduced to 30000ms if a value greater than 30000ms is requested"
408+
command: "StayActiveRequest"
409+
arguments:
410+
values:
411+
- name: "StayActiveDuration"
412+
value: 35000
413+
response:
414+
values:
415+
- name: "PromisedActiveDuration"
416+
constraints:
417+
type: int32u
418+
minValue: 29500
419+
maxValue: 30500
420+
421+
- label: "Wait for a 20000 less than the new promied active mode duration (30000ms)"
422+
cluster: "DelayCommands"
423+
command: "WaitForMs"
424+
arguments:
425+
values:
426+
- name: "ms"
427+
value: 10000
428+
429+
- label: "StayActive Scenario 3: confirm that the device ignores the request if the device intends to stay active longer than the requested duration we should have about 20000ms left here"
430+
command: "StayActiveRequest"
431+
arguments:
432+
values:
433+
- name: "StayActiveDuration"
434+
value: 10000
435+
response:
436+
values:
437+
- name: "PromisedActiveDuration"
438+
constraints:
439+
type: int32u
440+
minValue: 19500
441+
maxValue: 20500

0 commit comments

Comments
 (0)