Skip to content

Commit

Permalink
Added User prompt scripts-Test_Added_Apr19 (#17523)
Browse files Browse the repository at this point in the history
* Added user promot scripts

* Added Auto generated files

* Restyled by whitespace

* Restyled by prettier-yaml

* PR comments addressed.

* Restyled by prettier-yaml

Co-authored-by: Restyled.io <[email protected]>
Co-authored-by: kvikrambhat <[email protected]>
  • Loading branch information
3 people authored and dbahrdt committed Jan 26, 2024
1 parent 59b3068 commit b9e6918
Show file tree
Hide file tree
Showing 15 changed files with 2,068 additions and 1,660 deletions.
3 changes: 3 additions & 0 deletions src/app/tests/suites/certification/PICS.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -312,3 +312,6 @@ PICS:

- label: "Prompts user for input. Unable to run in CI"
id: PICS_USER_PROMPT

- label: "Skip sample app"
id: PICS_SKIP_SAMPLE_APP
44 changes: 35 additions & 9 deletions src/app/tests/suites/certification/Test_TC_BOOL_1_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ tests:
response:
value: 1

- label: "Read the global attribute constraints: ClusterRevision"
- label: "Read the global attribute constraints : ClusterRevision"
command: "readAttribute"
attribute: "ClusterRevision"
response:
Expand All @@ -45,28 +45,54 @@ tests:
command: "readAttribute"
attribute: "AttributeList"
response:
value: [0, 65528, 65529, 65531, 65533]
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

#issue #17483
- label:
"Read FeatureMap attribute from the DUT and Verify that the DUT
response indicates FeatureMap attribute has the value 0"
verification: |
./chip-tool booleanstate read feature-map 1 1(Not implemented in SDK)
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT
arguments:
values:
- name: "message"
value: "Please enter '0' for success"
- name: "expectedValue"
value: 0
77 changes: 32 additions & 45 deletions src/app/tests/suites/certification/Test_TC_CC_1_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,10 @@ tests:
value: nodeId

- label: "read the global attribute: ClusterRevision"
disabled: true
command: "readAttribute"
attribute: "ClusterRevision"
response:
value: 4
value: 5

- label: "Read the global attribute constraints : ClusterRevision"
command: "readAttribute"
Expand All @@ -48,16 +47,15 @@ tests:
command: "writeAttribute"
attribute: "ClusterRevision"
arguments:
value: 4
value: 5
response:
error: UNSUPPORTED_WRITE

- label: "reads back global attribute: ClusterRevision"
disabled: true
command: "readAttribute"
attribute: "ClusterRevision"
response:
value: 4
value: 5

- label: "Read the global attribute: AttributeList"
command: "readAttribute"
Expand All @@ -66,59 +64,48 @@ 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"
disabled: true
command: "readAttribute"
attribute: "AcceptedCommandList"
response:
constraints:
type: list

- label: "Read the global attribute: GeneratedCommandList"
disabled: true
command: "readAttribute"
attribute: "GeneratedCommandList"
response:
constraints:
type: list

#Disabled due to issue #13442
- label: "read the optional global attribute: FeatureMap"
disabled: true
command: "readAttribute"
attribute: "FeatureMap"
response:
value: 0

- label: "Read the optional global attribute : FeatureMap"
disabled: true
command: "readAttribute"
attribute: "FeatureMap"
response:
constraints:
type: map32

- label: "write the default values to optional global attribute: FeatureMap"
disabled: true
command: "writeAttribute"
attribute: "FeatureMap"
#issue #17483
- label:
"Read FeatureMap attribute from the DUT and Verify that the DUT
response indicates FeatureMap attribute has the value 0"
verification: |
Not implemented in SDK
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT
arguments:
value: 0
response:
error: UNSUPPORTED_WRITE

- label: "reads back optional global attribute: FeatureMap"
disabled: true
command: "readAttribute"
attribute: "FeatureMap"
response:
value: 0
values:
- name: "message"
value: "Please enter '0' for success"
- name: "expectedValue"
value: 0
57 changes: 33 additions & 24 deletions src/app/tests/suites/certification/Test_TC_FLW_1_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,11 @@ tests:
- name: "nodeId"
value: nodeId

#issue #12190 as per spec default value is 3 but expecting 1
- label: "read the global attribute: ClusterRevision"
command: "readAttribute"
disabled: true
attribute: "ClusterRevision"
response:
value: 2
value: 3

- label: "Read the global attribute constraints: ClusterRevision"
command: "readAttribute"
Expand All @@ -49,16 +47,15 @@ tests:
command: "writeAttribute"
attribute: "ClusterRevision"
arguments:
value: 2
value: 3
response:
error: UNSUPPORTED_WRITE

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

- label: "Read the global attribute: AttributeList"
command: "readAttribute"
Expand All @@ -67,36 +64,48 @@ 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"
disabled: true
command: "readAttribute"
attribute: "AcceptedCommandList"
response:
constraints:
type: list

- label: "Read the global attribute: GeneratedCommandList"
disabled: true
command: "readAttribute"
attribute: "GeneratedCommandList"
response:
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
#issue #17483
- label:
"Read FeatureMap attribute from the DUT and Verify that the DUT
response indicates FeatureMap attribute has the value 0"
verification: |
Not implemented in SDK
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT
arguments:
values:
- name: "message"
value: "Please enter '0' for success"
- name: "expectedValue"
value: 0
46 changes: 35 additions & 11 deletions src/app/tests/suites/certification/Test_TC_ILL_1_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,13 @@ tests:
- name: "nodeId"
value: nodeId

#issue #12190 as per spec default value is 3 but expecting 2
- label: "read the global attribute: ClusterRevision"
disabled: true
command: "readAttribute"
attribute: "ClusterRevision"
response:
value: 3

- label: "Read the global attribute constraints: ClusterRevision"
- label: "Read the global attribute constraints : ClusterRevision"
command: "readAttribute"
attribute: "ClusterRevision"
response:
Expand All @@ -47,28 +45,54 @@ tests:
command: "readAttribute"
attribute: "AttributeList"
response:
value: [0, 1, 2, 3, 4, 65528, 65529, 65531, 65533]
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

#issue #17483
- label:
"Read FeatureMap attribute from the DUT and Verify that the DUT
response indicates FeatureMap attribute has the value 0"
verification: |
Not implemented in SDK
cluster: "LogCommands"
command: "UserPrompt"
PICS: PICS_USER_PROMPT
arguments:
values:
- name: "message"
value: "Please enter '0' for success"
- name: "expectedValue"
value: 0
Loading

0 comments on commit b9e6918

Please sign in to comment.