Skip to content

Commit

Permalink
Fixes for test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
beckerzito committed Jan 19, 2024
1 parent f31abc4 commit 9e4a8f3
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7619,6 +7619,9 @@ endpoint 1 {
callback attribute attributeList;
ram attribute featureMap default = 0;
ram attribute clusterRevision default = 1;

handle command ChangeToMode;
handle command ChangeToModeResponse;
}

server cluster LaundryDryerControls {
Expand Down
36 changes: 27 additions & 9 deletions examples/all-clusters-app/all-clusters-common/all-clusters-app.zap
Original file line number Diff line number Diff line change
Expand Up @@ -8150,7 +8150,7 @@
"storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
"defaultValue": null,
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand All @@ -8166,7 +8166,7 @@
"storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
"defaultValue": null,
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand All @@ -8182,7 +8182,7 @@
"storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
"defaultValue": null,
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand All @@ -8198,7 +8198,7 @@
"storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
"defaultValue": null,
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand All @@ -8214,7 +8214,7 @@
"storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
"defaultValue": null,
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand All @@ -8230,7 +8230,7 @@
"storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
"defaultValue": null,
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand All @@ -8246,7 +8246,7 @@
"storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
"defaultValue": null,
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand All @@ -8262,7 +8262,7 @@
"storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
"defaultValue": null,
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand All @@ -8278,7 +8278,7 @@
"storageOption": "External",
"singleton": 0,
"bounded": 0,
"defaultValue": "",
"defaultValue": null,
"reportable": 1,
"minInterval": 1,
"maxInterval": 65534,
Expand Down Expand Up @@ -8326,6 +8326,24 @@
"side": "server",
"enabled": 1,
"apiMaturity": "provisional",
"commands": [
{
"name": "ChangeToMode",
"code": 0,
"mfgCode": null,
"source": "client",
"isIncoming": 1,
"isEnabled": 1
},
{
"name": "ChangeToModeResponse",
"code": 1,
"mfgCode": null,
"source": "server",
"isIncoming": 0,
"isEnabled": 1
}
],
"attributes": [
{
"name": "SupportedModes",
Expand Down
6 changes: 2 additions & 4 deletions src/app/tests/suites/certification/Test_TC_OTCCM_2_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ config:
defaultValue: 10
invalid_mode_th:
type: int8u
defaultValue: 5
defaultValue: 15

tests:
- label:
Expand All @@ -54,7 +54,6 @@ tests:
constraints:
type: list
minLength: 2
contains: NewMode_CHANGE_FAIL

- label: "Step 3: TH reads from the DUT the CurrentMode attribute."
PICS: OTCCM.S.A0001
Expand Down Expand Up @@ -112,8 +111,7 @@ tests:
"Step 7: TH sends a ChangeToMode command to the DUT with NewMode set
to PIXIT.OTCCM.MODE_CHANGE_FAIL"
PICS:
OTCCM.S.M.CAN_TEST_MODE_FAILURE && LWM.S.C00.Rsp &&
PICS_SKIP_SAMPLE_APP
OTCCM.S.M.CAN_TEST_MODE_FAILURE && OTCCM.S.C00.Rsp && PICS_SKIP_SAMPLE_APP
verification: |
Note : Please skip this step as SDK is not enabled with this failure response
Expand Down
14 changes: 7 additions & 7 deletions src/app/tests/suites/certification/Test_TC_OTCCM_3_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ tests:
response:
saveAs: on_mode_dut
constraints:
type: int16u
type: int8u

- label: "Step 3: TH reads from the DUT the CurrentMode attribute."
PICS: OTCCM.S.A0001 && OTCCM.S.F00
Expand All @@ -69,7 +69,7 @@ tests:
response:
saveAs: old_current_mode_dut
constraints:
type: int16u
type: int8u

- label:
"If on_mode_dut is equal to old_current_mode_dut proceed to step 4.
Expand All @@ -82,10 +82,10 @@ tests:
value: on_mode_dut
- name: "Value2"
value: old_current_mode_dut
response:
- values:
- name: "Equals"
saveAs: IsExpectedValue
response:
- values:
- name: "Equals"
saveAs: IsExpectedValue

- label: "Step 4: TH reads from the DUT the SupportedModes attribute."
runIf: IsExpectedValue
Expand Down Expand Up @@ -127,4 +127,4 @@ tests:
command: "readAttribute"
attribute: "CurrentMode"
response:
value: on_mode_dut
value: on_mode_dut
4 changes: 2 additions & 2 deletions src/app/tests/suites/certification/ci-pics-values
Original file line number Diff line number Diff line change
Expand Up @@ -754,11 +754,11 @@ LWM.S.M.CAN_TEST_MODE_FAILURE=1
OTCCM.S=1
OTCCM.S.A0000=1
OTCCM.S.A0001=1
OTCCM.S.A0003=1
OTCCM.S.A0002=0
OTCCM.S.A0003=0

#Feature
OTCCM.S.F00=1
OTCCM.S.F00=0

#Command
OTCCM.S.C00.Rsp=1
Expand Down

0 comments on commit 9e4a8f3

Please sign in to comment.