Skip to content

Commit

Permalink
Test Modified May 3 (#18011)
Browse files Browse the repository at this point in the history
* Modified tests
TC-BI-1.1
TC-BRAC-1.1
TC-FLW-1.1
TC-GC-1.1
TC-GC-2.1
TC-MC-1.12
TC-MC-3.6
TC-MC-3.7
TC-MC-3.8
TC-MC-3.9
TC-MC-3.10
TC-MC-3.11
TC-MC-3.12
TC-MC-3.13
TC_MF-1.5
TC-MOD-1.1
TC-OO-2.2
TC-PCC-1.1
TC-PSCFG-1.1
TC-SWDIAG-3.1
TC-TSTAT-1.1

* Auto generated files
  • Loading branch information
manjunath-grl authored May 16, 2022
1 parent ed43d59 commit 3447443
Show file tree
Hide file tree
Showing 24 changed files with 3,041 additions and 1,499 deletions.
61 changes: 25 additions & 36 deletions src/app/tests/suites/certification/Test_TC_BI_1_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,34 +28,25 @@ tests:
- name: "nodeId"
value: nodeId

- label: "read the global attribute: ClusterRevision"
- label: "Read the global attribute: ClusterRevision"
command: "readAttribute"
attribute: "ClusterRevision"
response:
value: 1

- label: "Read the global attribute constraints: ClusterRevision"
command: "readAttribute"
attribute: "ClusterRevision"
response:
constraints:
type: uint16

- label:
"write the default values to mandatory global attribute:
ClusterRevision"
command: "writeAttribute"
attribute: "ClusterRevision"
#Disabled due to issue #17483
- label: "Read the global attribute : FeatureMap"
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT
arguments:
value: 1
response:
error: UNSUPPORTED_WRITE

- label: "reads back global attribute: ClusterRevision"
command: "readAttribute"
attribute: "ClusterRevision"
response:
value: 1
values:
- name: "message"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"

- label: "Read the global attribute: AttributeList"
command: "readAttribute"
Expand All @@ -64,34 +55,32 @@ tests:
constraints:
type: list

#issue #11053 disabled steps below Global attributes missing from YAML framework
#issue #15011 disabled steps below Global attributes missing from YAML framework
- label: "Read the global attribute: EventList"
disabled: true
command: "readAttribute"
attribute: "EventList"
response:
constraints:
type: list
verification: |
Not implemented in chip-tool
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT
arguments:
values:
- name: "message"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"

- label: "Read the global attribute: AcceptedCommandList"
command: "readAttribute"
attribute: "AcceptedCommandList"
response:
value: []
constraints:
type: list

- label: "Read the global attribute: GeneratedCommandList"
command: "readAttribute"
attribute: "GeneratedCommandList"
response:
value: []
constraints:
type: list

#Disabled due to issue #13442
- label: "Read the optional global attribute : FeatureMap"
disabled: true
command: "readAttribute"
attribute: "FeatureMap"
response:
constraints:
type: map32
30 changes: 17 additions & 13 deletions src/app/tests/suites/certification/Test_TC_BRAC_1_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,6 @@ tests:
attribute: "ClusterRevision"
response:
value: 1

- label: "Read the global attribute constraints: ClusterRevision"
command: "readAttribute"
attribute: "ClusterRevision"
response:
constraints:
type: uint16

Expand All @@ -48,25 +43,34 @@ tests:
constraints:
type: list

#issue #11053 disabled steps below Global attributes missing from YAML framework
- label: "Read the global attribute: EventList"
disabled: true
command: "readAttribute"
attribute: "EventList"
response:
constraints:
type: list
#issue #15011
- label:
"Read EventList attribute from the DUT and Verify that the DUT
response provides a list of supported events."
verification: |
Not implemented in chip-tool
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT
arguments:
values:
- name: "message"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"

- label: "Read the global attribute: AcceptedCommandList"
command: "readAttribute"
attribute: "AcceptedCommandList"
response:
value: []
constraints:
type: list

- label: "Read the global attribute: GeneratedCommandList"
command: "readAttribute"
attribute: "GeneratedCommandList"
response:
value: []
constraints:
type: list
23 changes: 2 additions & 21 deletions src/app/tests/suites/certification/Test_TC_FLW_1_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,30 +33,9 @@ tests:
attribute: "ClusterRevision"
response:
value: 3

- label: "Read the global attribute constraints: ClusterRevision"
command: "readAttribute"
attribute: "ClusterRevision"
response:
constraints:
type: uint16

- label:
"write the default values to mandatory global attribute:
ClusterRevision"
command: "writeAttribute"
attribute: "ClusterRevision"
arguments:
value: 3
response:
error: UNSUPPORTED_WRITE

- label: "reads back global attribute: ClusterRevision"
command: "readAttribute"
attribute: "ClusterRevision"
response:
value: 3

- label: "Read the global attribute: AttributeList"
command: "readAttribute"
attribute: "AttributeList"
Expand Down Expand Up @@ -84,13 +63,15 @@ tests:
command: "readAttribute"
attribute: "AcceptedCommandList"
response:
value: []
constraints:
type: list

- label: "Read the global attribute: GeneratedCommandList"
command: "readAttribute"
attribute: "GeneratedCommandList"
response:
value: []
constraints:
type: list

Expand Down
84 changes: 54 additions & 30 deletions src/app/tests/suites/certification/Test_TC_GC_1_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

name:
90.1. [TC-GC-1.1] Breadcrumb, BasicCommissioningInfo, RegulatoryConfig and
LocationCapability attributes [DUT - Commissionee]
name: 88.1. [TC-GC-1.1] Global Attributes [DUT-Server]

config:
nodeId: 0x12344321
Expand All @@ -30,46 +28,72 @@ tests:
- name: "nodeId"
value: nodeId

- label: "TH1 reads the BreadCrumb Attribute from the DUT"
- label: "Read the global attribute: ClusterRevision"
command: "readAttribute"
attribute: "Breadcrumb"
attribute: "ClusterRevision"
response:
value: 0

- label: "TH1 writes the BreadCrumb attribute as 1 to the DUT"
command: "writeAttribute"
attribute: "Breadcrumb"
arguments:
value: 1
constraints:
type: uint16

- label: "TH1 reads the BreadCrumb attribute from the DUT"
command: "readAttribute"
attribute: "Breadcrumb"
response:
value: 1
- label: "Read the global attribute: FeatureMap"
verification: |
./chip-tool generalcommissioning read feature-map 1 0
[1651128263.185162][4511:4516] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_0030 Attribute 0x0000_FFFC DataVersion: 3151774871
[1651128263.185227][4511:4516] CHIP:TOO: FeatureMap: 6
[1651128263.185320][4511:4516] CHIP:EM: Sending Standalone Ack for MessageCounter:13202966 on exchange 62574i
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT
arguments:
values:
- name: "message"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"

- label: "TH1 reads the RegulatoryConfig attribute from the DUT"
#Issue 18002
- label: "Read the global attribute: AttributeList"
PICS: PICS_SKIP_SAMPLE_APP
command: "readAttribute"
attribute: "RegulatoryConfig"
attribute: "AttributeList"
response:
value: [0, 1, 2, 3, 65528, 65529, 65531, 65532, 65533]
constraints:
minValue: 0
maxValue: 2
type: list

#issue #15011
- label:
"Read EventList attribute from the DUT and Verify that the DUT
response provides a list of supported events."
verification: |
Not implemented in chip-tool
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT
arguments:
values:
- name: "message"
value: "Please enter 'y' for success"
- name: "expectedValue"
value: "y"

- label: "TH1 reads the LocationCapability attribute from the DUT"
#Issue 18002
- label: "Read the global attribute: AcceptedCommandList"
PICS: PICS_SKIP_SAMPLE_APP
command: "readAttribute"
attribute: "LocationCapability"
attribute: "AcceptedCommandList"
response:
value: [0, 2, 4]
constraints:
minValue: 0
maxValue: 2
type: list

- label: "TH1 reads BasicCommissioningInfo attribute from DUT"
disabled: true
#Issue 18002
- label: "Read the global attribute: GeneratedCommandList"
PICS: PICS_SKIP_SAMPLE_APP
command: "readAttribute"
attribute: "BasicCommissioningInfo"
attribute: "GeneratedCommandList"
response:
value: [1, 3, 5]
constraints:
type: uint16
minValue: 0
maxValue: 65535
type: list
73 changes: 73 additions & 0 deletions src/app/tests/suites/certification/Test_TC_GC_2_1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# Copyright (c) 2021 Project CHIP Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

name:
88.2. [TC-GC-2.1] Breadcrumb, BasicCommissioningInfo, RegulatoryConfig and
LocationCapability attributes [DUT - Commissionee]

config:
nodeId: 0x12344321
cluster: "General Commissioning"
endpoint: 0

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

- label: "TH1 reads the BreadCrumb Attribute from the DUT"
command: "readAttribute"
attribute: "Breadcrumb"
response:
value: 0

- label: "TH1 writes the BreadCrumb attribute as 1 to the DUT"
command: "writeAttribute"
attribute: "Breadcrumb"
arguments:
value: 1

- label: "TH1 reads the BreadCrumb attribute from the DUT"
command: "readAttribute"
attribute: "Breadcrumb"
response:
value: 1

- label: "TH1 reads the RegulatoryConfig attribute from the DUT"
command: "readAttribute"
attribute: "RegulatoryConfig"
response:
constraints:
minValue: 0
maxValue: 2

- label: "TH1 reads the LocationCapability attribute from the DUT"
command: "readAttribute"
attribute: "LocationCapability"
response:
constraints:
minValue: 0
maxValue: 2

#Issue 17997
- label: "TH1 reads BasicCommissioningInfo attribute from DUT"
PICS: PICS_SKIP_SAMPLE_APP
command: "readAttribute"
attribute: "BasicCommissioningInfo"
response:
value: { FailSafeExpiryLengthSeconds: 60 }
5 changes: 0 additions & 5 deletions src/app/tests/suites/certification/Test_TC_MC_1_12.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,6 @@ tests:
attribute: "ClusterRevision"
response:
value: 1

- label: "Read the global attribute constraints: ClusterRevision"
command: "readAttribute"
attribute: "ClusterRevision"
response:
constraints:
type: uint16

Expand Down
Loading

0 comments on commit 3447443

Please sign in to comment.