Skip to content

Commit

Permalink
Test added and modified Mar 4 (#15854)
Browse files Browse the repository at this point in the history
* Added scripts :
TC-DIAG-TH-NW-1.2
TC-PS-2.1
Modified scripts :
TC-CC-2.1
TC-OO-2.1
TC-OO-2.2
TC-SWDIAG-1.1
TC-SWDIAG-2.1
TC-SWDIAG-3.1

* Added auto generated files

Co-authored-by: ManjunathRA <[email protected]>
Co-authored-by: Justin Wood <[email protected]>
  • Loading branch information
3 people authored and pull[bot] committed Nov 14, 2023
1 parent 4d20e16 commit f08638d
Show file tree
Hide file tree
Showing 12 changed files with 15,881 additions and 9,267 deletions.
2 changes: 2 additions & 0 deletions examples/chip-tool/templates/tests/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,7 @@ function getTests()

const PowerSource = [
'Test_TC_PS_1_1',
'Test_TC_PS_2_1',
];

const PressureMeasurement = [
Expand Down Expand Up @@ -421,6 +422,7 @@ function getTests()

const ThreadNetworkDiagnostics = [
'Test_TC_DIAG_TH_NW_1_1',
'Test_TC_DIAG_TH_NW_1_2',
];

const WiFiNetworkDiagnostics = [
Expand Down
116 changes: 1 addition & 115 deletions src/app/tests/suites/certification/Test_TC_CC_2_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,6 @@ tests:
- name: "nodeId"
value: nodeId

- label: "Reads mandatory attribute: CurrentHue"
command: "readAttribute"
attribute: "current hue"
response:
value: 0

- label: "Validate constraints of attribute: current hue"
command: "readAttribute"
attribute: "current hue"
Expand All @@ -57,12 +51,6 @@ tests:
response:
value: 0

- label: "Reads mandatory attribute: CurrentSaturation"
command: "readAttribute"
attribute: "current saturation"
response:
value: 0

- label: "Validate constraints of attribute: CurrentSaturation"
command: "readAttribute"
attribute: "current saturation"
Expand All @@ -86,12 +74,6 @@ tests:
response:
value: 0

- label: "Read the mandatory attribute: CurrentX"
command: "readAttribute"
attribute: "current x"
response:
value: 24939

- label: "Validate constraints of attribute: CurrentX"
command: "readAttribute"
attribute: "current x"
Expand All @@ -115,12 +97,6 @@ tests:
response:
value: 24939

- label: "Read the mandatory attribute: CurrentY"
command: "readAttribute"
attribute: "current y"
response:
value: 24701

- label: "Validate constraints of attribute: CurrentY"
command: "readAttribute"
attribute: "current y"
Expand All @@ -144,13 +120,6 @@ tests:
response:
value: 24701

- label: "Read the mandatory attribute: ColorTemperatureMireds"
disabled: true
command: "readAttribute"
attribute: "color temperature"
response:
value: 250

- label: "Validate constraints of attribute: ColorTemperatureMireds"
command: "readAttribute"
attribute: "color temperature"
Expand Down Expand Up @@ -178,13 +147,6 @@ tests:
response:
value: 250

- label: "Read the mandatory attribute: ColorMode"
disabled: true
command: "readAttribute"
attribute: "color mode"
response:
value: 1

- label: "Validate constraints of attribute: ColorMode"
command: "readAttribute"
attribute: "color mode"
Expand All @@ -210,12 +172,6 @@ tests:
response:
value: 1

- label: "Read the mandatory attribute: Options"
command: "readAttribute"
attribute: "color control options"
response:
value: 0

- label: "Validate constraints of attribute: Options"
command: "readAttribute"
attribute: "color control options"
Expand All @@ -235,12 +191,6 @@ tests:
response:
value: 0

- label: "Read the mandatory attribute: EnhancedCurrentHue"
command: "readAttribute"
attribute: "enhanced current hue"
response:
value: 0

- label: "Validate constraints of attribute: EnhancedCurrentHue"
command: "readAttribute"
attribute: "enhanced current hue"
Expand All @@ -263,13 +213,6 @@ tests:
response:
value: 0

- label: "Read the mandatory attribute: EnhancedColorMode"
disabled: true
command: "readAttribute"
attribute: "enhanced color mode"
response:
value: 1

- label: "Validate constraints of attribute: EnhancedColorMode"
command: "readAttribute"
attribute: "enhanced color mode"
Expand All @@ -294,12 +237,6 @@ tests:
response:
value: 1

- label: "Read the mandatory attribute: ColorLoopActive"
command: "readAttribute"
attribute: "color loop active"
response:
value: 0

- label: "Validate constraints of attribute: ColorLoopActive"
command: "readAttribute"
attribute: "color loop active"
Expand All @@ -321,12 +258,6 @@ tests:
response:
value: 0

- label: "Read the mandatory attribute: ColorLoopDirection"
command: "readAttribute"
attribute: "color loop direction"
response:
value: 0

- label: "Validate constraints of attribute: ColorLoopDirection"
command: "readAttribute"
attribute: "color loop direction"
Expand All @@ -349,12 +280,6 @@ tests:
response:
value: 0

- label: "Read the mandatory attribute: ColorLoopTime"
command: "readAttribute"
attribute: "color loop time"
response:
value: 25

- label: "Validate constraints of attribute: ColorLoopTime"
command: "readAttribute"
attribute: "color loop time"
Expand All @@ -376,12 +301,6 @@ tests:
response:
value: 25

- label: "Read the mandatory attribute: ColorLoopStartEnhancedHue"
command: "readAttribute"
attribute: "color loop start enhanced hue"
response:
value: 8960

- label: "Validate constraints of attribute: ColorLoopStartEnhancedHue"
command: "readAttribute"
attribute: "color loop start enhanced hue"
Expand All @@ -405,12 +324,6 @@ tests:
response:
value: 8960

- label: "Read the mandatory attribute: ColorLoopStoredEnhancedHue"
command: "readAttribute"
attribute: "color loop stored enhanced hue"
response:
value: 0

- label: "Validate constraints of attribute: ColorLoopStoredEnhancedHue"
command: "readAttribute"
attribute: "color loop stored enhanced hue"
Expand All @@ -434,20 +347,14 @@ tests:
response:
value: 0

- label: "Read the mandatory attribute: ColorCapabilities"
command: "readAttribute"
attribute: "color capabilities"
response:
value: 0

- label: "Validate constraints of attribute: ColorCapabilities"
command: "readAttribute"
attribute: "color capabilities"
response:
constraints:
type: map16
minValue: 0
maxValue: 65279
maxValue: 31

- label:
"Write the default values to mandatory attribute: ColorCapabilities"
Expand All @@ -464,12 +371,6 @@ tests:
response:
value: 0

- label: "Read the mandatory attribute: ColorTempPhysicalMinMireds"
command: "readAttribute"
attribute: "color temp physical min"
response:
value: 0

- label: "Validate constraints of attribute: ColorTempPhysicalMinMireds"
command: "readAttribute"
attribute: "color temp physical min"
Expand All @@ -495,12 +396,6 @@ tests:
response:
value: 0

- label: "Read the mandatory attribute: ColorTempPhysicalMaxMireds"
command: "readAttribute"
attribute: "color temp physical max"
response:
value: 65279

- label: "Validate constraints of attribute: ColorTempPhysicalMaxMireds"
command: "readAttribute"
attribute: "color temp physical max"
Expand Down Expand Up @@ -578,22 +473,13 @@ tests:
response:
value: 0

- label: "Read the Optional attribute: RemainingTime"
optional: true
command: "readAttribute"
attribute: "remaining time"
response:
value: 0

- label: "Validate constraints of attribute: RemainingTime"
optional: true
command: "readAttribute"
attribute: "remaining time"
response:
constraints:
type: uint16
minValue: 0
maxValue: 254

- label: "Write the default values to optional attribute: RemainingTime"
optional: true
Expand Down
Loading

0 comments on commit f08638d

Please sign in to comment.