Skip to content

Commit

Permalink
Activating scenes yaml tests on CI now that the level control cluster…
Browse files Browse the repository at this point in the history
… handler is implemented
  • Loading branch information
lpbeliveau-silabs committed Oct 5, 2023
1 parent 6adb28a commit 0ab9646
Show file tree
Hide file tree
Showing 7 changed files with 170 additions and 91 deletions.
115 changes: 106 additions & 9 deletions examples/all-clusters-app/all-clusters-common/all-clusters-app.zap
Original file line number Diff line number Diff line change
Expand Up @@ -11038,6 +11038,30 @@
"source": "client",
"incoming": 1,
"outgoing": 1
},
{
"name": "EnhancedAddScene",
"code": 64,
"mfgCode": null,
"source": "client",
"incoming": 1,
"outgoing": 0
},
{
"name": "EnhancedViewScene",
"code": 65,
"mfgCode": null,
"source": "client",
"incoming": 1,
"outgoing": 0
},
{
"name": "CopyScene",
"code": 66,
"mfgCode": null,
"source": "client",
"incoming": 1,
"outgoing": 0
}
],
"attributes": [
Expand Down Expand Up @@ -11130,6 +11154,30 @@
"source": "server",
"incoming": 1,
"outgoing": 1
},
{
"name": "EnhancedAddSceneResponse",
"code": 64,
"mfgCode": null,
"source": "server",
"incoming": 0,
"outgoing": 1
},
{
"name": "EnhancedViewSceneResponse",
"code": 65,
"mfgCode": null,
"source": "server",
"incoming": 0,
"outgoing": 1
},
{
"name": "CopySceneResponse",
"code": 66,
"mfgCode": null,
"source": "server",
"incoming": 0,
"outgoing": 1
}
],
"attributes": [
Expand Down Expand Up @@ -11207,7 +11255,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
"defaultValue": "0x80",
"reportable": 1,
"minInterval": 0,
"maxInterval": 65344,
Expand Down Expand Up @@ -11239,7 +11287,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
"defaultValue": "16",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand All @@ -11255,7 +11303,7 @@
"storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
"defaultValue": "8",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand Down Expand Up @@ -11335,7 +11383,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "0",
"defaultValue": "1",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand Down Expand Up @@ -31132,6 +31180,30 @@
"source": "client",
"incoming": 1,
"outgoing": 1
},
{
"name": "EnhancedAddScene",
"code": 64,
"mfgCode": null,
"source": "client",
"incoming": 1,
"outgoing": 0
},
{
"name": "EnhancedViewScene",
"code": 65,
"mfgCode": null,
"source": "client",
"incoming": 1,
"outgoing": 0
},
{
"name": "CopyScene",
"code": 66,
"mfgCode": null,
"source": "client",
"incoming": 1,
"outgoing": 0
}
],
"attributes": [
Expand Down Expand Up @@ -31224,6 +31296,30 @@
"source": "server",
"incoming": 1,
"outgoing": 1
},
{
"name": "EnhancedAddSceneResponse",
"code": 64,
"mfgCode": null,
"source": "server",
"incoming": 0,
"outgoing": 1
},
{
"name": "EnhancedViewSceneResponse",
"code": 65,
"mfgCode": null,
"source": "server",
"incoming": 0,
"outgoing": 1
},
{
"name": "CopySceneResponse",
"code": 66,
"mfgCode": null,
"source": "server",
"incoming": 0,
"outgoing": 1
}
],
"attributes": [
Expand Down Expand Up @@ -31301,7 +31397,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
"defaultValue": "0x80",
"reportable": 1,
"minInterval": 0,
"maxInterval": 65344,
Expand Down Expand Up @@ -31333,7 +31429,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
"defaultValue": "16",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand All @@ -31349,7 +31445,7 @@
"storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
"defaultValue": "8",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand Down Expand Up @@ -31429,7 +31525,7 @@
"storageOption": "RAM",
"singleton": 0,
"bounded": 0,
"defaultValue": "0",
"defaultValue": "1",
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand Down Expand Up @@ -35392,5 +35488,6 @@
"endpointId": 65534,
"networkId": 0
}
]
],
"log": []
}
12 changes: 6 additions & 6 deletions src/app/tests/suites/certification/Test_TC_S_1_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ tests:
response:
constraints:
type: list
contains: [0, 1, 2, 3, 4, 5, 6, 40, 41, 42]
contains: [0, 1, 2, 3, 4, 5, 6, 64, 65, 66]

- label: "Step 6b: Read AcceptedCommandList (global attribute 65529)"
PICS: (!S.S.C40.Rsp)
Expand All @@ -169,7 +169,7 @@ tests:
response:
constraints:
type: list
contains: [0, 1, 2, 3, 4, 5, 6, 40, 41, 42]
contains: [0, 1, 2, 3, 4, 5, 6, 64, 65, 66]

- label: "Step 6d: Read AcceptedCommandList (global attribute 65529)"
PICS: (!S.C.C40.Tx)
Expand All @@ -186,7 +186,7 @@ tests:
response:
constraints:
type: list
contains: [0, 1, 2, 3, 4, 5, 6]
contains: [0, 1, 2, 3, 4, 6]

- label:
"Step 7b: Read optional command(EnhancedAddSceneResponse) in
Expand All @@ -197,7 +197,7 @@ tests:
response:
constraints:
type: list
contains: [40]
contains: [64]

- label:
"Step 7c: Read optional command(EnhancedViewSceneResponse) in
Expand All @@ -208,7 +208,7 @@ tests:
response:
constraints:
type: list
contains: [41]
contains: [65]

- label:
"Step 7d: Read optional command(CopySceneResponse) in
Expand All @@ -219,4 +219,4 @@ tests:
response:
constraints:
type: list
contains: [42]
contains: [66]
10 changes: 7 additions & 3 deletions src/app/tests/suites/certification/Test_TC_S_2_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,15 @@ tests:
attribute: "CurrentGroup"
response:
constraints:
type: groupid
type: int16u

- label: "Step 5: TH reads from the DUT the (0x0003) SceneValid attribute"
PICS: S.S.A0003
command: "readAttribute"
attribute: "SceneValid"
response:
constraints:
type: int8u
type: boolean

- label: "Step 6: TH reads from the DUT the (0x0004) NameSupport attribute"
PICS: S.S.A0003 && S.S.F00
Expand Down Expand Up @@ -99,8 +99,10 @@ tests:
command: "readAttribute"
attribute: "SceneTableSize"
response:
value: 0x10
constraints:
type: uint16
type: int16u


- label:
"Step 9: TH reads from the DUT the (0x0007) RemainingCapacity
Expand All @@ -109,5 +111,7 @@ tests:
command: "readAttribute"
attribute: "RemainingCapacity"
response:
value: 0x08
constraints:
type: int8u

14 changes: 4 additions & 10 deletions src/app/tests/suites/certification/Test_TC_S_2_2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,8 @@ tests:
value: 0x0001
- name: "SceneID"
value: 0x01
response:
error: ''

- label: "Step 3c: TH reads the SceneCount attribute from DUT."
PICS: S.S.A0000 && S.S.A0001 && S.S.A0002 && S.S.A0003 && !S.S.F03
Expand Down Expand Up @@ -264,7 +266,7 @@ tests:
response:
value: 0x0001
constraints:
type: groupid
type: int16u

- label: "Step 3f: TH reads the SceneValid attribute from DUT."
PICS: S.S.A0000 && S.S.A0001 && S.S.A0002 && S.S.A0003 && !S.S.F03
Expand All @@ -273,7 +275,7 @@ tests:
response:
value: true
constraints:
type: int8u
type: boolean

- label: "Step 3g: TH reads attribute SceneTableSize from DUT."
PICS: S.S.F03 && S.S.F02
Expand Down Expand Up @@ -431,10 +433,6 @@ tests:
AttributeID: 0x0000,
AttributeValue: 0x64,
},
{
AttributeID: 0x0001,
AttributeValue: 0x00,
},
],
},
]
Expand Down Expand Up @@ -548,10 +546,6 @@ tests:
AttributeID: 0x0000,
AttributeValue: 0x64,
},
{
AttributeID: 0x0001,
AttributeValue: 0x00,
},
],
},
]
Expand Down
Loading

0 comments on commit 0ab9646

Please sign in to comment.