Skip to content

Commit

Permalink
Modified scripts July 17 (#28048)
Browse files Browse the repository at this point in the history
* Fixes issue: 570
TC-DRLK-2.8
Semi-automated tests:
TC-ACL-2.5
TC-ACL-2.6
Deleted manual tests:
TC-ACE-1.2
TC-DA-1.2
TC-DA-1.5
TC-IDM-1.2
Added step number for all automated & semi-automated tests:
TC_ACE_1_5
TC_ACFREMON_1_1
TC_ACFREMON_2_1
TC_ACL_1_1
TC_ACL_2_1
TC_ACL_2_3
TC_ACL_2_7
TC_ACL_2_8
TC_ACL_2_9
TC_ACT_1_1
TC_AIRQUAL_1_1
TC_AIRQUAL_2_1
TC_ALOGIN_1_12
TC_ALOGIN_12_1
TC_APBSC_1_10
TC_APBSC_9_1
TC_APPLAUNCHER_1_3
TC_APPLAUNCHER_3_5
TC_APPLAUNCHER_3_6
TC_APPLAUNCHER_3_7
TC_AUDIOOUTPUT_1_8
TC_AUDIOOUTPUT_7_1
TC_AUDIOOUTPUT_7_2
TC_BIND_1_1
TC_BINFO_1_1
TC_BINFO_2_1
TC_BINFO_2_2
TC_BOOL_1_1
TC_BOOL_2_1
TC_BRBINFO_1_1
TC_BRBINFO_2_1
TC_CADMIN_1_10
TC_CADMIN_1_16
TC_CADMIN_1_21
TC_CADMIN_1_22
TC_CADMIN_1_23
TC_CADMIN_1_24
TC_CADMIN_1_4
TC_CADMIN_1_6
TC_CC_1_1
TC_CC_2_1
TC_CC_3_1
TC_CC_3_2
TC_CC_3_3
TC_CC_4_1
TC_CC_4_2
TC_CC_4_3
TC_CC_4_4
TC_CC_5_1
TC_CC_5_2
TC_CC_5_3
TC_CC_6_1
TC_CC_6_2
TC_CC_6_3
TC_CC_6_5
TC_CC_7_1
TC_CC_7_2
TC_CC_7_3
TC_CC_7_4
TC_CC_8_1
TC_CC_9_1
TC_CC_9_2
TC_CC_9_3
TC_CDOCONC_1_1
TC_CDOCONC_2_1
TC_CFREMON_1_1
TC_CFREMON_2_1
TC_CGEN_1_1
TC_CGEN_2_1
TC_CHANN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C_TSUIC_2_1
TC_TSUIC_2_2
TC_TVOCCONC_1_1
TC_TVOCCONC_2_1
TC_ULABEL_1_1
TC_ULABEL_2_1
TC_ULABEL_2_2
TC_ULABEL_2_3
TC_ULABEL_2_4
TC_ULABEL_3_1_Simulated
TC_UVFREMON_1_1
TC_UVFREMON_2_1
TC_WAKEONLAN_1_5
TC_WAKEONLAN_4_1
TC_WNCV_1_1
TC_WNCV_2_1
TC_WNCV_2_2
TC_WNCV_2_3
TC_WNCV_2_4
TC_WNCV_2_5
TC_WNCV_3_1
TC_WNCV_3_2
TC_WNCV_3_3
TC_WNCV_3_4
TC_WNCV_3_5
TC_WNCV_4_1
TC_WNCV_4_2
TC_WNCV_4_3
TC_WNCV_4_4
TC_WNCV_4_5
TC_WTREMON_1_1
TC_WTREMON_2_1
TC_ZEOFREMON_1_1
TC_ZEOFREMON_2_1

* Auto generated files

* Modified test
TC-ACL-2.5
ciTests.json
manualTests.json
Disabled events tests in Darwin Json file

* Auto generated files
  • Loading branch information
manjunath-grl authored and pull[bot] committed Dec 14, 2023
1 parent 98fef24 commit 1181536
Show file tree
Hide file tree
Showing 276 changed files with 21,218 additions and 23,695 deletions.
4 changes: 3 additions & 1 deletion examples/darwin-framework-tool/templates/tests/ciTests.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@
"Disabled due to OperationalState not being enabled in Matter.framework for now:",
"Test_TC_OPSTATE_1_1",
"Disabled due to Events verification not supported",
"Test_TC_BINFO_2_2"
"Test_TC_BINFO_2_2",
"Test_TC_ACL_2_5",
"Test_TC_ACL_2_6"
]
}
2,347 changes: 0 additions & 2,347 deletions src/app/tests/suites/certification/Test_TC_ACE_1_2.yaml

This file was deleted.

35 changes: 18 additions & 17 deletions src/app/tests/suites/certification/Test_TC_ACE_1_5.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ config:
defaultValue: "hex:b96170aae803346884724fe9a3b287c30330c2a660375d17bb205a8cf1aecb350457f8ab79ee253ab6a8e46bb09e543ae422736de501e3db37d441fe344920d09548e4c18240630c4ff4913c53513839b7c07fcc0627a1b8573a149fcd1fa466cf"

tests:
- label: "Wait for the commissioned device to be retrieved for TH1"
- label: "Step 1: Wait for the commissioned device to be retrieved for TH1"
cluster: "DelayCommands"
command: "WaitForCommissionee"
arguments:
Expand Down Expand Up @@ -81,7 +81,7 @@ tests:
- name: "expectedValue"
value: "y"

- label: "Open Commissioning Window from alpha"
- label: "Step 2: Open Commissioning Window from alpha"
cluster: "Administrator Commissioning"
command: "OpenCommissioningWindow"
timedInteractionTimeoutMs: 10000
Expand All @@ -108,7 +108,7 @@ tests:
- name: "ms"
value: waitAfterCommissioning

- label: "Commission from TH2"
- label: "Step 3: Commission from TH2"
identity: "beta"
cluster: "CommissionerCommands"
command: "PairWithCode"
Expand All @@ -130,7 +130,7 @@ tests:
- name: "nodeId"
value: nodeId

- label: "TH2 reads the fabric index"
- label: "Step 4: TH2 reads the fabric index"
identity: "beta"
PICS: PICS_SDK_CI_ONLY
cluster: "Operational Credentials"
Expand All @@ -140,7 +140,7 @@ tests:
saveAs: th2FabricIndex

#Issue https://github.com/CHIP-Specifications/chip-certification-tool/issues/768
- label: "TH2 reads the fabric index"
- label: "Step 4: TH2 reads the fabric index"
verification: |
./chip-tool operationalcredentials read current-fabric-index 2 0 --commissioner-name beta
Expand Down Expand Up @@ -168,7 +168,8 @@ tests:
- name: "nodeId"
saveAs: commissionerNodeIdAlpha

- label: "TH1 writes ACL giving view privilege for descriptor cluster"
- label:
"Step 5: TH1 writes ACL giving view privilege for descriptor cluster"
command: "writeAttribute"
attribute: "ACL"
arguments:
Expand Down Expand Up @@ -201,7 +202,7 @@ tests:
- name: "nodeId"
saveAs: commissionerNodeIdBeta

- label: "TH2 writes ACL giving view privilge for basic cluster"
- label: "Step 6: TH2 writes ACL giving view privilge for basic cluster"
identity: beta
PICS: PICS_SDK_CI_ONLY
command: "writeAttribute"
Expand All @@ -227,7 +228,7 @@ tests:
]

#Issue https://github.com/CHIP-Specifications/chip-certification-tool/issues/768
- label: "TH2 writes ACL giving view privilge for basic cluster"
- label: "Step 6: TH2 writes ACL giving view privilge for basic cluster"
verification: |
./chip-tool accesscontrol write acl '[{"fabricIndex": 2, "privilege": 5, "authMode": 2, "subjects": [223344], "targets": [{ "cluster": 31, "endpoint": 0, "deviceType": null }]}, {"fabricIndex": 2, "privilege": 1, "authMode": 2, "subjects": null, "targets": [{ "cluster": 40, "endpoint": 0, "deviceType": null }]}]' 2 0 --commissioner-name beta
Expand All @@ -248,19 +249,19 @@ tests:
- name: "expectedValue"
value: "y"

- label: "TH1 reads descriptor cluster - expect SUCCESS"
- label: "Step 7: TH1 reads descriptor cluster - expect SUCCESS"
command: "readAttribute"
cluster: "Descriptor"
attribute: "DeviceTypeList"

- label: "TH1 reads basic cluster - expect UNSUPPORTED_ACCESS"
- label: "Step 8: TH1 reads basic cluster - expect UNSUPPORTED_ACCESS"
command: "readAttribute"
cluster: "Basic Information"
attribute: "VendorID"
response:
error: UNSUPPORTED_ACCESS

- label: "TH2 reads descriptor cluster - expect UNSUPPORTED_ACCESS"
- label: "Step 9: TH2 reads descriptor cluster - expect UNSUPPORTED_ACCESS"
identity: "beta"
PICS: PICS_SDK_CI_ONLY
command: "readAttribute"
Expand All @@ -270,7 +271,7 @@ tests:
error: UNSUPPORTED_ACCESS

#Issue https://github.com/CHIP-Specifications/chip-certification-tool/issues/768
- label: "TH2 reads descriptor cluster - expect UNSUPPORTED_ACCESS"
- label: "Step 9: TH2 reads descriptor cluster - expect UNSUPPORTED_ACCESS"
verification: |
./chip-tool descriptor read device-type-list 2 0 --commissioner-name beta
Expand All @@ -290,15 +291,15 @@ tests:
- name: "expectedValue"
value: "y"

- label: "TH2 reads basic cluster - expect SUCCESS"
- label: "Step 10: TH2 reads basic cluster - expect SUCCESS"
identity: "beta"
PICS: PICS_SDK_CI_ONLY
command: "readAttribute"
cluster: "Basic Information"
attribute: "VendorID"

#Issue https://github.com/CHIP-Specifications/chip-certification-tool/issues/768
- label: "TH2 writes Extension attribute value as empty list"
- label: "Step 10: TH2 reads basic cluster - expect SUCCESS"
verification: |
./chip-tool basicinformation read vendor-id 2 0 --commissioner-name beta
Expand All @@ -317,7 +318,7 @@ tests:
- name: "expectedValue"
value: "y"

- label: "TH1 resets ACL to default"
- label: "Step 11: TH1 resets ACL to default"
command: "writeAttribute"
attribute: "ACL"
arguments:
Expand All @@ -331,7 +332,7 @@ tests:
},
]

- label: "TH1 sends RemoveFabric command for TH2"
- label: "Step 12: TH1 sends RemoveFabric command for TH2"
cluster: "Operational Credentials"
PICS: PICS_SDK_CI_ONLY
command: "RemoveFabric"
Expand All @@ -341,7 +342,7 @@ tests:
value: th2FabricIndex

#Issue https://github.com/CHIP-Specifications/chip-certification-tool/issues/768
- label: "TH1 sends RemoveFabric command for TH2"
- label: "Step 12: TH1 sends RemoveFabric command for TH2"
verification: |
./chip-tool operationalcredentials remove-fabric 2 1 0
Expand Down
47 changes: 25 additions & 22 deletions src/app/tests/suites/certification/Test_TC_ACFREMON_1_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,23 @@ config:
endpoint: 1

tests:
- label: "Wait for the commissioned device to be retrieved"
- label: "Step 1: Wait for the commissioned device to be retrieved"
cluster: "DelayCommands"
command: "WaitForCommissionee"
arguments:
values:
- name: "nodeId"
value: nodeId

- label: "Read the global attribute: ClusterRevision"
- label: "Step 2: Read the global attribute: ClusterRevision"
command: "readAttribute"
attribute: "ClusterRevision"
response:
value: 1
constraints:
type: int16u

- label: "Read the global attribute: FeatureMap"
- label: "Step 3a: Read the global attribute: FeatureMap"
command: "readAttribute"
attribute: "FeatureMap"
PICS: "!ACFREMON.S.F00 && !ACFREMON.S.F01"
Expand All @@ -49,8 +49,8 @@ tests:
type: bitmap32

- label:
"Given ACFREMON.S.F00(Condition) ensure featuremap has the correct bit
set"
"Step 3b: Given ACFREMON.S.F00(Condition) ensure featuremap has the
correct bit set"
command: "readAttribute"
attribute: "FeatureMap"
PICS: ACFREMON.S.F00
Expand All @@ -60,8 +60,8 @@ tests:
hasMasksSet: [0x1]

- label:
"Given ACFREMON.S.F01(Warning) ensure featuremap has the correct bit
set"
"Step 3c: Given ACFREMON.S.F01(Warning) ensure featuremap has the
correct bit set"
command: "readAttribute"
attribute: "FeatureMap"
PICS: ACFREMON.S.F01
Expand All @@ -70,7 +70,7 @@ tests:
type: bitmap32
hasMasksSet: [0x2]

- label: "Read the global attribute: AttributeList"
- label: "Step 4a: Read the global attribute: AttributeList"
command: "readAttribute"
attribute: "AttributeList"
response:
Expand All @@ -79,7 +79,8 @@ tests:
contains: [2, 65528, 65529, 65530, 65531, 65532, 65533]

- label:
"Read the feature dependent(ACFREMON.S.F00) attribute in AttributeList"
"Step 4b: Read the feature dependent(ACFREMON.S.F00) attribute in
AttributeList"
PICS: ACFREMON.S.F00
command: "readAttribute"
attribute: "AttributeList"
Expand All @@ -89,8 +90,8 @@ tests:
contains: [0, 1]

- label:
"Read the optional attribute InPlaceIndicator (ACFREMON.S.A0002) in
AttributeList"
"Step 4c: Read the optional attribute InPlaceIndicator
(ACFREMON.S.A0002) in AttributeList"
PICS: ACFREMON.S.A0002
command: "readAttribute"
attribute: "AttributeList"
Expand All @@ -99,34 +100,36 @@ tests:
type: list
contains: [3]

- label: "Read the global attribute: AcceptedCommandList"
- label: "Step 5: TH reads EventList attribute from DUT"
command: "readAttribute"
attribute: "AcceptedCommandList"
attribute: "EventList"
response:
value: []
constraints:
type: list
contains: []

- label: "Read the optional command (ResetCondition) in AcceptedCommandList"
PICS: ACFREMON.S.C00.Rsp
- label: "Step 6a: Read the global attribute: AcceptedCommandList"
command: "readAttribute"
attribute: "AcceptedCommandList"
response:
constraints:
type: list
contains: [0]
contains: []

- label: "Read the global attribute: GeneratedCommandList"
- label:
"Step 6b: Read the optional command (ResetCondition) in
AcceptedCommandList"
PICS: ACFREMON.S.C00.Rsp
command: "readAttribute"
attribute: "GeneratedCommandList"
attribute: "AcceptedCommandList"
response:
value: []
constraints:
type: list
contains: [0]

- label: "TH reads EventList attribute from DUT"
- label: "Step 7: Read the global attribute: GeneratedCommandList"
command: "readAttribute"
attribute: "EventList"
attribute: "GeneratedCommandList"
response:
value: []
constraints:
Expand Down
11 changes: 6 additions & 5 deletions src/app/tests/suites/certification/Test_TC_ACFREMON_2_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ config:
endpoint: 1

tests:
- label: "Wait for the commissioned device to be retrieved"
- label: "Step 1: Wait for the commissioned device to be retrieved"
cluster: "DelayCommands"
command: "WaitForCommissionee"
arguments:
values:
- name: "nodeId"
value: nodeId

- label: "TH reads from the DUT the Condition attribute."
- label: "Step 2: TH reads from the DUT the Condition attribute."
PICS: ACFREMON.S.A0000
command: "readAttribute"
attribute: "Condition"
Expand All @@ -41,7 +41,8 @@ tests:
minValue: 0
maxValue: 100

- label: "TH reads from the DUT the DegradationDirection attribute.."
- label:
"Step 3: TH reads from the DUT the DegradationDirection attribute.."
PICS: ACFREMON.S.A0001
command: "readAttribute"
attribute: "DegradationDirection"
Expand All @@ -51,7 +52,7 @@ tests:
minValue: 0
maxValue: 1

- label: "TH reads from the DUT the ChangeIndication attribute."
- label: "Step 4: TH reads from the DUT the ChangeIndication attribute."
PICS: ACFREMON.S.A0002
command: "readAttribute"
attribute: "ChangeIndication"
Expand All @@ -61,7 +62,7 @@ tests:
minValue: 0
maxValue: 2

- label: "TH reads from the DUT the InPlaceIndicator attribute"
- label: "Step 5: TH reads from the DUT the InPlaceIndicator attribute"
PICS: ACFREMON.S.A0003
command: "readAttribute"
attribute: "InPlaceIndicator"
Expand Down
Loading

0 comments on commit 1181536

Please sign in to comment.