-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added YAML Test Cases - Jan 19th (#13700)
* Adding following testcases 1.TC_BRAC_1_1 2.TC_ETHDIAG_1_1 3.TC_ETHDIAG_2_1 4.TC_PS_1_1 5.TC_SWTCH_2_1 6.TC_SWTCH_2_2 7.TC_WIFIDIAG_1_1 8.TC_WIFIDIAG_3_1 * Adding auto generated files
- Loading branch information
Showing
12 changed files
with
3,585 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# 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 | ||
# | ||
# https://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: 77.1.1. [TC-BRAC-1.1] Global attributes with server as DUT | ||
|
||
config: | ||
cluster: "Bridged Actions" | ||
endpoint: 1 | ||
|
||
tests: | ||
- label: "Wait for the commissioned device to be retrieved" | ||
cluster: "DelayCommands" | ||
command: "WaitForCommissionee" | ||
|
||
- 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 |
162 changes: 162 additions & 0 deletions
162
src/app/tests/suites/certification/Test_TC_ETHDIAG_1_1.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,162 @@ | ||
# 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 | ||
# | ||
# https://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: 48.1.1. [TC-ETHDIAG-1.1] Attributes with server as DUT | ||
|
||
config: | ||
cluster: "Ethernet Network Diagnostics" | ||
endpoint: 1 | ||
|
||
tests: | ||
- label: "Wait for the commissioned device to be retrieved" | ||
cluster: "DelayCommands" | ||
command: "WaitForCommissionee" | ||
|
||
#Disabled due to issue #11670 and #13648 | ||
- label: "Read PHYRate attribute" | ||
disabled: true | ||
command: "readAttribute" | ||
attribute: "PHYRate" | ||
response: | ||
value: null | ||
|
||
- label: "Read PHYRate attribute constraints" | ||
disabled: true | ||
command: "readAttribute" | ||
attribute: "PHYRate" | ||
response: | ||
constraints: | ||
type: enum8 | ||
minValue: 0 | ||
maxValue: 9 | ||
|
||
- label: "Read FullDuplex attribute" | ||
disabled: true | ||
command: "readAttribute" | ||
attribute: "FullDuplex" | ||
response: | ||
value: null | ||
|
||
- label: "Read FullDuplex attribute constraints" | ||
disabled: true | ||
command: "readAttribute" | ||
attribute: "FullDuplex" | ||
response: | ||
constraints: | ||
type: bool | ||
|
||
- label: "Read PacketRxCount attribute" | ||
disabled: true | ||
command: "readAttribute" | ||
attribute: "PacketRxCount" | ||
response: | ||
value: 0 | ||
|
||
- label: "Read PacketRxCount attribute constraints" | ||
disabled: true | ||
command: "readAttribute" | ||
attribute: "PacketRxCount" | ||
response: | ||
constraints: | ||
type: uint64 | ||
|
||
- label: "Read PacketTxCount attribute" | ||
disabled: true | ||
command: "readAttribute" | ||
attribute: "PacketTxCount" | ||
response: | ||
value: 0 | ||
|
||
- label: "Read PacketTxCount attribute constraints" | ||
disabled: true | ||
command: "readAttribute" | ||
attribute: "PacketTxCount" | ||
response: | ||
constraints: | ||
type: uint64 | ||
|
||
- label: "Read TxErrCount attribute" | ||
disabled: true | ||
command: "readAttribute" | ||
attribute: "TxErrCount" | ||
response: | ||
value: 0 | ||
|
||
- label: "Read TxErrCount attribute constraints" | ||
disabled: true | ||
command: "readAttribute" | ||
attribute: "TxErrCount" | ||
response: | ||
constraints: | ||
type: uint64 | ||
|
||
- label: "Read CollisionCount attribute" | ||
disabled: true | ||
command: "readAttribute" | ||
attribute: "CollisionCount" | ||
response: | ||
value: 0 | ||
|
||
- label: "Read CollisionCount attribute constraints" | ||
disabled: true | ||
command: "readAttribute" | ||
attribute: "CollisionCount" | ||
response: | ||
constraints: | ||
type: uint64 | ||
|
||
- label: "Read OverrunCount attribute" | ||
disabled: true | ||
command: "readAttribute" | ||
attribute: "OverrunCount" | ||
response: | ||
value: 0 | ||
|
||
- label: "Read OverrunCount attribute constraints" | ||
disabled: true | ||
command: "readAttribute" | ||
attribute: "OverrunCount" | ||
response: | ||
constraints: | ||
type: uint64 | ||
|
||
- label: "Read CarrierDetect attribute" | ||
disabled: true | ||
command: "readAttribute" | ||
attribute: "CarrierDetect" | ||
response: | ||
value: null | ||
|
||
- label: "Read CarrierDetect attribute constraints" | ||
disabled: true | ||
command: "readAttribute" | ||
attribute: "CarrierDetect" | ||
response: | ||
constraints: | ||
type: bool | ||
|
||
- label: "Read TimeSinceReset attribute" | ||
disabled: true | ||
command: "readAttribute" | ||
attribute: "TimeSinceReset" | ||
response: | ||
value: 0 | ||
|
||
- label: "Read TimeSinceReset attribute constraints" | ||
disabled: true | ||
command: "readAttribute" | ||
attribute: "TimeSinceReset" | ||
response: | ||
constraints: | ||
type: uint64 |
64 changes: 64 additions & 0 deletions
64
src/app/tests/suites/certification/Test_TC_ETHDIAG_2_1.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# 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 | ||
# | ||
# https://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: 48.1.3. [TC-ETHDIAG-2.1] Command received functionality with server as DUT | ||
|
||
config: | ||
cluster: "Ethernet Network Diagnostics" | ||
endpoint: 1 | ||
|
||
tests: | ||
- label: "Wait for the commissioned device to be retrieved" | ||
cluster: "DelayCommands" | ||
command: "WaitForCommissionee" | ||
|
||
#Below steps disabled due to issue #13648 | ||
- label: "Sends ResetCounts command" | ||
disabled: true | ||
command: "ResetCounts" | ||
|
||
- label: "Read the PacketRxCount attribute" | ||
disabled: true | ||
command: "readAttribute" | ||
attribute: "PacketRxCount" | ||
response: | ||
value: 0 | ||
|
||
- label: "Read the PacketTxCount attribute" | ||
disabled: true | ||
command: "readAttribute" | ||
attribute: "PacketTxCount" | ||
response: | ||
value: 0 | ||
|
||
- label: "Read the TxErrCount attribute" | ||
disabled: true | ||
command: "readAttribute" | ||
attribute: "TxErrCount" | ||
response: | ||
value: 0 | ||
|
||
- label: "Read the CollisionCount attribute" | ||
disabled: true | ||
command: "readAttribute" | ||
attribute: "CollisionCount" | ||
response: | ||
value: 0 | ||
|
||
- label: "Read the OverrunCount attribute" | ||
disabled: true | ||
command: "readAttribute" | ||
attribute: "OverrunCount" | ||
response: | ||
value: 0 |
Oops, something went wrong.