Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modified script Sep 06 #22520

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions src/app/tests/suites/certification/PICS.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3077,9 +3077,6 @@ PICS:
- label: "Is the device a barrier access device?"
id: MCORE.DD.DEV_BARRIER

- label: "Does the device have a vendor specific information element (IE)?"
id: MCORE.DD.IE

- label:
"Does the device or device packaging have a QR code based onboarding
payload?"
Expand Down Expand Up @@ -3724,10 +3721,10 @@ PICS:
id: DGTHREAD.S.A0039

- label: "Does the DUT-server support the Delay attribute?"
id: DGTHREAD.S.A003a
id: DGTHREAD.S.A003A

- label: "Does the DUT-server support the SecurityPolicy attribute?"
id: DGTHREAD.S.A003b
id: DGTHREAD.S.A003B

- label: "Does the DUT-server support the ChannelPage0Mask attribute?"
id: DGTHREAD.S.A003c
Expand Down Expand Up @@ -5568,4 +5565,4 @@ PICS:
id: MCORE.IDM.C.SubscribeRequest.MultipleAttributes

- label: "Does the device support the Factory Reset Method?"
id: MCORE.UI.FACTORYRESET
id: PICS_MCORE_UI_FACTORYRESET
43 changes: 23 additions & 20 deletions src/app/tests/suites/certification/Test_TC_BIND_2_3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,29 @@ tests:
"TH1 writes Binding entry into DUT with Entry 1: Group = The Group ID
in the AddGroup command sent from TH1 to TH2"
verification: |
Before write the binding entries run the ACL Commands:

Run this cmmd for [ nRF52840-DK ]Thread device in chip-tool:

./chip-tool accesscontrol write acl "[{"fabricIndex": 1, "privilege": 5, "authMode": 2, "subjects": [112233], "targets": null },{"fabricIndex": 1, "privilege": 4, "authMode": 3, "subjects": [1], "targets": null }]" 74 0

On TH1(Chip-tool), Verify the success response for Acl:

[1659075680.943991][2687:2692] CHIP:DMG: StatusIB =
[1659075680.944052][2687:2692] CHIP:DMG: {
[1659075680.944116][2687:2692] CHIP:DMG: status = 0x00 (SUCCESS),

Run this cmmd for lighting app in chip-tool:

./chip-tool accesscontrol write acl "[{"fabricIndex": 1, "privilege": 5, "authMode": 2, "subjects": [112233], "targets": null },{"fabricIndex": 1, "privilege": 4, "authMode": 3, "subjects": [1], "targets": null }]" 2 0

On TH1(Chip-tool), Verify the success response for Acl:

[1659075680.943991][2687:2692] CHIP:DMG: StatusIB =
[1659075680.944052][2687:2692] CHIP:DMG: {
[1659075680.944116][2687:2692] CHIP:DMG: status = 0x00 (SUCCESS),


Run this cmmd for [ nRF52840-DK ]Thread device in chip-tool:

./chip-tool binding write binding "[{"group" : "0x0001"}]" 74 1
Expand All @@ -248,26 +271,6 @@ tests:
entries"
PICS: OO.C.C01.Tx
verification: |
Run this cmmd for [ nRF52840-DK ]Thread device in chip-tool:

./chip-tool accesscontrol write acl "[{"fabricIndex": 1, "privilege": 5, "authMode": 2, "subjects": [112233], "targets": null },{"fabricIndex": 1, "privilege": 4, "authMode": 3, "subjects": [1], "targets": null }]" 74 0

On TH1(Chip-tool), Verify the success response for Acl:

[1659075680.943991][2687:2692] CHIP:DMG: StatusIB =
[1659075680.944052][2687:2692] CHIP:DMG: {
[1659075680.944116][2687:2692] CHIP:DMG: status = 0x00 (SUCCESS),

Run this cmmd for lighting app in chip-tool:

./chip-tool accesscontrol write acl "[{"fabricIndex": 1, "privilege": 5, "authMode": 2, "subjects": [112233], "targets": null },{"fabricIndex": 1, "privilege": 4, "authMode": 3, "subjects": [1], "targets": null }]" 2 0

On TH1(Chip-tool), Verify the success response for Acl:

[1659075680.943991][2687:2692] CHIP:DMG: StatusIB =
[1659075680.944052][2687:2692] CHIP:DMG: {
[1659075680.944116][2687:2692] CHIP:DMG: status = 0x00 (SUCCESS),

Press button no.2 on nrf52840 DK thread board
disabled: true

Expand Down
241 changes: 125 additions & 116 deletions src/app/tests/suites/certification/Test_TC_CADMIN_1_1.yaml

Large diffs are not rendered by default.

57 changes: 0 additions & 57 deletions src/app/tests/suites/certification/Test_TC_CADMIN_1_10.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,63 +71,6 @@ tests:
- name: "nodeId"
value: nodeId

- label:
"Open commissioning window exactly like we plan to later to verify
that `correctPayload` can in fact commision the device."
cluster: "AdministratorCommissioning"
command: "OpenBasicCommissioningWindow"
PICS: CADMIN.S.C01.Rsp
timedInteractionTimeoutMs: 10000
arguments:
values:
- name: "CommissioningTimeout"
value: 900

- label:
"Temporarily commission device with `correctPayload` just like we will
try to later"
identity: "beta"
cluster: "CommissionerCommands"
command: "PairWithCode"
# Only run this if we ran the previous step.
PICS: CADMIN.S && CADMIN.S.C01.Rsp
arguments:
values:
- name: "nodeId"
value: nodeId2
- name: "payload"
value: correctPayload

- label: "Wait for a CASE session"
identity: "beta"
cluster: "DelayCommands"
command: "WaitForCommissionee"
PICS: CADMIN.S
arguments:
values:
- name: "nodeId"
value: nodeId2

- label: "Read FabricIndex of beta so we can delete the temp fabric"
identity: "beta"
cluster: "Operational Credentials"
command: "readAttribute"
attribute: "CurrentFabricIndex"
# Only run this if we commissioned the device.
PICS: CADMIN.S.C01.Rsp
response:
saveAs: tempFabricIndex

- label: "Remove the temp fabric"
cluster: "Operational Credentials"
command: "RemoveFabric"
# Only run this if we commissioned the device.
PICS: CADMIN.S.C01.Rsp
arguments:
values:
- name: "FabricIndex"
value: tempFabricIndex

- label: "TH_CR1 opens a commissioning window on DUT_CE"
cluster: "AdministratorCommissioning"
command: "OpenBasicCommissioningWindow"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ tests:
- name: "nodeId"
value: nodeId2
- name: "payload"
value: payload --commissioner-name beta
value: payload

- label: "DUT_CE is commissioned to TH_CR2"
PICS: CADMIN.S
Expand Down
Loading