Skip to content

Commit

Permalink
[Scenes] Test Update (#31614)
Browse files Browse the repository at this point in the history
* Updated PICS and server yamls Test_TC_... to fit test plan

* Apply suggestions convert hex to dec base

Co-authored-by: Junior Martinez <[email protected]>

* Updated remaining transition times and added delay for Darwin CI test

* Added verification for steps 4b and 4c in TC_S_2_5

* Restyled by whitespace

* Restyled by prettier-yaml

* Removed Un-necessary PICS, added verification where it was missing in TC_S_2_5 and TC_S_2_6

---------

Co-authored-by: Junior Martinez <[email protected]>
Co-authored-by: Restyled.io <[email protected]>
  • Loading branch information
3 people authored and pull[bot] committed Feb 28, 2024
1 parent f682890 commit 2664809
Show file tree
Hide file tree
Showing 11 changed files with 1,548 additions and 194 deletions.
2 changes: 1 addition & 1 deletion src/app/clusters/scenes-server/SceneTable.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ inline constexpr SceneId kUndefinedSceneId = 0xff;

static constexpr size_t kIteratorsMax = CHIP_CONFIG_MAX_SCENES_CONCURRENT_ITERATORS;
static constexpr size_t kSceneNameMaxLength = CHIP_CONFIG_SCENES_CLUSTER_MAXIMUM_NAME_LENGTH;
static constexpr size_t kScenesMaxTransitionTime = 6'000'000u;
static constexpr size_t kScenesMaxTransitionTime = 60'000'000u;

/// @brief SceneHandlers are meant as interface between various clusters and the Scene table.
/// When a scene command involving extension field sets is received, the Scene Table will go through
Expand Down
10 changes: 9 additions & 1 deletion src/app/clusters/scenes-server/scenes-server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,15 @@ CHIP_ERROR AddResponseOnError(CommandHandlerInterface::HandlerContext & ctx, Res
{
if (CHIP_NO_ERROR != err)
{
resp.status = to_underlying(StatusIB(err).mStatus);
// TODO : Properly fix mapping between error types (issue https://github.com/project-chip/connectedhomeip/issues/26885)
if (CHIP_ERROR_NOT_FOUND == err)
{
resp.status = to_underlying(Protocols::InteractionModel::Status::NotFound);
}
else
{
resp.status = to_underlying(StatusIB(err).mStatus);
}
ctx.mCommandHandler.AddResponse(ctx.mRequestPath, resp);
}
return err;
Expand Down
7 changes: 1 addition & 6 deletions src/app/tests/suites/certification/PICS.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5781,7 +5781,7 @@ PICS:
- label: "Write all supported optional attributes"
id: RH.C.AO-WRITE

# Scenes Cluster Test Plan
# Scenes Management Cluster Test Plan
- label: "Does the device implement the Scenes cluster as a server?"
id: S.S

Expand Down Expand Up @@ -5870,11 +5870,6 @@ PICS:
- label: "Does the device implement sending the CopyScene command?"
id: S.C.C40.Tx

- label:
"Does the device process the TransitionTime parameter of the
RecallScene command?"
id: PICS_SC_RECALL_SCENE_TRANSITION_TIME_MS

#
# client / manually
#
Expand Down
2 changes: 1 addition & 1 deletion src/app/tests/suites/certification/Test_TC_S_1_1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ tests:
contains: [0, 1, 2, 3, 4, 6]

- label:
"Step 7b: Read optional command(CopySceneResponse) in
"Step 7b: TH reads Read optional command(CopySceneResponse) in
GeneratedCommandList (global attribute 65528)"
PICS: S.S.C40.Rsp
command: "readAttribute"
Expand Down
Loading

0 comments on commit 2664809

Please sign in to comment.