Skip to content

Commit

Permalink
Updated remaining transition times and added delay for Darwin CI test
Browse files Browse the repository at this point in the history
  • Loading branch information
lpbeliveau-silabs committed Jan 26, 2024
1 parent 1032866 commit d539b3b
Show file tree
Hide file tree
Showing 7 changed files with 60 additions and 30 deletions.
2 changes: 1 addition & 1 deletion src/app/clusters/scenes-server/SceneTable.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ inline constexpr SceneId kUndefinedSceneId = 0xff;

static constexpr size_t kIteratorsMax = CHIP_CONFIG_MAX_SCENES_CONCURRENT_ITERATORS;
static constexpr size_t kSceneNameMaxLength = CHIP_CONFIG_SCENES_CLUSTER_MAXIMUM_NAME_LENGTH;
static constexpr size_t kScenesMaxTransitionTime = 6'000'000u;
static constexpr size_t kScenesMaxTransitionTime = 60'000'000u;

/// @brief SceneHandlers are meant as interface between various clusters and the Scene table.
/// When a scene command involving extension field sets is received, the Scene Table will go through
Expand Down
8 changes: 5 additions & 3 deletions src/app/tests/suites/certification/Test_TC_S_2_2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,8 @@ tests:
- name: "Status"
value: 0x85
- name: "Capacity"
constraints:
anyOf: [fabricCapacity, 0xfe, null]
value: null
- name: "GroupID"
value: GI
Expand Down Expand Up @@ -592,7 +594,7 @@ tests:
value: 0x00
- name: "Capacity"
constraints:
anyOf: [fabricCapacity, 0xfe, 0x89]
anyOf: [fabricCapacity, 0xfe, null]
- name: "GroupID"
value: G1

Expand Down Expand Up @@ -749,7 +751,7 @@ tests:
- label:
"Step 8d: TH sends a AddScene command to DUT with the GroupID field
set to G1, the SceneID field set to 0x01, the TransitionTime field set
to 7 000 000 (7 000s) and no extension field sets. This should fail
to 70 000 000 (70 000s) and no extension field sets. This should fail
and return a status of 0x85 (INVALID_COMMAND)."
PICS: S.S.C00.Rsp && PICS_SDK_CI_ONLY
command: "AddScene"
Expand All @@ -760,7 +762,7 @@ tests:
- name: "SceneID"
value: 0x01
- name: "TransitionTime"
value: 7000000
value: 70000000
- name: "SceneName"
value: "Scene1"
- name: "ExtensionFieldSets"
Expand Down
42 changes: 35 additions & 7 deletions src/app/tests/suites/certification/Test_TC_S_2_3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ tests:
- label:
"Step 2: TH sends a AddScene command to DUT with the GroupID field set
to G1, the SceneID field set to 0x01, the TransitionTime field set to
1s and a set of extension fields appropriate to AC1."
1000 (1s) and a set of extension fields appropriate to AC1."
PICS: S.S.C00.Rsp && PICS_SDK_CI_ONLY
command: "AddScene"
arguments:
Expand Down Expand Up @@ -307,7 +307,7 @@ tests:
- label:
"Step 2: TH sends a AddScene command to DUT with the GroupID field set
to G1, the SceneID field set to 0x01, the TransitionTime field set to
1s and a set of extension fields appropriate to AC1."
1000 (1s) and a set of extension fields appropriate to AC1."
verification: |
Execute the following command in TH to generate the pre-condition to execute this test case:
Expand Down Expand Up @@ -532,7 +532,7 @@ tests:
- label:
"Step 6a: TH sends a AddScene command to group G1 with the GroupID
field set to G1, the SceneID field set to 0x01, the TransitionTime
field set to 1s and a set of extension fields appropriate to
field set to 1000 (1s) and a set of extension fields appropriate to
AC1."
PICS: S.S.C00.Rsp && PICS_SDK_CI_ONLY
command: "AddScene"
Expand Down Expand Up @@ -707,6 +707,15 @@ tests:
- name: "SceneID"
value: 0x03

- label: "Wait 1+ s to give CI time to process the RemoveScene command."
PICS: PICS_SDK_CI_ONLY
cluster: "DelayCommands"
command: "WaitForMs"
arguments:
values:
- name: "ms"
value: 1250

- label:
"Step 6e: TH sends a ViewScene command to DUT with the GroupID field
set to G1 and the SceneID field set to 0x03."
Expand Down Expand Up @@ -874,7 +883,7 @@ tests:
value: 0x00
- name: "Capacity"
constraints:
anyOf: [fabricCapacity - 4, 0xfe, 0x89]
anyOf: [fabricCapacity - 4, 0xfe, null]
- name: "GroupID"
value: G2
- name: "SceneList"
Expand Down Expand Up @@ -916,7 +925,7 @@ tests:
value: 0x00
- name: "Capacity"
constraints:
anyOf: [fabricCapacity - 5, 0xfe, 0x89]
anyOf: [fabricCapacity - 5, 0xfe, null]
- name: "GroupID"
value: G2
- name: "SceneList"
Expand All @@ -933,6 +942,15 @@ tests:
- name: "GroupID"
value: G1

- label: "Wait 1+ s to give CI time to process the RemoveScene command."
PICS: PICS_SDK_CI_ONLY
cluster: "DelayCommands"
command: "WaitForMs"
arguments:
values:
- name: "ms"
value: 1250

- label:
"Step 9b: TH sends a GetSceneMembership command to DUT with the
GroupID field set to G1."
Expand All @@ -948,7 +966,7 @@ tests:
value: 0x00
- name: "Capacity"
constraints:
anyOf: [fabricCapacity - 3, 0xfe, 0x89]
anyOf: [fabricCapacity - 3, 0xfe, null]
- name: "GroupID"
value: G1
- name: "SceneList"
Expand All @@ -964,6 +982,16 @@ tests:
values:
- name: "GroupID"
value: G2

- label: "Wait 1+ s to give CI time to process the RemoveScene command."
PICS: PICS_SDK_CI_ONLY
cluster: "DelayCommands"
command: "WaitForMs"
arguments:
values:
- name: "ms"
value: 1250

- label:
"Step 10b: TH sends a GetSceneMembership command to DUT with the
GroupID field set to G1."
Expand All @@ -979,7 +1007,7 @@ tests:
value: 0x00
- name: "Capacity"
constraints:
anyOf: [fabricCapacity, 0xfe, 0x89]
anyOf: [fabricCapacity, 0xfe, null]
- name: "GroupID"
value: G2
- name: "SceneList"
Expand Down
6 changes: 3 additions & 3 deletions src/app/tests/suites/certification/Test_TC_S_2_4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ tests:
- label:
"Step 3: TH sends a AddScene command to DUT with the GroupID field set
to G1, the SceneID field set to 0x01, the TransitionTime field set to
0x4E20 (20s) and no extension fields set."
20000 (20s) and no extension fields set."
PICS: S.S.C00.Rsp
command: "AddScene"
arguments:
Expand All @@ -129,7 +129,7 @@ tests:
- name: "SceneID"
value: 0x01
- name: "TransitionTime"
value: 0x4E20
value: 20000
- name: "SceneName"
value: "Scene1"
- name: "ExtensionFieldSets"
Expand Down Expand Up @@ -330,7 +330,7 @@ tests:
- label:
"Step 6b: TH sends a RecallScene command to DUT with the GroupID field
set to G1, the SceneID field set to 0x01 and the TransitionTime field
set to 5s."
set to 5000 5s."
PICS: S.S.C05.Rsp && PICS_SC_RECALL_SCENE_TRANSITION_TIME
command: "RecallScene"
arguments:
Expand Down
6 changes: 3 additions & 3 deletions src/app/tests/suites/certification/Test_TC_S_2_5.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,10 @@ tests:
- label:
"Step 5a: TH sends a AddScene command to DUT with the GroupID field
set to G1, the SceneID field set to 0x01, the TransitionTime field set
to 20s and no extension field sets."
to 20000 (20s) and no extension field sets."
PICS: S.S.C00.Rsp
verification: |
./chip-tool scenes add-scene 0x0001 0x1 0x4E20 scene1 [] 1 1
./chip-tool scenes add-scene 0x0001 0x1 20000 scene1 [] 1 1
CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0005 Command 0x0000_0000
CHIP:TOO: AddSceneResponse: {
Expand Down Expand Up @@ -196,7 +196,7 @@ tests:
- label:
"Step 7a: If RemainingCapacity is greater than 0, TH sends a AddScene
command to DUT with the GroupID field set to G1, the SceneID field set
to 0x03, the TransitionTime field set to 20s and no extension
to 0x03, the TransitionTime field set to 20000 (20s) and no extension
field sets. If RemainingCapacity is 0, continue to Step 8a."
PICS: S.S.C00.Rsp
verification: |
Expand Down
6 changes: 3 additions & 3 deletions src/app/tests/suites/certification/Test_TC_S_2_6.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ tests:
- label:
"Step 3a: TH1 sends a AddScene command to DUT with the GroupID field
set to 0x0000, the SceneID field set to 0x01, the TransitionTime field
set to 20s and no extension field sets."
set to 20000 (20s) and no extension field sets."
PICS: S.S.C00.Rsp
verification: |
./chip-tool scenes add-scene 0x0000 0x1 20000 scene1 [] 1 1
Expand Down Expand Up @@ -130,7 +130,7 @@ tests:
- label:
"Step 4b: TH1 sends a AddScene command to DUT with the GroupID field
set to 0x0000, the SceneID field set to 1 more than last value used in
step 4a, the TransitionTime field set to 20s and no extension
step 4a, the TransitionTime field set to 20000 (20s) and no extension
field sets."
PICS: S.S.C00.Rsp
verification: |
Expand Down Expand Up @@ -184,7 +184,7 @@ tests:
- label:
"Step 6b: TH3 sends a AddScene command to DUT with the GroupID field
set to 0x0000, the SceneID field set to 0x01, the TransitionTime field
set to 20s and no extension field sets."
set to 20000 20s and no extension field sets."
PICS: S.S.C00.Rsp
verification: |
./chip-tool scenes add-scene 0x0000 0x12 20000 scene301 [] 3 1 --commissioner-name gamma
Expand Down
20 changes: 10 additions & 10 deletions zzz_generated/darwin-framework-tool/zap-generated/test/Commands.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d539b3b

Please sign in to comment.