Skip to content

Commit

Permalink
Modified test Feb 08 (#24918)
Browse files Browse the repository at this point in the history
* Modified scripts:
TC-ACE-1.5
TC-ACL-2.7
TC-ACL-2.8
TC-ACL-2.10
Modified manual test
TC-BRBINFO-2.1
Added missed prompt in simulated test:
TC-ACT-3.1
TC-BOOL-3.1
TC-FLW-3.1
TC-I-3.1
TC-PRS-3.1
TC-PSCFG-3.1
TC-SWTCH-3.1

* Auto generated files

* Restyled by whitespace

* Fixes issue #690

---------

Co-authored-by: Restyled.io <[email protected]>
  • Loading branch information
2 people authored and pull[bot] committed Dec 5, 2023
1 parent 52537ff commit 1084704
Show file tree
Hide file tree
Showing 18 changed files with 999 additions and 129 deletions.
16 changes: 15 additions & 1 deletion src/app/tests/suites/certification/Test_TC_ACE_1_5.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ config:
payload:
type: char_string
defaultValue: "MT:-24J0AFN00KA0648G00"
discriminator:
type: int16u
defaultValue: 3840
PakeVerifier:
type: octet_string
defaultValue: "hex:b96170aae803346884724fe9a3b287c30330c2a660375d17bb205a8cf1aecb350457f8ab79ee253ab6a8e46bb09e543ae422736de501e3db37d441fe344920d09548e4c18240630c4ff4913c53513839b7c07fcc0627a1b8573a149fcd1fa466cf"

tests:
- label: "Wait for the commissioned device to be retrieved for TH1"
Expand All @@ -41,12 +47,20 @@ tests:

- label: "Open Commissioning Window from alpha"
cluster: "Administrator Commissioning"
command: "OpenBasicCommissioningWindow"
command: "OpenCommissioningWindow"
timedInteractionTimeoutMs: 10000
arguments:
values:
- name: "CommissioningTimeout"
value: 180
- name: "PAKEPasscodeVerifier"
value: PakeVerifier
- name: "Discriminator"
value: discriminator
- name: "Iterations"
value: 1000
- name: "Salt"
value: "SPAKE2P Key Salt"

- label: "Commission from TH2"
identity: "beta"
Expand Down
17 changes: 13 additions & 4 deletions src/app/tests/suites/certification/Test_TC_ACL_2_10.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ config:
payload:
type: char_string
defaultValue: "MT:-24J0AFN00KA0648G00"
PakeVerifier:
type: octet_string
defaultValue: "hex:b96170aae803346884724fe9a3b287c30330c2a660375d17bb205a8cf1aecb350457f8ab79ee253ab6a8e46bb09e543ae422736de501e3db37d441fe344920d09548e4c18240630c4ff4913c53513839b7c07fcc0627a1b8573a149fcd1fa466cf"
D_OK_EMPTY:
type: octet_string
defaultValue: "hex:1718"
Expand Down Expand Up @@ -64,16 +67,22 @@ tests:
response:
saveAs: TH1FabricIndex

- label:
"Step 3:TH1 puts DUT into commissioning mode, TH2 commissions DUT
using admin node ID N2"
- label: "Step 3:TH1 puts DUT into commissioning mode"
cluster: "Administrator Commissioning"
command: "OpenBasicCommissioningWindow"
command: "OpenCommissioningWindow"
timedInteractionTimeoutMs: 10000
arguments:
values:
- name: "CommissioningTimeout"
value: 180
- name: "PAKEPasscodeVerifier"
value: PakeVerifier
- name: "Discriminator"
value: discriminator
- name: "Iterations"
value: 1000
- name: "Salt"
value: "SPAKE2P Key Salt"

- label: "TH2 starts a commissioning process with DUT"
identity: "beta"
Expand Down
20 changes: 16 additions & 4 deletions src/app/tests/suites/certification/Test_TC_ACL_2_7.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ config:
payload:
type: char_string
defaultValue: "MT:-24J0AFN00KA0648G00"
discriminator:
type: int16u
defaultValue: 3840
PakeVerifier:
type: octet_string
defaultValue: "hex:b96170aae803346884724fe9a3b287c30330c2a660375d17bb205a8cf1aecb350457f8ab79ee253ab6a8e46bb09e543ae422736de501e3db37d441fe344920d09548e4c18240630c4ff4913c53513839b7c07fcc0627a1b8573a149fcd1fa466cf"
D_OK_EMPTY:
type: octet_string
defaultValue: "hex:1718"
Expand Down Expand Up @@ -61,16 +67,22 @@ tests:
response:
saveAs: TH1FabricIndex

- label:
"Step 3:TH1 puts DUT into commissioning mode, TH2 commissions DUT
using admin node ID N2"
- label: "Step 3:TH1 puts DUT into commissioning mode"
cluster: "Administrator Commissioning"
command: "OpenBasicCommissioningWindow"
command: "OpenCommissioningWindow"
timedInteractionTimeoutMs: 10000
arguments:
values:
- name: "CommissioningTimeout"
value: 180
- name: "PAKEPasscodeVerifier"
value: PakeVerifier
- name: "Discriminator"
value: discriminator
- name: "Iterations"
value: 1000
- name: "Salt"
value: "SPAKE2P Key Salt"

- label: "Step 4:TH2 starts a commissioning process with DUT"
identity: "beta"
Expand Down
20 changes: 16 additions & 4 deletions src/app/tests/suites/certification/Test_TC_ACL_2_8.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ config:
payload:
type: char_string
defaultValue: "MT:-24J0AFN00KA0648G00"
discriminator:
type: int16u
defaultValue: 3840
PakeVerifier:
type: octet_string
defaultValue: "hex:b96170aae803346884724fe9a3b287c30330c2a660375d17bb205a8cf1aecb350457f8ab79ee253ab6a8e46bb09e543ae422736de501e3db37d441fe344920d09548e4c18240630c4ff4913c53513839b7c07fcc0627a1b8573a149fcd1fa466cf"

tests:
- label: "Wait for the commissioned device to be retrieved"
Expand All @@ -53,16 +59,22 @@ tests:
response:
saveAs: TH1FabricIndex

- label:
"TH1 puts DUT into commissioning mode, TH2 commissions DUT using admin
node ID N2"
- label: "TH1 puts DUT into commissioning mode"
cluster: "Administrator Commissioning"
command: "OpenBasicCommissioningWindow"
command: "OpenCommissioningWindow"
timedInteractionTimeoutMs: 10000
arguments:
values:
- name: "CommissioningTimeout"
value: 180
- name: "PAKEPasscodeVerifier"
value: PakeVerifier
- name: "Discriminator"
value: discriminator
- name: "Iterations"
value: 1000
- name: "Salt"
value: "SPAKE2P Key Salt"

- label: "TH2 starts a commissioning process with DUT"
identity: "beta"
Expand Down
108 changes: 108 additions & 0 deletions src/app/tests/suites/certification/Test_TC_ACT_3_1_Simulated.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -449,3 +449,111 @@ tests:
value: "Enter 'y' after success"
- name: "expectedValue"
value: "y"

- label:
"DUT reads all supported optional attributes from TH one at a time in
a manufacturer specific order"
verification: |
Optional attibute
./chip-tool actions read setup-url 1 1
Verify the Unsupported attribute on the TH(all-clusters-minnimal-app) Log
[1666952609.343159][217377:217377] CHIP:DMG: ReadRequestMessage =
[1666952609.343185][217377:217377] CHIP:DMG: {
[1666952609.343205][217377:217377] CHIP:DMG: AttributePathIBs =
[1666952609.343228][217377:217377] CHIP:DMG: [
[1666952609.343248][217377:217377] CHIP:DMG: AttributePathIB =
[1666952609.343272][217377:217377] CHIP:DMG: {
[1666952609.343296][217377:217377] CHIP:DMG: Endpoint = 0x1,
[1666952609.343319][217377:217377] CHIP:DMG: Cluster = 0x25,
[1666952609.343344][217377:217377] CHIP:DMG: Attribute = 0x0000_0002,
[1666952609.343366][217377:217377] CHIP:DMG: }
[1666952609.343396][217377:217377] CHIP:DMG:
[1666952609.343414][217377:217377] CHIP:DMG: ],
[1666952609.343437][217377:217377] CHIP:DMG:
[1666952609.343456][217377:217377] CHIP:DMG: isFabricFiltered = true,
[1666952609.343474][217377:217377] CHIP:DMG: InteractionModelRevision = 1
[1666952609.343491][217377:217377] CHIP:DMG: },
[1666952609.343573][217377:217377] CHIP:DMG: IM RH moving to [GeneratingReports]
[1666952609.343647][217377:217377] CHIP:DMG: Building Reports for ReadHandler with LastReportGeneration = 0 DirtyGeneration = 0
[1666952609.343671][217377:217377] CHIP:DMG: <RE:Run> Cluster 25, Attribute 2 is dirty
[1666952609.343688][217377:217377] CHIP:DMG: Reading attribute: Cluster=0x0000_0025 Endpoint=1 AttributeId=0x0000_0002 (expanded=0)
[1666952609.343733][217377:217377] CHIP:DMG: <RE> Sending report (payload has 33 bytes)...
[1666952609.344066][217377:217377] CHIP:EM: <<< [E:37827r M:202875336 (Ack:199155625)] (S) Msg TX to 1:000000000001B669 [AE59] --- Type 0001:05 (IM:ReportData)
[1666952609.344128][217377:217377] CHIP:IN: (S) Sending msg 202875336 on secure session with LSID: 63116
[1666952609.344547][217377:217377] CHIP:DMG: >> to UDP:[fe80::485c:bace:6107:3682%wlp3s0]:46813 | 202875336 | [Interaction Model (1) / Report Data (0x05) / Session = 20214 / Exchange = 37827]
[1666952609.344601][217377:217377] CHIP:DMG: Header Flags =
[1666952609.344623][217377:217377] CHIP:DMG: {
[1666952609.344664][217377:217377] CHIP:DMG: Exchange (0x06) =
[1666952609.344681][217377:217377] CHIP:DMG: {
[1666952609.344703][217377:217377] CHIP:DMG: AckMsg = 199155625
[1666952609.344723][217377:217377] CHIP:DMG: NeedsAck = true
[1666952609.344741][217377:217377] CHIP:DMG: }
[1666952609.344770][217377:217377] CHIP:DMG: }
[1666952609.344788][217377:217377] CHIP:DMG:
[1666952609.344816][217377:217377] CHIP:DMG: Encrypted Payload (67 bytes) =
[1666952609.344836][217377:217377] CHIP:DMG: {
[1666952609.344856][217377:217377] CHIP:DMG: data = 00f64e00c8a1170c0f5d4a4d9195a985ad54b3de870e336b0ecfaa7373615ca174138e2959606cb26476c70d8149a1435824f8e4446d9cc896de6c6d7b7275ea265d7c
[1666952609.344878][217377:217377] CHIP:DMG: buffer_ptr = 94384713812256
[1666952609.344897][217377:217377] CHIP:DMG: }
[1666952609.344915][217377:217377] CHIP:DMG:
[1666952609.344947][217377:217377] CHIP:DMG: Decrypted Payload (33 bytes) =
[1666952609.344967][217377:217377] CHIP:DMG: {
[1666952609.344986][217377:217377] CHIP:DMG: data = 153601153500370024020124032524040218350124008618181818290424ff0118
[1666952609.345007][217377:217377] CHIP:DMG: }
[1666952609.345024][217377:217377] CHIP:DMG:
[1666952609.345097][217377:217377] CHIP:DMG: ReportDataMessage =
[1666952609.345124][217377:217377] CHIP:DMG: {
[1666952609.345144][217377:217377] CHIP:DMG: AttributeReportIBs =
[1666952609.345174][217377:217377] CHIP:DMG: [
[1666952609.345193][217377:217377] CHIP:DMG: AttributeReportIB =
[1666952609.345224][217377:217377] CHIP:DMG: {
[1666952609.345244][217377:217377] CHIP:DMG: AttributeStatusIB =
[1666952609.345269][217377:217377] CHIP:DMG: {
[1666952609.345290][217377:217377] CHIP:DMG: AttributePathIB =
[1666952609.345320][217377:217377] CHIP:DMG: {
[1666952609.345346][217377:217377] CHIP:DMG: Endpoint = 0x1,
[1666952609.345373][217377:217377] CHIP:DMG: Cluster = 0x25,
[1666952609.345403][217377:217377] CHIP:DMG: Attribute = 0x0000_0002,
[1666952609.345431][217377:217377] CHIP:DMG: }
[1666952609.345462][217377:217377] CHIP:DMG:
[1666952609.345489][217377:217377] CHIP:DMG: StatusIB =
[1666952609.345519][217377:217377] CHIP:DMG: {
[1666952609.345543][217377:217377] CHIP:DMG: status = 0x86 (UNSUPPORTED_ATTRIBUTE),
[1666952609.345570][217377:217377] CHIP:DMG: },
[1666952609.345595][217377:217377] CHIP:DMG:
[1666952609.345617][217377:217377] CHIP:DMG: },
[1666952609.345647][217377:217377] CHIP:DMG:
[1666952609.345668][217377:217377] CHIP:DMG: },
[1666952609.345698][217377:217377] CHIP:DMG:
[1666952609.345718][217377:217377] CHIP:DMG: ],
[1666952609.345750][217377:217377] CHIP:DMG:
[1666952609.345771][217377:217377] CHIP:DMG: SuppressResponse = true,
[1666952609.345792][217377:217377] CHIP:DMG: InteractionModelRevision = 1
[1666952609.345811][217377:217377] CHIP:DMG: }
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_SKIP_SAMPLE_APP
arguments:
values:
- name: "message"
value: "Enter 'y' after success"
- name: "expectedValue"
value: "y"

- label:
"DUT writes a suitable value to all supported optional attributes on
the TH one at a time in a manufacturer specific order"
verification: |
This cluster doesn't have any writable attributes
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_SKIP_SAMPLE_APP
arguments:
values:
- name: "message"
value: "Enter 'y' after success"
- name: "expectedValue"
value: "y"
30 changes: 30 additions & 0 deletions src/app/tests/suites/certification/Test_TC_BOOL_3_1_Simulated.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -323,3 +323,33 @@ tests:
value: "Enter 'y' after success"
- name: "expectedValue"
value: "y"

- label:
"DUT reads all supported optional attributes from TH one at a time in
a manufacturer specific order"
verification: |
This cluster doesn't have any optional attribute
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_SKIP_SAMPLE_APP
arguments:
values:
- name: "message"
value: "Enter 'y' after success"
- name: "expectedValue"
value: "y"

- label:
"DUT writes a suitable value to all supported optional attributes on
the TH one at a time in a manufacturer specific order"
verification: |
This cluster doesn't have any writable attributes
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_SKIP_SAMPLE_APP
arguments:
values:
- name: "message"
value: "Enter 'y' after success"
- name: "expectedValue"
value: "y"
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ tests:
- label: "TH writes NodeLabel from the DUT."
PICS: BRBINFO.S.A0005 && PICS_USER_PROMPT
verification: |
./chip-tool bridgeddevicebasic write node-label '"newnode"' 1 3
./chip-tool bridgeddevicebasicinformation write node-label '"newnode"' 1 3
Verify response has unsupported write on TH(chip-tool) Log:
Expand Down
56 changes: 20 additions & 36 deletions src/app/tests/suites/certification/Test_TC_BRBINFO_2_3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -497,42 +497,26 @@ tests:
Optional Attribute - If it is supported, then in TH(bridge-app) log it will results in displaying the ReportDataMessage , else it will display UNSUPPORTED_ATTRIBUTE
Example Log:
[1663658944.254117][3274:3274] CHIP:DMG:
[1663658944.254195][3274:3274] CHIP:DMG: ReportDataMessage =
[1663658944.254224][3274:3274] CHIP:DMG: {
[1663658944.254248][3274:3274] CHIP:DMG: AttributeReportIBs =
[1663658944.254286][3274:3274] CHIP:DMG: [
[1663658944.254313][3274:3274] CHIP:DMG: AttributeReportIB =
[1663658944.254348][3274:3274] CHIP:DMG: {
[1663658944.254380][3274:3274] CHIP:DMG: AttributeStatusIB =
[1663658944.254419][3274:3274] CHIP:DMG: {
[1663658944.254456][3274:3274] CHIP:DMG: AttributePathIB =
[1663658944.254497][3274:3274] CHIP:DMG: {
[1663658944.254539][3274:3274] CHIP:DMG: Endpoint = 0x3,
[1663658944.254575][3274:3274] CHIP:DMG: Cluster = 0x39,
[1663658944.254614][3274:3274] CHIP:DMG: Attribute = 0x0000_000C,
[1663658944.254648][3274:3274] CHIP:DMG: }
[1663658944.254690][3274:3274] CHIP:DMG:
[1663658944.254723][3274:3274] CHIP:DMG: StatusIB =
[1663658944.254762][3274:3274] CHIP:DMG: {
[1663658944.254835][3274:3274] CHIP:DMG: status = 0x86 (UNSUPPORTED_ATTRIBUTE),
[1663658944.254876][3274:3274] CHIP:DMG: },
[1663658944.254919][3274:3274] CHIP:DMG:
[1663658944.254954][3274:3274] CHIP:DMG: },
[1663658944.254994][3274:3274] CHIP:DMG:
[1663658944.255019][3274:3274] CHIP:DMG: },
[1663658944.255055][3274:3274] CHIP:DMG:
[1663658944.255081][3274:3274] CHIP:DMG: ],
[1663658944.255113][3274:3274] CHIP:DMG:
[1663658944.255141][3274:3274] CHIP:DMG: SuppressResponse = true,
[1663658944.255170][3274:3274] CHIP:DMG: InteractionModelRevision = 1
[1663658944.255196][3274:3274] CHIP:DMG: }
[1663658944.255222][3274:3274] CHIP:DMG:
[1663658944.255463][3274:3274] CHIP:DMG: <RE> OnReportConfirm: NumReports = 0
[1663658944.255543][3274:3274] CHIP:DMG: <RE> ReportsInFlight = 0 with readHandler 0, RE has no more messages
[1663658944.255573][3274:3274] CHIP:DMG: IM RH moving to [AwaitingDestruction]
[1663658944.255609][3274:3274] CHIP:DMG: All ReadHandler-s are clean, clear GlobalDirtySet
[1663658944.256310][3274:3274] CHIP:DMG: << from UDP:[fe80::e65f:1ff:fe0e:baf7%eth0]:58756 | 188321411 | [Secure Channel (0) / Standalone Ack (0x10) / Session = 0 / Exchange = 17890]
[1662483368.089998][6721:6721] CHIP:DMG: ReadRequestMessage =
[1662483368.090026][6721:6721] CHIP:DMG: {
[1662483368.090047][6721:6721] CHIP:DMG: AttributePathIBs =
[1662483368.090100][6721:6721] CHIP:DMG: [
[1662483368.090126][6721:6721] CHIP:DMG: AttributePathIB =
[1662483368.090154][6721:6721] CHIP:DMG: {
[1662483368.090182][6721:6721] CHIP:DMG: Endpoint = 0x3,
[1662483368.090214][6721:6721] CHIP:DMG: Cluster = 0x39,
[1662483368.090244][6721:6721] CHIP:DMG: Attribute = 0x0000_000D,
[1662483368.090272][6721:6721] CHIP:DMG: }
[1662483368.090299][6721:6721] CHIP:DMG:
[1662483368.090324][6721:6721] CHIP:DMG: ],
[1662483368.090352][6721:6721] CHIP:DMG:
[1662483368.090378][6721:6721] CHIP:DMG: isFabricFiltered = true,
[1662483368.090403][6721:6721] CHIP:DMG: InteractionModelRevision = 1
[1662483368.090426][6721:6721] CHIP:DMG: },
[1662483368.090499][6721:6721] CHIP:DMG: IM RH moving to [GeneratingReports]
[1662483368.090578][6721:6721] CHIP:DMG: Building Reports for ReadHandler with LastReportGeneration = 0 DirtyGeneration = 0
[1662483368.090607][6721:6721] CHIP:DMG: <RE:Run> Cluster 39, Attribute d is dirty
disabled: true

- label: "DUT reads ProductLabel from the TH"
Expand Down
Loading

0 comments on commit 1084704

Please sign in to comment.