Skip to content

Commit

Permalink
Adding Tests for ResourceMonitor to ci tests list
Browse files Browse the repository at this point in the history
  • Loading branch information
cliffamzn committed Jul 25, 2023
1 parent 72a588a commit 9de8518
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 1 deletion.
50 changes: 50 additions & 0 deletions src/app/tests/suites/TestActivatedCarbonFilterMonitoring.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# 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: Resource Monitor Cluster Tests

config:
nodeId: 0x12344321
cluster: "Activated Carbon Filter Monitoring"
endpoint: 1
ReplacementProductList:
type: "ReplacementProductStruct"
defaultValue:
[
{
ProductIdentifierType: 1,
ProductIdentifierValue: "gtin8xac",
},
]

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

- label: "Read Replacement Product List"
command: "readAttribute"
attribute: "ReplacementProductList"
response:
value:
[
{
ProductIdentifierType: 1,
ProductIdentifierValue: "gtin8xac",
},
]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ name: Resource Monitor Cluster Tests

config:
nodeId: 0x12344321
cluster: "Resource Monitor"
cluster: "HEPA Filter Monitoring"
endpoint: 1
ReplacementProductList:
type: "ReplacementProductStruct"
Expand Down
2 changes: 2 additions & 0 deletions src/app/tests/suites/ciTests.json
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,8 @@
],
"Scenes": ["Test_TC_S_1_1"],
"ResourceMonitoring": [
"TestActivatedCarbonFilterMonitoring",
"TestHepaFilterMonitoring",
"Test_TC_ACFREMON_1_1",
"Test_TC_ACFREMON_2_1",
"Test_TC_HEPAFREMON_1_1",
Expand Down

0 comments on commit 9de8518

Please sign in to comment.