diff --git a/.github/workflows/stale.yaml b/.github/workflows/stale.yaml index a9953e69b08ac1..5adf4f408e768b 100644 --- a/.github/workflows/stale.yaml +++ b/.github/workflows/stale.yaml @@ -16,27 +16,17 @@ jobs: with: stale-issue-message: "This issue has been automatically marked as stale because - it has not had recent activity. It will be closed if no - further activity occurs. Remove stale label or comment or - this will be closed in 30 days." + it has not had recent activity." stale-pr-message: "This pull request has been automatically marked as stale - because it has not had recent activity. It will be closed - if no further activity occurs. Remove stale label or - comment or this will be closed in 10 days." + because it has not had recent activity." close-issue-message: "This stale issue has been automatically closed. Thank you for your contributions." close-pr-message: "This stale pull request has been automatically closed. Thank you for your contributions." - days-before-issue-stale: 30 - days-before-issue-close: -1 # Don't close them for now - days-before-pr-stale: 90 - days-before-pr-close: 10 - exempt-issue-labels: - "security,blocked,cert blocker,build issue,Spec XML - align,CI/CD improvements,memory" - exempt-pr-labels: - "security,blocked,cert blocker,build issue,Spec XML - align,CI/CD improvements,memory" + days-before-issue-stale: 180 + days-before-issue-close: -1 # Don't close stale issues + days-before-pr-stale: 180 + days-before-pr-close: -1 # Don't close stale PRs diff --git a/examples/fabric-admin/BUILD.gn b/examples/fabric-admin/BUILD.gn index ab584459582657..38252cd30e7648 100644 --- a/examples/fabric-admin/BUILD.gn +++ b/examples/fabric-admin/BUILD.gn @@ -80,6 +80,8 @@ static_library("fabric-admin-utils") { "commands/pairing/OpenCommissioningWindowCommand.h", "commands/pairing/PairingCommand.cpp", "commands/pairing/ToTLVCert.cpp", + "device_manager/BridgeSubscription.cpp", + "device_manager/BridgeSubscription.h", "device_manager/DeviceManager.cpp", "device_manager/DeviceManager.h", "device_manager/DeviceSubscription.cpp", diff --git a/examples/fabric-admin/commands/clusters/ReportCommand.cpp b/examples/fabric-admin/commands/clusters/ReportCommand.cpp index 2fdb965ddc844c..df6f329896036c 100644 --- a/examples/fabric-admin/commands/clusters/ReportCommand.cpp +++ b/examples/fabric-admin/commands/clusters/ReportCommand.cpp @@ -72,6 +72,4 @@ void ReportCommand::OnEventData(const app::EventHeader & eventHeader, TLV::TLVRe } LogErrorOnFailure(RemoteDataModelLogger::LogEventAsJSON(eventHeader, data)); - - DeviceMgr().HandleEventData(eventHeader, *data); } diff --git a/examples/fabric-admin/device_manager/BridgeSubscription.cpp b/examples/fabric-admin/device_manager/BridgeSubscription.cpp new file mode 100644 index 00000000000000..2efcadaaa63ee5 --- /dev/null +++ b/examples/fabric-admin/device_manager/BridgeSubscription.cpp @@ -0,0 +1,159 @@ +/* + * Copyright (c) 2024 Project CHIP Authors + * All rights reserved. + * + * 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. + * + */ + +#include "BridgeSubscription.h" +#include + +using namespace ::chip; +using namespace ::chip::app; +using chip::app::ReadClient; + +namespace { + +constexpr uint16_t kSubscribeMinInterval = 0; +constexpr uint16_t kSubscribeMaxInterval = 60; + +void OnDeviceConnectedWrapper(void * context, Messaging::ExchangeManager & exchangeMgr, const SessionHandle & sessionHandle) +{ + reinterpret_cast(context)->OnDeviceConnected(exchangeMgr, sessionHandle); +} + +void OnDeviceConnectionFailureWrapper(void * context, const ScopedNodeId & peerId, CHIP_ERROR error) +{ + reinterpret_cast(context)->OnDeviceConnectionFailure(peerId, error); +} + +} // namespace + +BridgeSubscription::BridgeSubscription() : + mOnDeviceConnectedCallback(OnDeviceConnectedWrapper, this), + mOnDeviceConnectionFailureCallback(OnDeviceConnectionFailureWrapper, this) +{} + +CHIP_ERROR BridgeSubscription::StartSubscription(Controller::DeviceController & controller, NodeId nodeId, EndpointId endpointId) +{ + assertChipStackLockedByCurrentThread(); + + VerifyOrDie(!subscriptionStarted); // Ensure it's not called multiple times. + + // Mark as started + subscriptionStarted = true; + + mEndpointId = endpointId; + + CHIP_ERROR err = controller.GetConnectedDevice(nodeId, &mOnDeviceConnectedCallback, &mOnDeviceConnectionFailureCallback); + if (err != CHIP_NO_ERROR) + { + ChipLogError(NotSpecified, "Failed to connect to remote fabric sync bridge %" CHIP_ERROR_FORMAT, err.Format()); + } + return err; +} + +void BridgeSubscription::OnAttributeData(const ConcreteDataAttributePath & path, TLV::TLVReader * data, const StatusIB & status) +{ + if (!status.IsSuccess()) + { + ChipLogError(NotSpecified, "Response Failure: %" CHIP_ERROR_FORMAT, status.ToChipError().Format()); + return; + } + + if (data == nullptr) + { + ChipLogError(NotSpecified, "Response Failure: No Data"); + return; + } + + DeviceMgr().HandleAttributeData(path, *data); +} + +void BridgeSubscription::OnEventData(const app::EventHeader & eventHeader, TLV::TLVReader * data, const app::StatusIB * status) +{ + if (status != nullptr) + { + CHIP_ERROR error = status->ToChipError(); + if (CHIP_NO_ERROR != error) + { + ChipLogError(NotSpecified, "Response Failure: %" CHIP_ERROR_FORMAT, error.Format()); + return; + } + } + + if (data == nullptr) + { + ChipLogError(NotSpecified, "Response Failure: No Data"); + return; + } + + DeviceMgr().HandleEventData(eventHeader, *data); +} + +void BridgeSubscription::OnError(CHIP_ERROR error) +{ + ChipLogProgress(NotSpecified, "Error on remote fabric sync bridge subscription: %" CHIP_ERROR_FORMAT, error.Format()); +} + +void BridgeSubscription::OnDone(ReadClient * apReadClient) +{ + mClient.reset(); + ChipLogProgress(NotSpecified, "The remote fabric sync bridge subscription is terminated"); + + // Reset the subscription state to allow retry + subscriptionStarted = false; + + // TODO:(#36092) Fabric-Admin should attempt to re-subscribe when the subscription to the remote bridge is terminated. +} + +void BridgeSubscription::OnDeviceConnected(Messaging::ExchangeManager & exchangeMgr, const SessionHandle & sessionHandle) +{ + mClient = std::make_unique(app::InteractionModelEngine::GetInstance(), &exchangeMgr /* echangeMgr */, + *this /* callback */, ReadClient::InteractionType::Subscribe); + VerifyOrDie(mClient); + + AttributePathParams readPaths[1]; + readPaths[0] = AttributePathParams(mEndpointId, Clusters::Descriptor::Id, Clusters::Descriptor::Attributes::PartsList::Id); + + EventPathParams eventPaths[1]; + eventPaths[0] = EventPathParams(mEndpointId, Clusters::CommissionerControl::Id, + Clusters::CommissionerControl::Events::CommissioningRequestResult::Id); + eventPaths[0].mIsUrgentEvent = true; + + ReadPrepareParams readParams(sessionHandle); + + readParams.mpAttributePathParamsList = readPaths; + readParams.mAttributePathParamsListSize = 1; + readParams.mpEventPathParamsList = eventPaths; + readParams.mEventPathParamsListSize = 1; + readParams.mMinIntervalFloorSeconds = kSubscribeMinInterval; + readParams.mMaxIntervalCeilingSeconds = kSubscribeMaxInterval; + readParams.mKeepSubscriptions = true; + + CHIP_ERROR err = mClient->SendRequest(readParams); + + if (err != CHIP_NO_ERROR) + { + ChipLogError(NotSpecified, "Failed to issue subscription to the Descriptor Cluster of the remote bridged device."); + OnDone(nullptr); + return; + } +} + +void BridgeSubscription::OnDeviceConnectionFailure(const ScopedNodeId & peerId, CHIP_ERROR error) +{ + ChipLogError(NotSpecified, "BridgeSubscription failed to connect to " ChipLogFormatX64, ChipLogValueX64(peerId.GetNodeId())); + OnDone(nullptr); +} diff --git a/examples/fabric-admin/device_manager/BridgeSubscription.h b/examples/fabric-admin/device_manager/BridgeSubscription.h new file mode 100644 index 00000000000000..bd2a70279af065 --- /dev/null +++ b/examples/fabric-admin/device_manager/BridgeSubscription.h @@ -0,0 +1,77 @@ +/* + * Copyright (c) 2024 Project CHIP Authors + * All rights reserved. + * + * 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. + * + */ + +#pragma once + +#include +#include + +#include +#include + +/** + * @brief Class used to subscribe to attributes and events from the remote bridged device. + * + * The Descriptor Cluster contains attributes such as the Parts List, which provides a list + * of endpoints or devices that are part of a composite device or bridge. The CommissionerControl + * Cluster generates events related to commissioning requests, which can be monitored to track + * device commissioning status. + * + * When subscribing to attributes and events of a bridged device from another fabric, the class: + * - Establishes a secure session with the device (if needed) via CASE (Chip over + * Authenticated Session Establishment) session. + * - Subscribes to the specified attributes in the Descriptor Cluster (e.g., Parts List) and + * events in the CommissionerControl Cluster (e.g., CommissioningRequestResult) of the remote + * device on the specified node and endpoint. + * - Invokes the provided callback upon successful or unsuccessful subscription, allowing + * further handling of data or errors. + * + * This class also implements the necessary callbacks to handle attribute data reports, event data, + * errors, and session establishment procedures. + */ +class BridgeSubscription : public chip::app::ReadClient::Callback +{ +public: + BridgeSubscription(); + + CHIP_ERROR StartSubscription(chip::Controller::DeviceController & controller, chip::NodeId nodeId, chip::EndpointId endpointId); + + /////////////////////////////////////////////////////////////// + // ReadClient::Callback implementation + /////////////////////////////////////////////////////////////// + void OnAttributeData(const chip::app::ConcreteDataAttributePath & path, chip::TLV::TLVReader * data, + const chip::app::StatusIB & status) override; + void OnEventData(const chip::app::EventHeader & eventHeader, chip::TLV::TLVReader * data, + const chip::app::StatusIB * status) override; + void OnError(CHIP_ERROR error) override; + void OnDone(chip::app::ReadClient * apReadClient) override; + + /////////////////////////////////////////////////////////////// + // callbacks for CASE session establishment + /////////////////////////////////////////////////////////////// + void OnDeviceConnected(chip::Messaging::ExchangeManager & exchangeMgr, const chip::SessionHandle & sessionHandle); + void OnDeviceConnectionFailure(const chip::ScopedNodeId & peerId, CHIP_ERROR error); + +private: + std::unique_ptr mClient; + + chip::Callback::Callback mOnDeviceConnectedCallback; + chip::Callback::Callback mOnDeviceConnectionFailureCallback; + chip::EndpointId mEndpointId; + bool subscriptionStarted = false; +}; diff --git a/examples/fabric-admin/device_manager/DeviceManager.cpp b/examples/fabric-admin/device_manager/DeviceManager.cpp index 3a27c68184c8b0..2968bcf001e9bc 100644 --- a/examples/fabric-admin/device_manager/DeviceManager.cpp +++ b/examples/fabric-admin/device_manager/DeviceManager.cpp @@ -33,9 +33,6 @@ namespace { constexpr EndpointId kAggregatorEndpointId = 1; constexpr uint16_t kWindowTimeout = 300; constexpr uint16_t kIteration = 1000; -constexpr uint16_t kSubscribeMinInterval = 0; -constexpr uint16_t kSubscribeMaxInterval = 60; -constexpr uint16_t kAggragatorEndpointId = 1; constexpr uint16_t kMaxDiscriminatorLength = 4095; } // namespace @@ -193,23 +190,17 @@ void DeviceManager::UnpairLocalFabricBridge() void DeviceManager::SubscribeRemoteFabricBridge() { - // Listen to the state changes of the remote fabric bridge. - StringBuilder commandBuilder; - - // Prepare and push the descriptor subscribe command - commandBuilder.Add("descriptor subscribe parts-list "); - commandBuilder.AddFormat("%d %d %lu %d", kSubscribeMinInterval, kSubscribeMaxInterval, mRemoteBridgeNodeId, - kAggragatorEndpointId); - PushCommand(commandBuilder.c_str()); + ChipLogProgress(NotSpecified, "Start subscription to the remote bridge.") - // Clear the builder for the next command - commandBuilder.Reset(); + CHIP_ERROR error = mBridgeSubscriber.StartSubscription(PairingManager::Instance().CurrentCommissioner(), + mRemoteBridgeNodeId, kAggregatorEndpointId); - // Prepare and push the commissioner control subscribe command - commandBuilder.Add("commissionercontrol subscribe-event commissioning-request-result "); - commandBuilder.AddFormat("%d %d %lu %d --is-urgent true --keepSubscriptions true", kSubscribeMinInterval, kSubscribeMaxInterval, - mRemoteBridgeNodeId, kAggregatorEndpointId); - PushCommand(commandBuilder.c_str()); + if (error != CHIP_NO_ERROR) + { + ChipLogError(NotSpecified, "Failed to subscribe to the remote bridge (NodeId: %lu). Error: %" CHIP_ERROR_FORMAT, + mRemoteBridgeNodeId, error.Format()); + return; + } } void DeviceManager::ReadSupportedDeviceCategories() diff --git a/examples/fabric-admin/device_manager/DeviceManager.h b/examples/fabric-admin/device_manager/DeviceManager.h index 1514c417be4b4d..62d5ae045bb6af 100644 --- a/examples/fabric-admin/device_manager/DeviceManager.h +++ b/examples/fabric-admin/device_manager/DeviceManager.h @@ -19,6 +19,7 @@ #pragma once #include +#include #include #include @@ -209,6 +210,8 @@ class DeviceManager : public PairingDelegate bool mAutoSyncEnabled = false; bool mInitialized = false; uint64_t mRequestId = 0; + + BridgeSubscription mBridgeSubscriber; }; /** diff --git a/src/app/clusters/mode-select-server/mode-select-server.cpp b/src/app/clusters/mode-select-server/mode-select-server.cpp index 813d16d965148e..9159ad565bdac7 100644 --- a/src/app/clusters/mode-select-server/mode-select-server.cpp +++ b/src/app/clusters/mode-select-server/mode-select-server.cpp @@ -30,9 +30,14 @@ #include #include #include +#include #include #include +#ifdef MATTER_DM_PLUGIN_SCENES_MANAGEMENT +#include +#endif // MATTER_DM_PLUGIN_SCENES_MANAGEMENT + #ifdef MATTER_DM_PLUGIN_ON_OFF #include #endif // MATTER_DM_PLUGIN_ON_OFF @@ -109,35 +114,200 @@ CHIP_ERROR ModeSelectAttrAccess::Read(const ConcreteReadAttributePath & aPath, A return CHIP_NO_ERROR; } -} // anonymous namespace - -bool emberAfModeSelectClusterChangeToModeCallback(CommandHandler * commandHandler, const ConcreteCommandPath & commandPath, - const ModeSelect::Commands::ChangeToMode::DecodableType & commandData) +Status ChangeToMode(EndpointId endpointId, uint8_t newMode) { MATTER_TRACE_SCOPE("ChangeToMode", "ModeSelect"); ChipLogProgress(Zcl, "ModeSelect: Entering emberAfModeSelectClusterChangeToModeCallback"); - EndpointId endpointId = commandPath.mEndpointId; - uint8_t newMode = commandData.newMode; + // Check that the newMode matches one of the supported options const ModeSelect::Structs::ModeOptionStruct::Type * modeOptionPtr; const ModeSelect::SupportedModesManager * gSupportedModeManager = ModeSelect::getSupportedModesManager(); if (gSupportedModeManager == nullptr) { ChipLogError(Zcl, "ModeSelect: SupportedModesManager is NULL"); - commandHandler->AddStatus(commandPath, Status::Failure); - return true; + return Status::Failure; } Status checkSupportedModeStatus = gSupportedModeManager->getModeOptionByMode(endpointId, newMode, &modeOptionPtr); if (Status::Success != checkSupportedModeStatus) { ChipLogProgress(Zcl, "ModeSelect: Failed to find the option with mode %u", newMode); - commandHandler->AddStatus(commandPath, checkSupportedModeStatus); - return true; + return checkSupportedModeStatus; } ModeSelect::Attributes::CurrentMode::Set(endpointId, newMode); + return Status::Success; +} + +} // anonymous namespace + +#if defined(MATTER_DM_PLUGIN_SCENES_MANAGEMENT) && CHIP_CONFIG_SCENES_USE_DEFAULT_HANDLERS +static constexpr size_t kModeSelectMaxEnpointCount = + MATTER_DM_MODE_SELECT_CLUSTER_SERVER_ENDPOINT_COUNT + CHIP_DEVICE_CONFIG_DYNAMIC_ENDPOINT_COUNT; + +static void timerCallback(System::Layer *, void * callbackContext); +static void sceneModeSelectCallback(EndpointId endpoint); +using ModeSelectEndPointPair = scenes::DefaultSceneHandlerImpl::EndpointStatePair; +using ModeSelectTransitionTimeInterface = + scenes::DefaultSceneHandlerImpl::TransitionTimeInterface; + +class DefaultModeSelectSceneHandler : public scenes::DefaultSceneHandlerImpl +{ +public: + DefaultSceneHandlerImpl::StatePairBuffer mSceneEndpointStatePairs; + // As per spec, 1 attribute is scenable in the mode select cluster + static constexpr uint8_t kScenableAttributeCount = 1; + + DefaultModeSelectSceneHandler() = default; + ~DefaultModeSelectSceneHandler() override {} + + // Default function for the mode select cluster, only puts the mode select cluster ID in the span if supported on the given + // endpoint + virtual void GetSupportedClusters(EndpointId endpoint, Span & clusterBuffer) override + { + if (emberAfContainsServer(endpoint, ModeSelect::Id) && clusterBuffer.size() >= 1) + { + clusterBuffer[0] = ModeSelect::Id; + clusterBuffer.reduce_size(1); + } + else + { + clusterBuffer.reduce_size(0); + } + } + + // Default function for mode select cluster, only checks if mode select is enabled on the endpoint + bool SupportsCluster(EndpointId endpoint, ClusterId cluster) override + { + return (cluster == ModeSelect::Id) && (emberAfContainsServer(endpoint, ModeSelect::Id)); + } + + /// @brief Serialize the Cluster's EFS value + /// @param [in] endpoint target endpoint + /// @param [in] cluster target cluster + /// @param [out] serializedBytes data to serialize into EFS + /// @return CHIP_NO_ERROR if successfully serialized the data, CHIP_ERROR_INVALID_ARGUMENT otherwise + CHIP_ERROR SerializeSave(EndpointId endpoint, ClusterId cluster, MutableByteSpan & serializedBytes) override + { + using AttributeValuePair = ScenesManagement::Structs::AttributeValuePairStruct::Type; + + uint8_t currentMode; + // read CurrentMode value + Status status = Attributes::CurrentMode::Get(endpoint, ¤tMode); + if (status != Status::Success) + { + ChipLogError(Zcl, "ERR: reading CurrentMode 0x%02x", to_underlying(status)); + return CHIP_ERROR_READ_FAILED; + } + + AttributeValuePair pairs[kScenableAttributeCount]; + + pairs[0].attributeID = Attributes::CurrentMode::Id; + pairs[0].valueUnsigned8.SetValue(currentMode); + + app::DataModel::List attributeValueList(pairs); + + return EncodeAttributeValueList(attributeValueList, serializedBytes); + } + + /// @brief Default EFS interaction when applying scene to the ModeSelect Cluster + /// @param endpoint target endpoint + /// @param cluster target cluster + /// @param serializedBytes Data from nvm + /// @param timeMs transition time in ms + /// @return CHIP_NO_ERROR if value as expected, CHIP_ERROR_INVALID_ARGUMENT otherwise + CHIP_ERROR ApplyScene(EndpointId endpoint, ClusterId cluster, const ByteSpan & serializedBytes, + scenes::TransitionTimeMs timeMs) override + { + app::DataModel::DecodableList attributeValueList; + + VerifyOrReturnError(cluster == ModeSelect::Id, CHIP_ERROR_INVALID_ARGUMENT); + + ReturnErrorOnFailure(DecodeAttributeValueList(serializedBytes, attributeValueList)); + + size_t attributeCount = 0; + ReturnErrorOnFailure(attributeValueList.ComputeSize(&attributeCount)); + VerifyOrReturnError(attributeCount <= kScenableAttributeCount, CHIP_ERROR_BUFFER_TOO_SMALL); + + auto pair_iterator = attributeValueList.begin(); + while (pair_iterator.Next()) + { + auto & decodePair = pair_iterator.GetValue(); + VerifyOrReturnError(decodePair.attributeID == Attributes::CurrentMode::Id, CHIP_ERROR_INVALID_ARGUMENT); + VerifyOrReturnError(decodePair.valueUnsigned8.HasValue(), CHIP_ERROR_INVALID_ARGUMENT); + ReturnErrorOnFailure(mSceneEndpointStatePairs.InsertPair( + ModeSelectEndPointPair(endpoint, static_cast(decodePair.valueUnsigned8.HasValue())))); + } + // Verify that the EFS was completely read + CHIP_ERROR err = pair_iterator.GetStatus(); + if (CHIP_NO_ERROR != err) + { + mSceneEndpointStatePairs.RemovePair(endpoint); + return err; + } + + VerifyOrReturnError(mTransitionTimeInterface.sceneEventControl(endpoint) != nullptr, CHIP_ERROR_INVALID_ARGUMENT); + DeviceLayer::SystemLayer().StartTimer(chip::System::Clock::Milliseconds32(timeMs), timerCallback, + mTransitionTimeInterface.sceneEventControl(endpoint)); + + return CHIP_NO_ERROR; + } + +private: + ModeSelectTransitionTimeInterface mTransitionTimeInterface = + ModeSelectTransitionTimeInterface(ModeSelect::Id, sceneModeSelectCallback); +}; +static DefaultModeSelectSceneHandler sModeSelectSceneHandler; + +static void timerCallback(System::Layer *, void * callbackContext) +{ + auto control = static_cast(callbackContext); + (control->callback)(control->endpoint); +} + +/** + * @brief This function is a callback to apply the mode that was saved when the ApplyScene was called with a transition time greater + * than 0. + * + * @param endpoint The endpoint ID that the scene mode selection is associated with. + * + */ +static void sceneModeSelectCallback(EndpointId endpoint) +{ + ModeSelectEndPointPair savedState; + ReturnOnFailure(sModeSelectSceneHandler.mSceneEndpointStatePairs.GetPair(endpoint, savedState)); + ChangeToMode(endpoint, savedState.mValue); + sModeSelectSceneHandler.mSceneEndpointStatePairs.RemovePair(endpoint); +} + +#endif // defined(MATTER_DM_PLUGIN_SCENES_MANAGEMENT) && CHIP_CONFIG_SCENES_USE_DEFAULT_HANDLERS + +bool emberAfModeSelectClusterChangeToModeCallback(CommandHandler * commandHandler, const ConcreteCommandPath & commandPath, + const ModeSelect::Commands::ChangeToMode::DecodableType & commandData) +{ + ChipLogProgress(Zcl, "ModeSelect: Entering emberAfModeSelectClusterChangeToModeCallback"); + + uint8_t currentMode = 0; + ModeSelect::Attributes::CurrentMode::Get(commandPath.mEndpointId, ¤tMode); +#ifdef MATTER_DM_PLUGIN_SCENES_MANAGEMENT + if (currentMode != commandData.newMode) + { + // the scene has been changed (the value of CurrentMode has changed) so + // the current scene as described in the scene table is invalid + ScenesManagement::ScenesServer::Instance().MakeSceneInvalidForAllFabrics(commandPath.mEndpointId); + } +#endif // MATTER_DM_PLUGIN_SCENES_MANAGEMENT + + Status status = ChangeToMode(commandPath.mEndpointId, commandData.newMode); + + if (Status::Success != status) + { + commandHandler->AddStatus(commandPath, status); + return true; + } + ChipLogProgress(Zcl, "ModeSelect: ChangeToMode successful"); - commandHandler->AddStatus(commandPath, Status::Success); + commandHandler->AddStatus(commandPath, status); return true; } @@ -148,6 +318,10 @@ bool emberAfModeSelectClusterChangeToModeCallback(CommandHandler * commandHandle */ void emberAfModeSelectClusterServerInitCallback(EndpointId endpointId) { +#if defined(MATTER_DM_PLUGIN_SCENES_MANAGEMENT) && CHIP_CONFIG_SCENES_USE_DEFAULT_HANDLERS + ScenesManagement::ScenesServer::Instance().RegisterSceneHandler(endpointId, &sModeSelectSceneHandler); +#endif // defined(MATTER_DM_PLUGIN_SCENES_MANAGEMENT) && CHIP_CONFIG_SCENES_USE_DEFAULT_HANDLERS + // StartUp behavior relies on CurrentMode StartUpMode attributes being non-volatile. if (areStartUpModeAndCurrentModeNonVolatile(endpointId)) { @@ -161,6 +335,7 @@ void emberAfModeSelectClusterServerInitCallback(EndpointId endpointId) Status status = Attributes::StartUpMode::Get(endpointId, startUpMode); if (status == Status::Success && !startUpMode.IsNull()) { + #ifdef MATTER_DM_PLUGIN_ON_OFF // OnMode with Power Up // If the On/Off feature is supported and the On/Off cluster attribute StartUpOnOff is present, with a diff --git a/src/app/clusters/pump-configuration-and-control-server/pump-configuration-and-control-server.cpp b/src/app/clusters/pump-configuration-and-control-server/pump-configuration-and-control-server.cpp index 5996cfe01f9eff..63bd6a29525724 100644 --- a/src/app/clusters/pump-configuration-and-control-server/pump-configuration-and-control-server.cpp +++ b/src/app/clusters/pump-configuration-and-control-server/pump-configuration-and-control-server.cpp @@ -81,8 +81,8 @@ static void setEffectiveModes(EndpointId endpoint) // if this is not suitable, the application should override this value in // the post attribute change callback for the operation mode attribute const EmberAfAttributeMetadata * effectiveControlModeMetaData; - effectiveControlModeMetaData = GetAttributeMetadata( - app::ConcreteAttributePath(endpoint, PumpConfigurationAndControl::Id, Attributes::EffectiveControlMode::Id)); + effectiveControlModeMetaData = + emberAfLocateAttributeMetadata(endpoint, PumpConfigurationAndControl::Id, Attributes::EffectiveControlMode::Id); controlMode = static_cast(effectiveControlModeMetaData->defaultValue.defaultValue); } diff --git a/src/app/tests/suites/TestScenesFabricSceneInfo.yaml b/src/app/tests/suites/TestScenesFabricSceneInfo.yaml index ba83953588bd3b..2d4a09c07eeb6a 100644 --- a/src/app/tests/suites/TestScenesFabricSceneInfo.yaml +++ b/src/app/tests/suites/TestScenesFabricSceneInfo.yaml @@ -253,6 +253,11 @@ tests: }, ], }, + { + ClusterID: 0x0050, + AttributeValueList: + [{ AttributeID: 0x0003, ValueUnsigned8: 0x01 }], + }, ] response: values: @@ -349,6 +354,11 @@ tests: }, ], }, + { + ClusterID: 0x0050, + AttributeValueList: + [{ AttributeID: 0x0003, ValueUnsigned8: 0x01 }], + }, ] - label: "Read the FabricSceneInfo attribute (0x0007) " diff --git a/src/app/tests/suites/certification/Test_TC_CDOCONC_1_1.yaml b/src/app/tests/suites/certification/Test_TC_CDOCONC_1_1.yaml deleted file mode 100644 index 963156554c928a..00000000000000 --- a/src/app/tests/suites/certification/Test_TC_CDOCONC_1_1.yaml +++ /dev/null @@ -1,336 +0,0 @@ -# Copyright (c) 2023 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: 145.1.1. [TC-CDOCONC-1.1] Global Attributes with DUT as Server - -PICS: - - CDOCONC.S - -config: - nodeId: 0x12344321 - cluster: "Carbon Dioxide Concentration Measurement" - endpoint: 1 - -tests: - - label: "Step 1: Wait for the commissioned device to be retrieved" - cluster: "DelayCommands" - command: "WaitForCommissionee" - arguments: - values: - - name: "nodeId" - value: nodeId - - - label: "Step 2: Read the global attribute: ClusterRevision" - command: "readAttribute" - attribute: "ClusterRevision" - response: - value: 3 - constraints: - type: int16u - - - label: - "Step 3a: Read the global attribute: FeatureMap and check for either - bit 0 or 1 set" - command: "readAttribute" - attribute: "FeatureMap" - response: - constraints: - type: bitmap32 - hasMasksSet: [0x03] - - - label: - "Step 3b: Given CDOCONC.S.F00(MEA) ensure featuremap has the correct - bit set" - command: "readAttribute" - attribute: "FeatureMap" - PICS: CDOCONC.S.F00 - response: - constraints: - type: bitmap32 - hasMasksSet: [0x1] - - - label: - "Step 3c: Given CDOCONC.S.F00(MEA) is not set, ensure featuremap has - the correct bit clear" - command: "readAttribute" - attribute: "FeatureMap" - PICS: " !CDOCONC.S.F00 " - response: - constraints: - type: bitmap32 - hasMasksClear: [0x1] - - - label: - "Step 3d: Given CDOCONC.S.F01(LEV) ensure featuremap has the correct - bit set" - command: "readAttribute" - attribute: "FeatureMap" - PICS: CDOCONC.S.F01 - response: - constraints: - type: bitmap32 - hasMasksSet: [0x2] - - - label: - "Step 3e: Given CDOCONC.S.F01(LEV) is not set, ensure featuremap has - the correct bit clear" - command: "readAttribute" - attribute: "FeatureMap" - PICS: " !CDOCONC.S.F01 " - response: - constraints: - type: bitmap32 - hasMasksClear: [0x2] - - - label: - "Step 3f: Given CDOCONC.S.F02(MED) ensure featuremap has the correct - bit set" - command: "readAttribute" - attribute: "FeatureMap" - PICS: CDOCONC.S.F02 && CDOCONC.S.F01 - response: - constraints: - type: bitmap32 - hasMasksSet: [0x4, 0x2] - - - label: - "Step 3g: Given CDOCONC.S.F02(MED) is not set, ensure featuremap has - the correct bit clear" - command: "readAttribute" - attribute: "FeatureMap" - PICS: " !CDOCONC.S.F02 && !CDOCONC.S.F01" - response: - constraints: - type: bitmap32 - hasMasksClear: [0x4, 0x2] - - - label: - "Step 3h: Given CDOCONC.S.F03(CRI) ensure featuremap has the correct - bits set" - command: "readAttribute" - attribute: "FeatureMap" - PICS: CDOCONC.S.F03 && CDOCONC.S.F01 - response: - constraints: - type: bitmap32 - hasMasksSet: [0x8, 0x2] - - - label: - "Step 3i: Given CDOCONC.S.F03(CRI) is not set, ensure featuremap has - the correct bit clear" - command: "readAttribute" - attribute: "FeatureMap" - PICS: " !CDOCONC.S.F03 && !CDOCONC.S.F01" - response: - constraints: - type: bitmap32 - hasMasksClear: [0x8, 0x2] - - - label: - "Step 3j: Given CDOCONC.S.F04(PEA) ensure featuremap has the correct - bits set" - command: "readAttribute" - attribute: "FeatureMap" - PICS: CDOCONC.S.F04 && CDOCONC.S.F00 - response: - constraints: - type: bitmap32 - hasMasksSet: [0x10, 0x1] - - - label: - "Step 3k: Given CDOCONC.S.F04(PEA) is not set, ensure featuremap has - the correct bit clear" - command: "readAttribute" - attribute: "FeatureMap" - PICS: " !CDOCONC.S.F04 && !CDOCONC.S.F00" - response: - constraints: - type: bitmap32 - hasMasksClear: [0x10, 0x1] - - - label: - "Step 3l: Given CDOCONC.S.F05(AVG) ensure featuremap has the correct - bits set" - command: "readAttribute" - attribute: "FeatureMap" - PICS: CDOCONC.S.F05 && CDOCONC.S.F00 - response: - constraints: - type: bitmap32 - hasMasksSet: [0x20, 0x1] - - - label: - "Step 3m: Given CDOCONC.S.F05(AVG) is not set, ensure featuremap has - the correct bit clear" - command: "readAttribute" - attribute: "FeatureMap" - PICS: " !CDOCONC.S.F05 && !CDOCONC.S.F00" - response: - constraints: - type: bitmap32 - hasMasksClear: [0x20, 0x1] - - - label: "Step 4a: Read the global attribute: AttributeList" - PICS: PICS_EVENT_LIST_ENABLED - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [9, 65528, 65529, 65530, 65531, 65532, 65533] - - - label: "Step 4a: Read the global attribute: AttributeList" - PICS: " !PICS_EVENT_LIST_ENABLED " - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [9, 65528, 65529, 65531, 65532, 65533] - - - label: "Step 4b: Read the optional attribute Uncertainty in AttributeList" - command: "readAttribute" - attribute: "AttributeList" - PICS: CDOCONC.S.A0007 && CDOCONC.S.F00 - response: - constraints: - type: list - contains: [7] - - - label: - "Step 4c: Check the optional attribute Uncertainty is excluded from - AttributeList when CDOCONC.S.A0007 is not set" - command: "readAttribute" - attribute: "AttributeList" - PICS: " !CDOCONC.S.A0007 " - response: - constraints: - type: list - excludes: [7] - - - label: - "Step 4d: Read the optional, feature dependent attributes - MeasuredValue, MinMeasuredValue, MaxMeasuredValue and Measurement Unit - in AttributeList" - command: "readAttribute" - attribute: "AttributeList" - PICS: CDOCONC.S.F00 - response: - constraints: - type: list - contains: [0, 1, 2, 8] - - - label: - "Step 4e: Check that MeasuredValue, MinMeasuredValue, - MaxMeasuredValue, Measurement Unit and Uncertainty are excluded from - AttributeList when CDOCONC.S.F00 (MEA) is not set" - command: "readAttribute" - attribute: "AttributeList" - PICS: " !CDOCONC.S.F00 " - response: - constraints: - type: list - excludes: [0, 1, 2, 7, 8] - - - label: - "Step 4f: Read the optional, feature dependent attributes - PeakMeasuredValue & PeakMeasuredValueWindow in AttributeList" - command: "readAttribute" - attribute: "AttributeList" - PICS: CDOCONC.S.F04 - response: - constraints: - type: list - contains: [3, 4] - - - label: - "Step 4g: Check that PeakMeasuredValue & PeakMeasuredValueWindow are - excluded from AttributeList when CDOCONC.S.F04 (PEA) is not set" - command: "readAttribute" - attribute: "AttributeList" - PICS: " !CDOCONC.S.F04 " - response: - constraints: - type: list - excludes: [3, 4] - - - label: - "Step 4h: Read the optional, feature dependent attributes - AverageMeasuredValue AverageMeasuredValueWindow in AttributeList" - command: "readAttribute" - attribute: "AttributeList" - PICS: CDOCONC.S.F05 - response: - constraints: - type: list - contains: [5, 6] - - - label: - "Step 4i: Check that AverageMeasuredValue and - AverageMeasuredValueWindow are excluded from AttributeList when - CDOCONC.S.F05 (AVG) is not set" - command: "readAttribute" - attribute: "AttributeList" - PICS: " !CDOCONC.S.F05 " - response: - constraints: - type: list - excludes: [5, 6] - - - label: - "Step 4j: Read the optional, feature dependent attribute LevelValue in - AttributeList" - command: "readAttribute" - attribute: "AttributeList" - PICS: CDOCONC.S.F01 - response: - constraints: - type: list - contains: [10] - - - label: - "Step 4k: Check that LevelValue is excluded from AttributeList when - CDOCONC.S.F01 (LEV) is not set" - command: "readAttribute" - attribute: "AttributeList" - PICS: " !CDOCONC.S.F01 " - response: - constraints: - type: list - excludes: [10] - - - label: "Step 5: Read the global attribute: EventList" - PICS: PICS_EVENT_LIST_ENABLED - command: "readAttribute" - attribute: "EventList" - response: - value: [] - constraints: - type: list - - - label: "Step 6: Read the global attribute: AcceptedCommandList" - command: "readAttribute" - attribute: "AcceptedCommandList" - response: - value: [] - constraints: - type: list - - - label: "Step 7: Read the global attribute: GeneratedCommandList" - command: "readAttribute" - attribute: "GeneratedCommandList" - response: - value: [] - constraints: - type: list diff --git a/src/app/tests/suites/certification/Test_TC_CMOCONC_1_1.yaml b/src/app/tests/suites/certification/Test_TC_CMOCONC_1_1.yaml deleted file mode 100644 index dfa949e6ffc58c..00000000000000 --- a/src/app/tests/suites/certification/Test_TC_CMOCONC_1_1.yaml +++ /dev/null @@ -1,336 +0,0 @@ -# Copyright (c) 2023 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: 145.1.1. [TC-CMOCONC-1.1] Global Attributes with DUT as Server - -PICS: - - CMOCONC.S - -config: - nodeId: 0x12344321 - cluster: "Carbon Monoxide Concentration Measurement" - endpoint: 1 - -tests: - - label: "Step 1: Wait for the commissioned device to be retrieved" - cluster: "DelayCommands" - command: "WaitForCommissionee" - arguments: - values: - - name: "nodeId" - value: nodeId - - - label: "Step 2: Read the global attribute: ClusterRevision" - command: "readAttribute" - attribute: "ClusterRevision" - response: - value: 3 - constraints: - type: int16u - - - label: - "Step 3a: Read the global attribute: FeatureMap and check for either - bit 0 or 1 set" - command: "readAttribute" - attribute: "FeatureMap" - response: - constraints: - type: bitmap32 - hasMasksSet: [0x03] - - - label: - "Step 3b: Given CMOCONC.S.F00(MEA) ensure featuremap has the correct - bit set" - command: "readAttribute" - attribute: "FeatureMap" - PICS: CMOCONC.S.F00 - response: - constraints: - type: bitmap32 - hasMasksSet: [0x1] - - - label: - "Step 3c: Given CMOCONC.S.F00(MEA) is not set, ensure featuremap has - the correct bit clear" - command: "readAttribute" - attribute: "FeatureMap" - PICS: " !CMOCONC.S.F00 " - response: - constraints: - type: bitmap32 - hasMasksClear: [0x1] - - - label: - "Step 3d: Given CMOCONC.S.F01(LEV) ensure featuremap has the correct - bit set" - command: "readAttribute" - attribute: "FeatureMap" - PICS: CMOCONC.S.F01 - response: - constraints: - type: bitmap32 - hasMasksSet: [0x2] - - - label: - "Step 3e: Given CMOCONC.S.F01(LEV) is not set, ensure featuremap has - the correct bit clear" - command: "readAttribute" - attribute: "FeatureMap" - PICS: " !CMOCONC.S.F01 " - response: - constraints: - type: bitmap32 - hasMasksClear: [0x2] - - - label: - "Step 3f: Given CMOCONC.S.F02(MED) ensure featuremap has the correct - bit set" - command: "readAttribute" - attribute: "FeatureMap" - PICS: CMOCONC.S.F02 && CMOCONC.S.F01 - response: - constraints: - type: bitmap32 - hasMasksSet: [0x4, 0x2] - - - label: - "Step 3g: Given CMOCONC.S.F02(MED) is not set, ensure featuremap has - the correct bit clear" - command: "readAttribute" - attribute: "FeatureMap" - PICS: " !CMOCONC.S.F02 && !CMOCONC.S.F01" - response: - constraints: - type: bitmap32 - hasMasksClear: [0x4] - - - label: - "Step 3h: Given CMOCONC.S.F03(CRI) ensure featuremap has the correct - bits set" - command: "readAttribute" - attribute: "FeatureMap" - PICS: CMOCONC.S.F03 && CMOCONC.S.F01 - response: - constraints: - type: bitmap32 - hasMasksSet: [0x8, 0x2] - - - label: - "Step 3i: Given CMOCONC.S.F03(CRI) is not set, ensure featuremap has - the correct bit clear" - command: "readAttribute" - attribute: "FeatureMap" - PICS: " !CMOCONC.S.F03 && !CMOCONC.S.F01" - response: - constraints: - type: bitmap32 - hasMasksClear: [0x8] - - - label: - "Step 3j: Given CMOCONC.S.F04(PEA) ensure featuremap has the correct - bits set" - command: "readAttribute" - attribute: "FeatureMap" - PICS: CMOCONC.S.F04 && CMOCONC.S.F00 - response: - constraints: - type: bitmap32 - hasMasksSet: [0x10, 0x1] - - - label: - "Step 3k: Given CMOCONC.S.F04(PEA) is not set, ensure featuremap has - the correct bit clear" - command: "readAttribute" - attribute: "FeatureMap" - PICS: " !CMOCONC.S.F04 && !CMOCONC.S.F00" - response: - constraints: - type: bitmap32 - hasMasksClear: [0x10] - - - label: - "Step 3l: Given CMOCONC.S.F05(AVG) ensure featuremap has the correct - bits set" - command: "readAttribute" - attribute: "FeatureMap" - PICS: CMOCONC.S.F05 && CMOCONC.S.F00 - response: - constraints: - type: bitmap32 - hasMasksSet: [0x20, 0x1] - - - label: - "Step 3m: Given CMOCONC.S.F05(AVG) is not set, ensure featuremap has - the correct bit clear" - command: "readAttribute" - attribute: "FeatureMap" - PICS: " !CMOCONC.S.F05 && !CMOCONC.S.F00 " - response: - constraints: - type: bitmap32 - hasMasksClear: [0x20] - - - label: "Step 4a: Read the global attribute: AttributeList" - command: "readAttribute" - attribute: "AttributeList" - PICS: PICS_EVENT_LIST_ENABLED - response: - constraints: - type: list - contains: [9, 65528, 65529, 65530, 65531, 65532, 65533] - - - label: "Step 4a: Read the global attribute: AttributeList" - PICS: "!PICS_EVENT_LIST_ENABLED" - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [9, 65528, 65529, 65531, 65532, 65533] - - - label: "Step 4b: Read the optional attribute Uncertainty in AttributeList" - command: "readAttribute" - attribute: "AttributeList" - PICS: CMOCONC.S.A0007 && CMOCONC.S.F00 - response: - constraints: - type: list - contains: [7] - - - label: - "Step 4c: Check the optional attribute Uncertainty is excluded from - AttributeList when CMOCONC.S.A0007 is not set" - command: "readAttribute" - attribute: "AttributeList" - PICS: " !CMOCONC.S.A0007 " - response: - constraints: - type: list - excludes: [7] - - - label: - "Step 4d: Read the optional, feature dependent attributes - MeasuredValue, MinMeasuredValue, MaxMeasuredValue and Measurement Unit - in AttributeList" - command: "readAttribute" - attribute: "AttributeList" - PICS: CMOCONC.S.F00 - response: - constraints: - type: list - contains: [0, 1, 2, 8] - - - label: - "Step 4e: Check that MeasuredValue, MinMeasuredValue, - MaxMeasuredValue, Measurement Unit and Uncertainty are excluded from - AttributeList when CMOCONC.S.F00 (MEA) is not set" - command: "readAttribute" - attribute: "AttributeList" - PICS: " !CMOCONC.S.F00 " - response: - constraints: - type: list - excludes: [0, 1, 2, 7, 8] - - - label: - "Step 4f: Read the optional, feature dependent attributes - PeakMeasuredValue & PeakMeasuredValueWindow in AttributeList" - command: "readAttribute" - attribute: "AttributeList" - PICS: CMOCONC.S.F04 - response: - constraints: - type: list - contains: [3, 4] - - - label: - "Step 4g: Check that PeakMeasuredValue & PeakMeasuredValueWindow are - excluded from AttributeList when CMOCONC.S.F04 (PEA) is not set" - command: "readAttribute" - attribute: "AttributeList" - PICS: " !CMOCONC.S.F04 " - response: - constraints: - type: list - excludes: [3, 4] - - - label: - "Step 4h: Read the optional, feature dependent attributes - AverageMeasuredValue AverageMeasuredValueWindow in AttributeList" - command: "readAttribute" - attribute: "AttributeList" - PICS: CMOCONC.S.F05 - response: - constraints: - type: list - contains: [5, 6] - - - label: - "Step 4i: Check that AverageMeasuredValue and - AverageMeasuredValueWindow are excluded from AttributeList when - CMOCONC.S.F05 (AVG) is not set" - command: "readAttribute" - attribute: "AttributeList" - PICS: " !CMOCONC.S.F05 " - response: - constraints: - type: list - excludes: [5, 6] - - - label: - "Step 4j: Read the optional, feature dependent attribute LevelValue in - AttributeList" - command: "readAttribute" - attribute: "AttributeList" - PICS: CMOCONC.S.F01 - response: - constraints: - type: list - contains: [10] - - - label: - "Step 4k: Check that LevelValue is excluded from AttributeList when - CMOCONC.S.F01 (LEV) is not set" - command: "readAttribute" - attribute: "AttributeList" - PICS: " !CMOCONC.S.F01 " - response: - constraints: - type: list - excludes: [10] - - - label: "Step 5: Read the global attribute: EventList" - PICS: PICS_EVENT_LIST_ENABLED - command: "readAttribute" - attribute: "EventList" - response: - value: [] - constraints: - type: list - - - label: "Step 6: Read the global attribute: AcceptedCommandList" - command: "readAttribute" - attribute: "AcceptedCommandList" - response: - value: [] - constraints: - type: list - - - label: "Step 7: Read the global attribute: GeneratedCommandList" - command: "readAttribute" - attribute: "GeneratedCommandList" - response: - value: [] - constraints: - type: list diff --git a/src/app/tests/suites/certification/Test_TC_CNET_1_3.yaml b/src/app/tests/suites/certification/Test_TC_CNET_1_3.yaml deleted file mode 100644 index afa472af0aa12b..00000000000000 --- a/src/app/tests/suites/certification/Test_TC_CNET_1_3.yaml +++ /dev/null @@ -1,219 +0,0 @@ -# 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: 12.1.3. [TC-CNET-1.3] Global Attributes with DUT as Server - -PICS: - - CNET.S - -config: - nodeId: 0x12344321 - cluster: "Network Commissioning" - endpoint: 0 - -tests: - - label: "Step 1: Wait for the commissioned device to be retrieved" - cluster: "DelayCommands" - command: "WaitForCommissionee" - arguments: - values: - - name: "nodeId" - value: nodeId - - - label: "Step 2: TH reads from the DUT the ClusterRevision attribute" - command: "readAttribute" - attribute: "ClusterRevision" - response: - value: 2 - constraints: - type: int16u - - - label: "Step 3a: TH reads from the DUT the FeatureMap attribute" - PICS: " !CNET.S.F00 && !CNET.S.F01 && !CNET.S.F02 " - command: "readAttribute" - attribute: "FeatureMap" - response: - value: 0 - - - label: - "Step 3b: TH reads the global attribute: FeatureMap when CNET.S.F00 is - set" - PICS: CNET.S.F00 - command: "readAttribute" - attribute: "FeatureMap" - response: - value: 1 - - - label: - "Step 3c: TH reads the global attribute: FeatureMap when CNET.S.F01 is - set" - PICS: CNET.S.F01 - command: "readAttribute" - attribute: "FeatureMap" - response: - value: 2 - - - label: - "Step 3d: TH reads the global attribute: FeatureMap when CNET.S.F02 is - set" - PICS: CNET.S.F02 - command: "readAttribute" - attribute: "FeatureMap" - response: - value: 4 - - - label: "Step 4a: TH reads from the DUT the AttributeList attribute" - PICS: PICS_EVENT_LIST_ENABLED - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [65528, 65529, 65530, 65531, 65532, 65533] - - - label: "Step 4b: TH reads from the DUT the AttributeList attribute." - PICS: "!PICS_EVENT_LIST_ENABLED" - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [65528, 65529, 65531, 65532, 65533] - - - label: - "Step 4c: TH reads mandatory attributes in AttributeList if - CNET.S.F00(WI)/CNET.S.F01(TH)/CNET.S.F02(ET) is true" - PICS: CNET.S.F00 || CNET.S.F01 || CNET.S.F02 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [0, 1, 4, 5, 6, 7] - - - label: - "Step 4d: TH reads the feature dependent - attribute(ScanMaxTimeSeconds): AttributeList" - PICS: CNET.S.F00 || CNET.S.F01 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [2] - - - label: - "Step 4e: TH reads the feature dependent - attribute(ConnectMaxTimeSeconds) in AttributeList" - PICS: CNET.S.F00 || CNET.S.F01 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [3] - - - label: - "Step 4f: TH reads WIFI related attribute (SupportedWiFiBands) in - AttributeList" - PICS: CNET.S.F00 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [8] - - - label: - "Step 4g: TH reads Thread related attribute (SupportedWiFiBands and - ThreadVersion) in AttributeList" - PICS: CNET.S.F01 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [9, 10] - - - label: "Step 5: TH reads from the DUT the EventList attribute" - PICS: PICS_EVENT_LIST_ENABLED - command: "readAttribute" - attribute: "EventList" - response: - value: [] - constraints: - type: list - - - label: - "Step 6a: TH reads AcceptedCommandList attribute from DUT. If DUT - supports Wi-Fi/Thread related features CNET.S.F00(WI),CNET.S.F01(TH)" - PICS: ( CNET.S.F00 || CNET.S.F01 ) - command: "readAttribute" - attribute: "AcceptedCommandList" - response: - constraints: - type: list - contains: [0, 4, 6, 8] - - - label: - "Step 6b: TH reads AcceptedCommandList attribute from DUT. If DUT - supports Wi-Fi related features (CNET.S.F00(WI) is true)" - PICS: CNET.S.F00 - command: "readAttribute" - attribute: "AcceptedCommandList" - response: - constraints: - type: list - contains: [2] - - - label: - "Step 6c: TH reads AcceptedCommandList attribute from DUT. If DUT - supports Thread related features(CNET.S.F01(TH) is true)" - PICS: CNET.S.F01 - command: "readAttribute" - attribute: "AcceptedCommandList" - response: - constraints: - type: list - contains: [3] - - - label: - "Step 6d: TH reads AcceptedCommandList attribute from DUT. If DUT - supports Ethernet related features(CNET.S.F02(TH) is true)" - PICS: CNET.S.F02 - command: "readAttribute" - attribute: "AcceptedCommandList" - response: - value: [] - - - label: - "Step 7a: TH reads the GeneratedCommandList attribute from DUT. If DUT - supports Wi-Fi/Thread related features(CNET.S.F00(WI) or - CNET.S.F01(TH) is true)" - PICS: ( CNET.S.F00 || CNET.S.F01 ) - command: "readAttribute" - attribute: "GeneratedCommandList" - response: - constraints: - type: list - contains: [1, 5, 7] - - - label: - "Step 7b: Read the GeneratedCommandList attribute from DUT. If DUT - supports Ethernet related features(CNET.S.F02(ET) must be true)" - PICS: CNET.S.F02 - command: "readAttribute" - attribute: "GeneratedCommandList" - response: - value: [] diff --git a/src/app/tests/suites/certification/Test_TC_DEM_1_1.yaml b/src/app/tests/suites/certification/Test_TC_DEM_1_1.yaml deleted file mode 100644 index e69e5a62b0a820..00000000000000 --- a/src/app/tests/suites/certification/Test_TC_DEM_1_1.yaml +++ /dev/null @@ -1,123 +0,0 @@ -# Copyright (c) 2024 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. -# Auto-generated scripts for harness use only, please review before automation. The endpoints and cluster names are currently set to default - -name: 237.1.1. [TC-DEM-1.1] Global Attributes with DUT as Server - -PICS: - - DEM.S - -config: - nodeId: 0x12344321 - cluster: "Basic Information" - endpoint: 0 - -tests: - - label: - "Step 1: Commission DUT to TH (can be skipped if done in a preceding - test)." - verification: | - - disabled: true - - - label: "Step 2: TH reads from the DUT the ClusterRevision attribute." - verification: | - ./chip-tool deviceenergymanagement read cluster-revision 1 1 - - On TH(chip-tool), Verify the ClusterRevision attribute value as 2: - Below mentioned log is based on the RPI implementation, Value may vary on real DUT - - [1705565332.698601][7061:7063] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0098 Attribute 0x0000_FFFD DataVersion: 1117764527 - [1705565332.698668][7061:7063] CHIP:TOO: ClusterRevision: 3 - disabled: true - - - label: "Step 3: TH reads from the DUT the FeatureMap attribute." - verification: | - ./chip-tool deviceenergymanagement read feature-map 1 1 - - Via the TH (chip-tool), verify that theFeatureMap attribute contains the value. Below mentioned log is based on the RPI implementation, Value may vary on real DUT - - - [1705565302.904580][7054:7056] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0098 Attribute 0x0000_FFFC DataVersion: 1117764527 - [1705565302.904631][7054:7056] CHIP:TOO: FeatureMap: 127 - disabled: true - - - label: "Step 4: TH reads from the DUT the AttributeList attribute." - verification: | - ./chip-tool deviceenergymanagement read attribute-list 1 1 - - Via the TH (chip-tool), verify that the AttributeList attribute contains - - Mandatory entries:0x0000, 0x0001, 0x0002, 0x0003, 0x0004, 0xfff8, 0xfff9, 0xfffb, 0xfffc and 0xfffd - - Based on feature support:- 0x0005, 0x0006, 0x0007 - Below mentioned log is based on the RPI implementation, Value may vary on real DUT - - [1723642027.628] [328171:328173] [TOO] Endpoint: 1 Cluster: 0x0000_0098 Attribute 0x0000_FFFB DataVersion: 3122179410 - [1723642027.628] [328171:328173] [TOO] AttributeList: 13 entries - [1723642027.628] [328171:328173] [TOO] [1]: 0 (ESAType) - [1723642027.628] [328171:328173] [TOO] [2]: 1 (ESACanGenerate) - [1723642027.628] [328171:328173] [TOO] [3]: 2 (ESAState) - [1723642027.628] [328171:328173] [TOO] [4]: 3 (AbsMinPower) - [1723642027.628] [328171:328173] [TOO] [5]: 4 (AbsMaxPower) - [1723642027.628] [328171:328173] [TOO] [6]: 5 (PowerAdjustmentCapability) - [1723642027.628] [328171:328173] [TOO] [7]: 6 (Forecast) - [1723642027.628] [328171:328173] [TOO] [8]: 7 (OptOutState) - [1723642027.628] [328171:328173] [TOO] [9]: 65528 (GeneratedCommandList) - [1723642027.628] [328171:328173] [TOO] [10]: 65529 (AcceptedCommandList) - [1723642027.628] [328171:328173] [TOO] [11]: 65531 (AttributeList) - [1723642027.628] [328171:328173] [TOO] [12]: 65532 (FeatureMap) - [1723642027.628] [328171:328173] [TOO] [13]: 65533 (ClusterRevision) - disabled: true - - - label: "Step 5*: TH reads from the DUT the EventList attribute." - verification: | - EventList is currently not supported and SHALL be skipped. - - ./chip-tool deviceenergymanagement read event-list 1 1 - - Via the TH (chip-tool), verify that the EventList attribute. Below mentioned log is based on the RPI implementation, Value may vary on real DUT - - [1703745599.166331][1300:1302] CHIP:DMG: StatusIB = - [1703745599.166364][1300:1302] CHIP:DMG: { - [1703745599.166419][1300:1302] CHIP:DMG: status = 0x86 (UNSUPPORTED_ATTRIBUTE), - [1703745599.166450][1300:1302] CHIP:DMG: }, - disabled: true - - - label: "Step 6: TH reads from the DUT the AcceptedCommandList attribute." - verification: | - ./chip-tool deviceenergymanagement read accepted-command-list 1 1 - - On TH(chip-tool), Verify the AcceptedCommandList attribute that contains 7 entries: - Below mentioned log is based on the RPI implementation, Value may vary on real DUT - - [1705649342.947638][6221:6223] [TOO] Endpoint: 1 Cluster: 0x0000_0098 Attribute 0x0000_FFF9 DataVersion: 633673396 - [1705649342.947712][6221:6223] [TOO] AcceptedCommandList: 8 entries - [1705649342.947754][6221:6223] [TOO] [1]: 0 (PowerAdjustRequest) - [1705649342.947779][6221:6223] [TOO] [2]: 1 (CancelPowerAdjustRequest) - [1705649342.947802][6221:6223] [TOO] [3]: 2 (StartTimeAdjustRequest) - [1705649342.947825][6221:6223] [TOO] [4]: 3 (PauseRequest) - [1705649342.947848][6221:6223] [TOO] [5]: 4 (ResumeRequest) - [1705649342.947871][6221:6223] [TOO] [6]: 5 (ModifyForecastRequest) - [1705649342.947894][6221:6223] [TOO] [7]: 6 (RequestConstraintBasedForecast) - [1705649342.947917][6221:6223] [TOO] [8]: 7 (CancelRequest) - disabled: true - - - label: "Step 7: TH reads from the DUT the GeneratedCommandList attribute." - verification: | - ./chip-tool deviceenergymanagement read generated-command-list 1 1 - - On TH(chip-tool), Verify the GeneratedCommandList attribute that contains 1 entries: - - [1705567897.076935][7141:7143] [TOO] Endpoint: 1 Cluster: 0x0000_0098 Attribute 0x0000_FFF8 DataVersion: 1117764527 - [1705567897.076989][7141:7143] [TOO] GeneratedCommandList: 0 entries - disabled: true diff --git a/src/app/tests/suites/certification/Test_TC_FLDCONC_1_1.yaml b/src/app/tests/suites/certification/Test_TC_FLDCONC_1_1.yaml deleted file mode 100644 index 14f37e7cbb3e29..00000000000000 --- a/src/app/tests/suites/certification/Test_TC_FLDCONC_1_1.yaml +++ /dev/null @@ -1,339 +0,0 @@ -# Copyright (c) 2023 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: 145.1.1. [TC-FLDCONC-1.1] Global Attributes with DUT as Server - -PICS: - - FLDCONC.S - -config: - nodeId: 0x12344321 - cluster: "Formaldehyde Concentration Measurement" - endpoint: 1 - -tests: - - label: - "Step 1: Commission DUT to TH (can be skipped if done in a preceding - test)." - cluster: "DelayCommands" - command: "WaitForCommissionee" - arguments: - values: - - name: "nodeId" - value: nodeId - - - label: "Step 2: TH reads from the DUT the ClusterRevision attribute." - command: "readAttribute" - attribute: "ClusterRevision" - response: - value: 3 - constraints: - type: int16u - - - label: - "Step 3a: TH reads from the DUT the FeatureMap attribute. and check - for either bit 0 or 1 set" - command: "readAttribute" - attribute: "FeatureMap" - response: - constraints: - type: bitmap32 - hasMasksSet: [0x03] - - - label: - "Step 3b: Given FLDCONC.S.F00(MEA) ensure featuremap has the correct - bit set" - command: "readAttribute" - attribute: "FeatureMap" - PICS: FLDCONC.S.F00 - response: - constraints: - type: bitmap32 - hasMasksSet: [0x1] - - - label: - "Step 3c: Given FLDCONC.S.F00(MEA) is not set, ensure featuremap has - the correct bit clear" - command: "readAttribute" - attribute: "FeatureMap" - PICS: " !FLDCONC.S.F00 " - response: - constraints: - type: bitmap32 - hasMasksClear: [0x1] - - - label: - "Step 3d: Given FLDCONC.S.F01(LEV) ensure featuremap has the correct - bit set" - command: "readAttribute" - attribute: "FeatureMap" - PICS: FLDCONC.S.F01 - response: - constraints: - type: bitmap32 - hasMasksSet: [0x2] - - - label: - "Step 3e: Given FLDCONC.S.F01(LEV) is not set, ensure featuremap has - the correct bit clear" - command: "readAttribute" - attribute: "FeatureMap" - PICS: " !FLDCONC.S.F01 " - response: - constraints: - type: bitmap32 - hasMasksClear: [0x2] - - - label: - "Step 3f: Given FLDCONC.S.F02(MED) ensure featuremap has the correct - bit set" - command: "readAttribute" - attribute: "FeatureMap" - PICS: FLDCONC.S.F02 && FLDCONC.S.F01 - response: - constraints: - type: bitmap32 - hasMasksSet: [0x4, 0x2] - - - label: - "Step 3g: Given FLDCONC.S.F02(MED) is not set, ensure featuremap has - the correct bit clear" - command: "readAttribute" - attribute: "FeatureMap" - PICS: " !FLDCONC.S.F02 && !FLDCONC.S.F01" - response: - constraints: - type: bitmap32 - hasMasksClear: [0x4] - - - label: - "Step 3h: Given FLDCONC.S.F03(CRI) ensure featuremap has the correct - bits set" - command: "readAttribute" - attribute: "FeatureMap" - PICS: FLDCONC.S.F03 && FLDCONC.S.F01 - response: - constraints: - type: bitmap32 - hasMasksSet: [0x8, 0x2] - - - label: - "Step 3i: Given FLDCONC.S.F03(CRI) is not set, ensure featuremap has - the correct bit clear" - command: "readAttribute" - attribute: "FeatureMap" - PICS: " !FLDCONC.S.F03 && !FLDCONC.S.F01 " - response: - constraints: - type: bitmap32 - hasMasksClear: [0x8] - - - label: - "Step 3j: Given FLDCONC.S.F04(PEA) ensure featuremap has the correct - bits set" - command: "readAttribute" - attribute: "FeatureMap" - PICS: FLDCONC.S.F04 && FLDCONC.S.F00 - response: - constraints: - type: bitmap32 - hasMasksSet: [0x10, 0x1] - - - label: - "Step 3k: Given FLDCONC.S.F04(PEA) is not set, ensure featuremap has - the correct bit clear" - command: "readAttribute" - attribute: "FeatureMap" - PICS: " !FLDCONC.S.F04 && !FLDCONC.S.F00 " - response: - constraints: - type: bitmap32 - hasMasksClear: [0x10] - - - label: - "Step 3l: Given FLDCONC.S.F05(AVG) ensure featuremap has the correct - bits set" - command: "readAttribute" - attribute: "FeatureMap" - PICS: FLDCONC.S.F05 && FLDCONC.S.F00 - response: - constraints: - type: bitmap32 - hasMasksSet: [0x20, 0x1] - - - label: - "Step 3m: Given FLDCONC.S.F05(AVG) is not set, ensure featuremap has - the correct bit clear" - command: "readAttribute" - attribute: "FeatureMap" - PICS: " !FLDCONC.S.F05 && !FLDCONC.S.F00" - response: - constraints: - type: bitmap32 - hasMasksClear: [0x20] - - - label: "Step 4a: TH reads from the DUT the AttributeList attribute." - command: "readAttribute" - attribute: "AttributeList" - PICS: PICS_EVENT_LIST_ENABLED - response: - constraints: - type: list - contains: [9, 65528, 65529, 65530, 65531, 65532, 65533] - - - label: "Step 4a: TH reads from the DUT the AttributeList attribute." - command: "readAttribute" - attribute: "AttributeList" - PICS: "!PICS_EVENT_LIST_ENABLED" - response: - constraints: - type: list - contains: [9, 65528, 65529, 65531, 65532, 65533] - - - label: - "Step 4b: TH reads the optional attribute Uncertainty in AttributeList" - command: "readAttribute" - attribute: "AttributeList" - PICS: FLDCONC.S.A0007 && FLDCONC.S.F00 - response: - constraints: - type: list - contains: [7] - - - label: - "Step 4c: Check the optional attribute Uncertainty is excluded from - AttributeList when FLDCONC.S.A0007 is not set" - command: "readAttribute" - attribute: "AttributeList" - PICS: " !FLDCONC.S.A0007 " - response: - constraints: - type: list - excludes: [7] - - - label: - "Step 4d: TH reads the optional, feature dependent attributes - MeasuredValue, MinMeasuredValue, MaxMeasuredValue and Measurement Unit - in AttributeList" - command: "readAttribute" - attribute: "AttributeList" - PICS: FLDCONC.S.F00 - response: - constraints: - type: list - contains: [0, 1, 2, 8] - - - label: - "Step 4e: Check that MeasuredValue, MinMeasuredValue, - MaxMeasuredValue, Measurement Unit and Uncertainty are excluded from - AttributeList when FLDCONC.S.F00 (MEA) is not set" - command: "readAttribute" - attribute: "AttributeList" - PICS: " !FLDCONC.S.F00 " - response: - constraints: - type: list - excludes: [0, 1, 2, 7, 8] - - - label: - "Step 4f: TH reads the optional, feature dependent attributes - PeakMeasuredValue & PeakMeasuredValueWindow in AttributeList" - command: "readAttribute" - attribute: "AttributeList" - PICS: FLDCONC.S.F04 - response: - constraints: - type: list - contains: [3, 4] - - - label: - "Step 4g: Check that PeakMeasuredValue & PeakMeasuredValueWindow are - excluded from AttributeList when FLDCONC.S.F04 (PEA) is not set" - command: "readAttribute" - attribute: "AttributeList" - PICS: " !FLDCONC.S.F04 " - response: - constraints: - type: list - excludes: [3, 4] - - - label: - "Step 4h: TH reads the optional, feature dependent attributes - AverageMeasuredValue AverageMeasuredValueWindow in AttributeList" - command: "readAttribute" - attribute: "AttributeList" - PICS: FLDCONC.S.F05 - response: - constraints: - type: list - contains: [5, 6] - - - label: - "Step 4i: Check that AverageMeasuredValue and - AverageMeasuredValueWindow are excluded from AttributeList when - FLDCONC.S.F05 (AVG) is not set" - command: "readAttribute" - attribute: "AttributeList" - PICS: " !FLDCONC.S.F05 " - response: - constraints: - type: list - excludes: [5, 6] - - - label: - "Step 4j: TH reads the optional, feature dependent attribute - LevelValue in AttributeList" - command: "readAttribute" - attribute: "AttributeList" - PICS: FLDCONC.S.F01 - response: - constraints: - type: list - contains: [10] - - - label: - "Step 4k: Check that LevelValue is excluded from AttributeList when - FLDCONC.S.F01 (LEV) is not set" - command: "readAttribute" - attribute: "AttributeList" - PICS: " !FLDCONC.S.F01 " - response: - constraints: - type: list - excludes: [10] - - - label: "Step 5: TH reads from the DUT the EventList attribute." - PICS: PICS_EVENT_LIST_ENABLED - command: "readAttribute" - attribute: "EventList" - response: - value: [] - constraints: - type: list - - - label: "Step 6: TH reads from the DUT the AcceptedCommandList attribute." - command: "readAttribute" - attribute: "AcceptedCommandList" - response: - value: [] - constraints: - type: list - - - label: "Step 7: TH reads from the DUT the GeneratedCommandList attribute." - command: "readAttribute" - attribute: "GeneratedCommandList" - response: - value: [] - constraints: - type: list diff --git a/src/app/tests/suites/certification/Test_TC_ICDM_1_1.yaml b/src/app/tests/suites/certification/Test_TC_ICDM_1_1.yaml deleted file mode 100755 index fb507fd7a89663..00000000000000 --- a/src/app/tests/suites/certification/Test_TC_ICDM_1_1.yaml +++ /dev/null @@ -1,223 +0,0 @@ -# Copyright (c) 2023 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: 312.1.1. [TC-ICDM-1.1] Global attributes with DUT as Server - -PICS: - - ICDM.S - -config: - nodeId: 0x12344321 - cluster: "ICD Management" - endpoint: 0 - -tests: - - label: "Step 1: Wait for the commissioned device to be retrieved" - cluster: "DelayCommands" - command: "WaitForCommissionee" - arguments: - values: - - name: "nodeId" - value: nodeId - - - label: "Step 2: TH reads ClusterRevision attribute from DUT" - command: "readAttribute" - attribute: "ClusterRevision" - response: - value: 3 - constraints: - type: int16u - - - label: "Step 3: TH reads FeatureMap attribute from DUT" - PICS: " !ICDM.S.F00 && !ICDM.S.F01 && !ICDM.S.F02 " - command: "readAttribute" - attribute: "FeatureMap" - response: - value: 0 - constraints: - type: bitmap32 - - - label: - "Step 3: TH reads FeatureMap attribute from DUT, bit 0 is set to 1 if - ICDM.S.F00(UAT) is true," - PICS: ICDM.S.F00 - command: "readAttribute" - attribute: "FeatureMap" - response: - constraints: - hasMasksSet: [0x1] - type: bitmap32 - - - label: - "Step 3: TH reads FeatureMap attribute from DUT, bit 1 is set to 1 if - ICDM.S.F01(CIP) is true" - PICS: ICDM.S.F01 - command: "readAttribute" - attribute: "FeatureMap" - response: - constraints: - hasMasksSet: [0x2] - type: bitmap32 - - - label: - "Step 3: TH reads FeatureMap attribute from DUT, bit 2 is set to 1 if - ICDM.S.F02(UAT) is true," - PICS: ICDM.S.F02 - command: "readAttribute" - attribute: "FeatureMap" - response: - constraints: - hasMasksSet: [0x4] - type: bitmap32 - - - label: "Step 4a: TH reads AttributeList attribute from DUT" - PICS: PICS_EVENT_LIST_ENABLED - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [0, 1, 2, 65528, 65529, 65530, 65531, 65532, 65533] - - - label: "Step 4a: TH reads AttributeList attribute from DUT" - PICS: "!PICS_EVENT_LIST_ENABLED" - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [0, 1, 2, 65528, 65529, 65531, 65532, 65533] - - - label: - "Step 4b: Read the optional attribute(RegisteredClients) in - AttributeList" - PICS: ICDM.S.A0003 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [3] - - - label: "Step 4c: Read the optional attribute(IcdCounter) in AttributeList" - PICS: ICDM.S.A0004 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [4] - - - label: - "Step 4d: Read the optional attribute(ClientsSupportedPerFabric) in - AttributeList" - PICS: ICDM.S.A0005 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [5] - - - label: - "Step 4d: Read the optional attribute(UserActiveModeTriggerHint) in - AttributeList" - PICS: ICDM.S.A0006 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [6] - - - label: - "Step 4d: Read the optional - attribute(UserActiveModeTriggerInstruction) in AttributeList" - PICS: ICDM.S.A0007 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [7] - - - label: "Step 5: Read the global attribute: EventList" - PICS: PICS_EVENT_LIST_ENABLED - command: "readAttribute" - attribute: "EventList" - response: - value: [] - constraints: - type: list - - - label: "Step 6a: TH reads AcceptedCommandList attribute from DUT" - PICS: " !ICDM.S.F00 && !ICDM.S.C03.Rsp " - command: "readAttribute" - attribute: "AcceptedCommandList" - response: - value: [] - constraints: - type: list - - - label: - "Step 6b: TH reads AcceptedCommandList attribute from DUT if - ICDM.S.F00 is true" - PICS: ICDM.S.F00 - command: "readAttribute" - attribute: "AcceptedCommandList" - response: - constraints: - type: list - contains: [0, 2] - - - label: - "Step 6c: Read the optional command (StayActiveRequest) in - AttributeList" - PICS: ICDM.S.C03.Rsp - command: "readAttribute" - attribute: "AcceptedCommandList" - response: - constraints: - type: list - contains: [3] - - - label: "Step 7: TH reads GeneratedCommandList attribute from DUT" - PICS: " !ICDM.S.F00 " - command: "readAttribute" - attribute: "GeneratedCommandList" - response: - value: [] - constraints: - type: list - - - label: "Step 7: TH reads GeneratedCommandList attribute from DUT" - PICS: ICDM.S.F00 - command: "readAttribute" - attribute: "GeneratedCommandList" - response: - constraints: - type: list - contains: [1] - - - label: - "Step 7: TH reads GeneratedCommandList attribute from DUT. The list - MAY include these optional entries: 0x04: SHALL be included if and - only if ICDM.S.C04.Tx(StayActiveResponse) " - PICS: ICDM.S.C04.Tx - command: "readAttribute" - attribute: "GeneratedCommandList" - response: - constraints: - type: list - contains: [4] diff --git a/src/app/tests/suites/certification/Test_TC_LTIME_1_2.yaml b/src/app/tests/suites/certification/Test_TC_LTIME_1_2.yaml deleted file mode 100644 index cb10e8a1d116f2..00000000000000 --- a/src/app/tests/suites/certification/Test_TC_LTIME_1_2.yaml +++ /dev/null @@ -1,116 +0,0 @@ -# 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: 108.1.2. [TC-LTIME-1.2] Global Attributes with DUT as Server - -PICS: - - LTIME.S - -config: - nodeId: 0x12344321 - cluster: "Time Format Localization" - endpoint: 0 - -tests: - - label: - "Step 1: Commission DUT to TH (can be skipped if done in a preceding - test)." - cluster: "DelayCommands" - command: "WaitForCommissionee" - arguments: - values: - - name: "nodeId" - value: nodeId - - - label: "Step 2: TH reads from the DUT the ClusterRevision attribute." - command: "readAttribute" - attribute: "ClusterRevision" - response: - value: 1 - constraints: - type: int16u - - - label: "Step 3: TH reads from the DUT the FeatureMap attribute." - command: "readAttribute" - attribute: "FeatureMap" - response: - constraints: - type: bitmap32 - minValue: 0 - maxValue: 1 - - - label: "Step 4a: TH reads from the DUT the AttributeList attribute." - PICS: PICS_EVENT_LIST_ENABLED - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [0, 65528, 65529, 65530, 65531, 65532, 65533] - - - label: "Step 4a: TH reads from the DUT the AttributeList attribute." - PICS: "!PICS_EVENT_LIST_ENABLED" - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [0, 65528, 65529, 65531, 65532, 65533] - - - label: - "Step 4b: TH reads Feature dependent attribute(ActiveCalendarType) in - AttributeList from DUT" - PICS: LTIME.S.F00 && LTIME.S.A0001 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [1] - - - label: - "Step 4c: TH reads Feature dependent attribute(SupportedCalendarTypes) - in AttributeList from DUT" - PICS: LTIME.S.F00 && LTIME.S.A0002 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [2] - - - label: "Step 5: TH reads from the DUT the EventList attribute." - PICS: PICS_EVENT_LIST_ENABLED - command: "readAttribute" - attribute: "EventList" - response: - value: [] - constraints: - type: list - - - label: "Step 6: TH reads from the DUT the AcceptedCommandList attribute." - command: "readAttribute" - attribute: "AcceptedCommandList" - response: - value: [] - constraints: - type: list - - - label: "Step 7: TH reads from the DUT the GeneratedCommandList attribute." - command: "readAttribute" - attribute: "GeneratedCommandList" - response: - value: [] - constraints: - type: list diff --git a/src/app/tests/suites/certification/Test_TC_MWOCTRL_1_1.yaml b/src/app/tests/suites/certification/Test_TC_MWOCTRL_1_1.yaml deleted file mode 100644 index d06db8ae77d741..00000000000000 --- a/src/app/tests/suites/certification/Test_TC_MWOCTRL_1_1.yaml +++ /dev/null @@ -1,170 +0,0 @@ -# Copyright (c) 2024 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: 263.1.1. [TC-MWOCTRL-1.1] Global attributes with DUT as Server - -PICS: - - MWOCTRL.S - -config: - nodeId: 0x12344321 - cluster: "Microwave Oven Control" - endpoint: 1 - -tests: - - label: "Step 1: Wait for the commissioned device to be retrieved" - cluster: "DelayCommands" - command: "WaitForCommissionee" - arguments: - values: - - name: "nodeId" - value: nodeId - - - label: "Step 2: Read the global attribute: ClusterRevision" - command: "readAttribute" - attribute: "ClusterRevision" - response: - value: 1 - constraints: - type: int16u - - - label: "Step 3a: Check for no features selected." - command: "readAttribute" - attribute: "FeatureMap" - PICS: "!MWOCTRL.S.F00 && !MWOCTRL.S.F01 && !MWOCTRL.S.F02" - response: - value: 0 - constraints: - type: bitmap32 - - - label: "Step 3b: Check for PWRNUM feature support" - command: "readAttribute" - attribute: "FeatureMap" - PICS: MWOCTRL.S.F00 - response: - saveAs: powerNumSupported - constraints: - type: bitmap32 - hasMasksSet: [0x1] - hasMasksClear: [0x2] - - - label: "Step 3c: Check for WATTS feature support" - command: "readAttribute" - attribute: "FeatureMap" - PICS: MWOCTRL.S.F01 - response: - saveAs: wattsSupported - constraints: - type: bitmap32 - hasMasksClear: [0x1, 0x4] - hasMasksSet: [0x2] - - - label: "Step 3d: Check for PWRLMTS feature support" - command: "readAttribute" - attribute: "FeatureMap" - PICS: MWOCTRL.S.F02 - response: - saveAs: wattsSupported - constraints: - type: bitmap32 - hasMasksSet: [0x1, 0x4] - hasMasksClear: [0x2] - - - label: "Step 4a: Read the global attribute: AttributeList" - PICS: PICS_EVENT_LIST_ENABLED - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [0, 1, 65528, 65529, 65530, 65531, 65532, 65533] - - - label: "Step 4b: Read the global attribute: AttributeList" - PICS: "!PICS_EVENT_LIST_ENABLED" - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [0, 1, 65528, 65529, 65531, 65532, 65533] - - - label: "Step 4c: Check for mandatory attribute support for PWRNUM feature" - PICS: MWOCTRL.S.F00 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [2] - - - label: "Step 4d: Check for optional attribute support for PWRNUM feature" - PICS: MWOCTRL.S.F02 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [3, 4, 5] - - - label: "Step 4e: Check for mandatory attribute support for WATTS feaure" - PICS: MWOCTRL.S.F01 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [6, 7] - - - label: "Step 4f: Check for optional WattRating attribute support" - PICS: MWOCTRL.S.A0008 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [8] - - - label: "Step 5: TH reads EventList attribute from DUT" - PICS: PICS_EVENT_LIST_ENABLED - command: "readAttribute" - attribute: "EventList" - response: - value: [] - constraints: - type: list - - - label: "Step 6a: Check for mandatory commands." - command: "readAttribute" - attribute: "AcceptedCommandList" - response: - constraints: - type: list - contains: [0] - - - label: "Step 6b: Check for optional command AddMoreTime." - PICS: MWOCTRL.S.C01.Rsp - command: "readAttribute" - attribute: "AcceptedCommandList" - response: - constraints: - type: list - contains: [1] - - - label: "Step 7: TH reads from the DUT the GeneratedCommandList attribute." - command: "readAttribute" - attribute: "GeneratedCommandList" - response: - constraints: - type: list - contains: [] diff --git a/src/app/tests/suites/certification/Test_TC_NDOCONC_1_1.yaml b/src/app/tests/suites/certification/Test_TC_NDOCONC_1_1.yaml deleted file mode 100644 index a28dae650950a7..00000000000000 --- a/src/app/tests/suites/certification/Test_TC_NDOCONC_1_1.yaml +++ /dev/null @@ -1,339 +0,0 @@ -# Copyright (c) 2023 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: 145.1.1. [TC-NDOCONC-1.1] Global Attributes with DUT as Server - -PICS: - - NDOCONC.S - -config: - nodeId: 0x12344321 - cluster: "Nitrogen Dioxide Concentration Measurement" - endpoint: 1 - -tests: - - label: - "Step 1: Commission DUT to TH (can be skipped if done in a preceding - test)." - cluster: "DelayCommands" - command: "WaitForCommissionee" - arguments: - values: - - name: "nodeId" - value: nodeId - - - label: "Step 2: TH reads from the DUT the ClusterRevision attribute." - command: "readAttribute" - attribute: "ClusterRevision" - response: - value: 3 - constraints: - type: int16u - - - label: - "Step 3a: TH reads from the DUT the FeatureMap attribute. and check - for either bit 0 or 1 set" - command: "readAttribute" - attribute: "FeatureMap" - response: - constraints: - type: bitmap32 - hasMasksSet: [0x03] - - - label: - "Step 3b: Given NDOCONC.S.F00(MEA) ensure featuremap has the correct - bit set" - command: "readAttribute" - attribute: "FeatureMap" - PICS: NDOCONC.S.F00 - response: - constraints: - type: bitmap32 - hasMasksSet: [0x1] - - - label: - "Step 3c: Given NDOCONC.S.F00(MEA) is not set, ensure featuremap has - the correct bit clear" - command: "readAttribute" - attribute: "FeatureMap" - PICS: " !NDOCONC.S.F00 " - response: - constraints: - type: bitmap32 - hasMasksClear: [0x1] - - - label: - "Step 3d: Given NDOCONC.S.F01(LEV) ensure featuremap has the correct - bit set" - command: "readAttribute" - attribute: "FeatureMap" - PICS: NDOCONC.S.F01 - response: - constraints: - type: bitmap32 - hasMasksSet: [0x2] - - - label: - "Step 3e: Given NDOCONC.S.F01(LEV) is not set, ensure featuremap has - the correct bit clear" - command: "readAttribute" - attribute: "FeatureMap" - PICS: " !NDOCONC.S.F01 " - response: - constraints: - type: bitmap32 - hasMasksClear: [0x2] - - - label: - "Step 3f: Given NDOCONC.S.F02(MED) ensure featuremap has the correct - bit set" - command: "readAttribute" - attribute: "FeatureMap" - PICS: NDOCONC.S.F02 && NDOCONC.S.F01 - response: - constraints: - type: bitmap32 - hasMasksSet: [0x4, 0x2] - - - label: - "Step 3g: Given NDOCONC.S.F02(MED) is not set, ensure featuremap has - the correct bit clear" - command: "readAttribute" - attribute: "FeatureMap" - PICS: " !NDOCONC.S.F02 && !NDOCONC.S.F01 " - response: - constraints: - type: bitmap32 - hasMasksClear: [0x4] - - - label: - "Step 3h: Given NDOCONC.S.F03(CRI) ensure featuremap has the correct - bits set" - command: "readAttribute" - attribute: "FeatureMap" - PICS: NDOCONC.S.F03 && NDOCONC.S.F01 - response: - constraints: - type: bitmap32 - hasMasksSet: [0x8, 0x2] - - - label: - "Step 3i: Given NDOCONC.S.F03(CRI) is not set, ensure featuremap has - the correct bit clear" - command: "readAttribute" - attribute: "FeatureMap" - PICS: " !NDOCONC.S.F03 && !NDOCONC.S.F01 " - response: - constraints: - type: bitmap32 - hasMasksClear: [0x8] - - - label: - "Step 3j: Given NDOCONC.S.F04(PEA) ensure featuremap has the correct - bits set" - command: "readAttribute" - attribute: "FeatureMap" - PICS: NDOCONC.S.F04 && NDOCONC.S.F00 - response: - constraints: - type: bitmap32 - hasMasksSet: [0x10, 0x1] - - - label: - "Step 3k: Given NDOCONC.S.F04(PEA) is not set, ensure featuremap has - the correct bit clear" - command: "readAttribute" - attribute: "FeatureMap" - PICS: " !NDOCONC.S.F04 && NDOCONC.S.F00 " - response: - constraints: - type: bitmap32 - hasMasksClear: [0x10] - - - label: - "Step 3l: Given NDOCONC.S.F05(AVG) ensure featuremap has the correct - bits set" - command: "readAttribute" - attribute: "FeatureMap" - PICS: NDOCONC.S.F05 && NDOCONC.S.F00 - response: - constraints: - type: bitmap32 - hasMasksSet: [0x20, 0x1] - - - label: - "Step 3m: Given NDOCONC.S.F05(AVG) is not set, ensure featuremap has - the correct bit clear" - command: "readAttribute" - attribute: "FeatureMap" - PICS: " !NDOCONC.S.F05 && !NDOCONC.S.F00" - response: - constraints: - type: bitmap32 - hasMasksClear: [0x20] - - - label: "Step 4a: TH reads from the DUT the AttributeList attribute." - command: "readAttribute" - attribute: "AttributeList" - PICS: PICS_EVENT_LIST_ENABLED - response: - constraints: - type: list - contains: [9, 65528, 65529, 65530, 65531, 65532, 65533] - - - label: "Step 4a: TH reads from the DUT the AttributeList attribute." - PICS: "!PICS_EVENT_LIST_ENABLED" - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [9, 65528, 65529, 65531, 65532, 65533] - - - label: - "Step 4b: TH reads the optional attribute Uncertainty in AttributeList" - command: "readAttribute" - attribute: "AttributeList" - PICS: NDOCONC.S.A0007 && NDOCONC.S.F00 - response: - constraints: - type: list - contains: [7] - - - label: - "Step 4c: Check the optional attribute Uncertainty is excluded from - AttributeList when NDOCONC.S.A0007 is not set" - command: "readAttribute" - attribute: "AttributeList" - PICS: " !NDOCONC.S.A0007 " - response: - constraints: - type: list - excludes: [7] - - - label: - "Step 4d: TH reads the optional, feature dependent attributes - MeasuredValue, MinMeasuredValue, MaxMeasuredValue and Measurement Unit - in AttributeList" - command: "readAttribute" - attribute: "AttributeList" - PICS: NDOCONC.S.F00 - response: - constraints: - type: list - contains: [0, 1, 2, 8] - - - label: - "Step 4e: Check that MeasuredValue, MinMeasuredValue, - MaxMeasuredValue, Measurement Unit and Uncertainty are excluded from - AttributeList when NDOCONC.S.F00 (MEA) is not set" - command: "readAttribute" - attribute: "AttributeList" - PICS: " !NDOCONC.S.F00 " - response: - constraints: - type: list - excludes: [0, 1, 2, 7, 8] - - - label: - "Step 4f: TH reads the optional, feature dependent attributes - PeakMeasuredValue & PeakMeasuredValueWindow in AttributeList" - command: "readAttribute" - attribute: "AttributeList" - PICS: NDOCONC.S.F04 - response: - constraints: - type: list - contains: [3, 4] - - - label: - "Step 4g: Check that PeakMeasuredValue & PeakMeasuredValueWindow are - excluded from AttributeList when NDOCONC.S.F04 (PEA) is not set" - command: "readAttribute" - attribute: "AttributeList" - PICS: " !NDOCONC.S.F04 " - response: - constraints: - type: list - excludes: [3, 4] - - - label: - "Step 4h: TH reads the optional, feature dependent attributes - AverageMeasuredValue AverageMeasuredValueWindow in AttributeList" - command: "readAttribute" - attribute: "AttributeList" - PICS: NDOCONC.S.F05 - response: - constraints: - type: list - contains: [5, 6] - - - label: - "Step 4i: TH reads that AverageMeasuredValue and - AverageMeasuredValueWindow are excluded from AttributeList when - NDOCONC.S.F05 (AVG) is not set" - command: "readAttribute" - attribute: "AttributeList" - PICS: " !NDOCONC.S.F05 " - response: - constraints: - type: list - excludes: [5, 6] - - - label: - "Step 4j: TH reads the optional, feature dependent attribute - LevelValue in AttributeList" - command: "readAttribute" - attribute: "AttributeList" - PICS: NDOCONC.S.F01 - response: - constraints: - type: list - contains: [10] - - - label: - "Step 4k: Check that LevelValue is excluded from AttributeList when - NDOCONC.S.F01 (LEV) is not set" - command: "readAttribute" - attribute: "AttributeList" - PICS: " !NDOCONC.S.F01 " - response: - constraints: - type: list - excludes: [10] - - - label: "Step 5: TH reads from the DUT the EventList attribute." - command: "readAttribute" - attribute: "EventList" - PICS: PICS_EVENT_LIST_ENABLED - response: - value: [] - constraints: - type: list - - - label: "Step 6: TH reads from the DUT the AcceptedCommandList attribute." - command: "readAttribute" - attribute: "AcceptedCommandList" - response: - value: [] - constraints: - type: list - - - label: "Step 7: TH reads from the DUT the GeneratedCommandList attribute." - command: "readAttribute" - attribute: "GeneratedCommandList" - response: - value: [] - constraints: - type: list diff --git a/src/app/tests/suites/certification/Test_TC_OZCONC_1_1.yaml b/src/app/tests/suites/certification/Test_TC_OZCONC_1_1.yaml deleted file mode 100644 index 25b6e3af2d0d57..00000000000000 --- a/src/app/tests/suites/certification/Test_TC_OZCONC_1_1.yaml +++ /dev/null @@ -1,339 +0,0 @@ -# Copyright (c) 2023 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: 145.1.1. [TC-OZCONC-1.1] Global Attributes with DUT as Server - -PICS: - - OZCONC.S - -config: - nodeId: 0x12344321 - cluster: "Ozone Concentration Measurement" - endpoint: 1 - -tests: - - label: - "Step 1: Commission DUT to TH (can be skipped if done in a preceding - test)." - cluster: "DelayCommands" - command: "WaitForCommissionee" - arguments: - values: - - name: "nodeId" - value: nodeId - - - label: "Step 2: TH reads from the DUT the ClusterRevision attribute." - command: "readAttribute" - attribute: "ClusterRevision" - response: - value: 3 - constraints: - type: int16u - - - label: - "Step 3a: TH reads from the DUT the FeatureMap attribute and check for - either bit 0 or 1 set" - command: "readAttribute" - attribute: "FeatureMap" - response: - constraints: - type: bitmap32 - hasMasksSet: [0x03] - - - label: - "Step 3b: Given OZCONC.S.F00(MEA) ensure featuremap has the correct - bit set" - command: "readAttribute" - attribute: "FeatureMap" - PICS: OZCONC.S.F00 - response: - constraints: - type: bitmap32 - hasMasksSet: [0x1] - - - label: - "Step 3c: Given OZCONC.S.F00(MEA) is not set, ensure featuremap has - the correct bit clear" - command: "readAttribute" - attribute: "FeatureMap" - PICS: " !OZCONC.S.F00 " - response: - constraints: - type: bitmap32 - hasMasksClear: [0x1] - - - label: - "Step 3d: Given OZCONC.S.F01(LEV) ensure featuremap has the correct - bit set" - command: "readAttribute" - attribute: "FeatureMap" - PICS: OZCONC.S.F01 - response: - constraints: - type: bitmap32 - hasMasksSet: [0x2] - - - label: - "Step 3e: Given OZCONC.S.F01(LEV) is not set, ensure featuremap has - the correct bit clear" - command: "readAttribute" - attribute: "FeatureMap" - PICS: " !OZCONC.S.F01 " - response: - constraints: - type: bitmap32 - hasMasksClear: [0x2] - - - label: - "Step 3f: Given OZCONC.S.F02(MED) ensure featuremap has the correct - bit set" - command: "readAttribute" - attribute: "FeatureMap" - PICS: OZCONC.S.F02 && OZCONC.S.F01 - response: - constraints: - type: bitmap32 - hasMasksSet: [0x4, 0x2] - - - label: - "Step 3g: Given OZCONC.S.F02(MED) is not set, ensure featuremap has - the correct bit clear" - command: "readAttribute" - attribute: "FeatureMap" - PICS: " !OZCONC.S.F02 && !OZCONC.S.F01" - response: - constraints: - type: bitmap32 - hasMasksClear: [0x4] - - - label: - "Step 3h: Given OZCONC.S.F03(CRI) ensure featuremap has the correct - bits set" - command: "readAttribute" - attribute: "FeatureMap" - PICS: OZCONC.S.F03 && OZCONC.S.F01 - response: - constraints: - type: bitmap32 - hasMasksSet: [0x8, 0x2] - - - label: - "Step 3i: Given OZCONC.S.F03(CRI) is not set, ensure featuremap has - the correct bit clear" - command: "readAttribute" - attribute: "FeatureMap" - PICS: " !OZCONC.S.F03 && !OZCONC.S.F01 " - response: - constraints: - type: bitmap32 - hasMasksClear: [0x8] - - - label: - "Step 3j: Given OZCONC.S.F04(PEA) ensure featuremap has the correct - bits set" - command: "readAttribute" - attribute: "FeatureMap" - PICS: OZCONC.S.F04 && OZCONC.S.F00 - response: - constraints: - type: bitmap32 - hasMasksSet: [0x10, 0x1] - - - label: - "Step 3k: Given OZCONC.S.F04(PEA) is not set, ensure featuremap has - the correct bit clear" - command: "readAttribute" - attribute: "FeatureMap" - PICS: " !OZCONC.S.F04 && !OZCONC.S.F00" - response: - constraints: - type: bitmap32 - hasMasksClear: [0x10] - - - label: - "Step 3l: Given OZCONC.S.F05(AVG) ensure featuremap has the correct - bits set" - command: "readAttribute" - attribute: "FeatureMap" - PICS: OZCONC.S.F05 && OZCONC.S.F00 - response: - constraints: - type: bitmap32 - hasMasksSet: [0x20, 0x1] - - - label: - "Step 3m: Given OZCONC.S.F05(AVG) is not set, ensure featuremap has - the correct bit clear" - command: "readAttribute" - attribute: "FeatureMap" - PICS: " !OZCONC.S.F05 && !OZCONC.S.F00 " - response: - constraints: - type: bitmap32 - hasMasksClear: [0x20] - - - label: "Step 4a: TH reads from the DUT the AttributeList attribute." - command: "readAttribute" - attribute: "AttributeList" - PICS: PICS_EVENT_LIST_ENABLED - response: - constraints: - type: list - contains: [9, 65528, 65529, 65530, 65531, 65532, 65533] - - - label: "Step 4a: TH reads from the DUT the AttributeList attribute." - command: "readAttribute" - attribute: "AttributeList" - PICS: "!PICS_EVENT_LIST_ENABLED" - response: - constraints: - type: list - contains: [9, 65528, 65529, 65531, 65532, 65533] - - - label: - "Step 4b: TH reads the optional attribute Uncertainty in AttributeList" - command: "readAttribute" - attribute: "AttributeList" - PICS: OZCONC.S.A0007 && OZCONC.S.F00 - response: - constraints: - type: list - contains: [7] - - - label: - "Step 4c: Check the optional attribute Uncertainty is excluded from - AttributeList when OZCONC.S.A0007 is not set" - command: "readAttribute" - attribute: "AttributeList" - PICS: " !OZCONC.S.A0007 " - response: - constraints: - type: list - excludes: [7] - - - label: - "Step 4d: TH reads the optional, feature dependent attributes - MeasuredValue, MinMeasuredValue, MaxMeasuredValue and Measurement Unit - in AttributeList" - command: "readAttribute" - attribute: "AttributeList" - PICS: OZCONC.S.F00 - response: - constraints: - type: list - contains: [0, 1, 2, 8] - - - label: - "Step 4e: Check that MeasuredValue, MinMeasuredValue, - MaxMeasuredValue, Measurement Unit and Uncertainty are excluded from - AttributeList when OZCONC.S.F00 (MEA) is not set" - command: "readAttribute" - attribute: "AttributeList" - PICS: " !OZCONC.S.F00 " - response: - constraints: - type: list - excludes: [0, 1, 2, 7, 8] - - - label: - "Step 4f: TH reads the optional, feature dependent attributes - PeakMeasuredValue & PeakMeasuredValueWindow in AttributeList" - command: "readAttribute" - attribute: "AttributeList" - PICS: OZCONC.S.F04 - response: - constraints: - type: list - contains: [3, 4] - - - label: - "Step 4g: Check that PeakMeasuredValue & PeakMeasuredValueWindow are - excluded from AttributeList when OZCONC.S.F04 (PEA) is not set" - command: "readAttribute" - attribute: "AttributeList" - PICS: " !OZCONC.S.F04 " - response: - constraints: - type: list - excludes: [3, 4] - - - label: - "Step 4h: TH reads the optional, feature dependent attributes - AverageMeasuredValue AverageMeasuredValueWindow in AttributeList" - command: "readAttribute" - attribute: "AttributeList" - PICS: OZCONC.S.F05 - response: - constraints: - type: list - contains: [5, 6] - - - label: - "Step 4i: Check that AverageMeasuredValue and - AverageMeasuredValueWindow are excluded from AttributeList when - OZCONC.S.F05 (AVG) is not set" - command: "readAttribute" - attribute: "AttributeList" - PICS: " !OZCONC.S.F05 " - response: - constraints: - type: list - excludes: [5, 6] - - - label: - "Step 4j: TH reads the optional, feature dependent attribute - LevelValue in AttributeList" - command: "readAttribute" - attribute: "AttributeList" - PICS: OZCONC.S.F01 - response: - constraints: - type: list - contains: [10] - - - label: - "Step 4k: Check that LevelValue is excluded from AttributeList when - OZCONC.S.F01 (LEV) is not set" - command: "readAttribute" - attribute: "AttributeList" - PICS: " !OZCONC.S.F01 " - response: - constraints: - type: list - excludes: [10] - - - label: "Step 5: TH reads from the DUT the EventList attribute." - command: "readAttribute" - attribute: "EventList" - PICS: PICS_EVENT_LIST_ENABLED - response: - value: [] - constraints: - type: list - - - label: "Step 6: TH reads from the DUT the AcceptedCommandList attribute." - command: "readAttribute" - attribute: "AcceptedCommandList" - response: - value: [] - constraints: - type: list - - - label: "Step 7: TH reads from the DUT the GeneratedCommandList attribute." - command: "readAttribute" - attribute: "GeneratedCommandList" - response: - value: [] - constraints: - type: list diff --git a/src/app/tests/suites/certification/Test_TC_PCC_1_1.yaml b/src/app/tests/suites/certification/Test_TC_PCC_1_1.yaml deleted file mode 100644 index d6f59700109714..00000000000000 --- a/src/app/tests/suites/certification/Test_TC_PCC_1_1.yaml +++ /dev/null @@ -1,555 +0,0 @@ -# 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: 15.1.1. [TC-PCC-1.1] Global attributes with server as DUT - -PICS: - - PCC.S - -config: - nodeId: 0x12344321 - cluster: "Pump Configuration and Control" - endpoint: 1 - -tests: - - label: "Step 1: Wait for the commissioned device to be retrieved" - cluster: "DelayCommands" - command: "WaitForCommissionee" - arguments: - values: - - name: "nodeId" - value: nodeId - - - label: "Step 2: TH reads the ClusterRevision attribute from the DUT" - command: "readAttribute" - attribute: "ClusterRevision" - response: - value: 4 - constraints: - type: int16u - - - label: "Step 3a: TH reads the FeatureMap attribute from the DUT" - PICS: - " !PCC.S.F00 && !PCC.S.F01 && !PCC.S.F02 && !PCC.S.F03 && !PCC.S.F04 - && !PCC.S.F05 && !PCC.S.F06 " - command: "readAttribute" - attribute: "FeatureMap" - response: - value: 0 - constraints: - type: bitmap32 - - - label: - "Step 3b: Given PCC.S.F00(PRSCONST) ensure featuremap has the correct - bit set" - PICS: PCC.S.F00 - command: "readAttribute" - attribute: "FeatureMap" - response: - constraints: - type: bitmap32 - hasMasksSet: [0x1] - - - label: - "Step 3c: Given PCC.S.F01(PRSCOMP) ensure featuremap has the correct - bit set" - PICS: PCC.S.F01 - command: "readAttribute" - attribute: "FeatureMap" - response: - constraints: - type: bitmap32 - hasMasksSet: [0x2] - - - label: - "Step 3d: Given PCC.S.F02(FLW) ensure featuremap has the correct bit - set" - PICS: PCC.S.F02 - command: "readAttribute" - attribute: "FeatureMap" - response: - constraints: - type: bitmap32 - hasMasksSet: [0x4] - - - label: - "Step 3e: Given PCC.S.F03(SPD) ensure featuremap has the correct bit - set" - PICS: PCC.S.F03 - command: "readAttribute" - attribute: "FeatureMap" - response: - constraints: - type: bitmap32 - hasMasksSet: [0x8] - - - label: - "Step 3f: Given PCC.S.F04(TEMP) ensure featuremap has the correct bit - set" - PICS: PCC.S.F04 - command: "readAttribute" - attribute: "FeatureMap" - response: - constraints: - type: bitmap32 - hasMasksSet: [0x10] - - - label: - "Step 3g: Given PCC.S.F05(AUTO) ensure featuremap has the correct bit - set" - PICS: PCC.S.F05 - command: "readAttribute" - attribute: "FeatureMap" - response: - constraints: - type: bitmap32 - hasMasksSet: [0x20] - - - label: - "Step 3h: Given PCC.S.F06(LOCAL) ensure featuremap has the correct bit - set" - PICS: PCC.S.F06 - command: "readAttribute" - attribute: "FeatureMap" - response: - constraints: - type: bitmap32 - hasMasksSet: [0x40] - - - label: "Step 4a: TH reads the AttributeList attribute from the DUT" - PICS: PICS_EVENT_LIST_ENABLED - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: - [ - 0, - 1, - 2, - 17, - 18, - 19, - 32, - 65528, - 65529, - 65530, - 65531, - 65532, - 65533, - ] - - - label: "Step 4a: TH reads the AttributeList attribute from the DUT" - PICS: "!PICS_EVENT_LIST_ENABLED" - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: - [0, 1, 2, 17, 18, 19, 32, 65528, 65529, 65531, 65532, 65533] - - - label: - "Step 4b: TH reads optional attribute(MinConstPressure) attribute in - AttributeList from the DUT" - PICS: PCC.S.A0003 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [3] - - - label: - "Step 4c TH reads optional attribute(MaxConstPressure) attribute in - AttributeList from the DUT" - PICS: PCC.S.A0004 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [4] - - - label: - "Step 4d: TH reads optional attribute(MinCompPressure) attribute in - AttributeList from the DUT" - PICS: PCC.S.A0005 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [5] - - - label: - "Step 4e: TH reads optional attribute(MaxCompPressure) attribute in - AttributeList from the DUT" - PICS: PCC.S.A0006 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [6] - - - label: - "Step 4f: TH reads optional attribute(MinConstSpeed) attribute in - AttributeList from the DUT" - PICS: PCC.S.A0007 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [7] - - - label: - "Step 4g: TH reads optional attribute(MaxConstSpeed) attribute in - AttributeList from the DUT" - PICS: PCC.S.A0008 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [8] - - - label: - "Step 4h: TH reads optional attribute(MinConstFlow) attribute in - AttributeList from the DUT" - PICS: PCC.S.A0009 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [9] - - - label: - "Step 4i: TH reads optional attribute(MaxConstFlow) attribute in - AttributeList from the DUT" - PICS: PCC.S.A000a - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [10] - - - label: - "Step 4j: TH reads optional attribute(MinConstTemp) attribute in - AttributeList from the DUT" - PICS: PCC.S.A000b - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [11] - - - label: - "Step 4k: TH reads optional attribute(MaxConstTemp) attribute in - AttributeList from the DUT" - PICS: PCC.S.A000c - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [12] - - - label: - "Step 4l: TH reads optional attribute(PumpStatus) attribute in - AttributeList from the DUT" - PICS: PCC.S.A0010 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [16] - - - label: - "Step 4m: TH reads optional attribute(Speed) attribute in - AttributeList from the DUT" - PICS: PCC.S.A0014 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [20] - - - label: - "Step 4n: TH reads optional attribute(LifetimeRunningHours) attribute - in AttributeList from the DUT" - PICS: PCC.S.A0015 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [21] - - - label: - "Step 4o: TH reads optional attribute(Power) attribute in - AttributeList from the DUT" - PICS: PCC.S.A0016 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [22] - - - label: - "Step 4p: TH reads optional attribute(LifetimeEnergyConsumed) - attribute in AttributeList from the DUT" - PICS: PCC.S.A0017 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [23] - - - label: - "Step 4q: TH reads optional attribute(ControlMode) attribute in - AttributeList from the DUT" - PICS: PCC.S.A0021 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [33] - - - label: "Step 5a: TH reads EventList from DUT" - PICS: - "PICS_EVENT_LIST_ENABLED && !PCC.S.E00 && !PCC.S.E01 && !PCC.S.E02 && - !PCC.S.E03 && !PCC.S.E04 && !PCC.S.E05 && !PCC.S.E06 && !PCC.S.E07 && - !PCC.S.E08 && !PCC.S.E09 && !PCC.S.E0a && !PCC.S.E0b && !PCC.S.E0c && - !PCC.S.E0d && !PCC.S.E0e && !PCC.S.E0f && !PCC.S.E10 " - command: "readAttribute" - attribute: "EventList" - response: - value: [] - constraints: - type: list - - - label: - "Step 5b: TH reads from the DUT the EventList optional - (SupplyVoltageLow)attribute." - PICS: PICS_EVENT_LIST_ENABLED && PCC.S.E00 - command: "readAttribute" - attribute: "EventList" - response: - constraints: - type: list - contains: [0x00] - - - label: - "Step 5c: TH reads from the DUT the EventList optional - (SupplyVoltageHigh)attribute." - PICS: PICS_EVENT_LIST_ENABLED && PCC.S.E01 - command: "readAttribute" - attribute: "EventList" - response: - constraints: - type: list - contains: [0x01] - - - label: - "Step 5d: TH reads from the DUT the EventList optional - (PowerMissingPhase)attribute." - PICS: PICS_EVENT_LIST_ENABLED && PCC.S.E02 - command: "readAttribute" - attribute: "EventList" - response: - constraints: - type: list - contains: [0x02] - - - label: - "Step 5e: TH reads from the DUT the EventList optional - (SystemPressureLow)attribute." - PICS: PICS_EVENT_LIST_ENABLED && PCC.S.E03 - command: "readAttribute" - attribute: "EventList" - response: - constraints: - type: list - contains: [0x03] - - - label: - "Step 5f: TH reads from the DUT the EventList optional - (SystemPressureHigh)attribute." - PICS: PICS_EVENT_LIST_ENABLED && PCC.S.E04 - command: "readAttribute" - attribute: "EventList" - response: - constraints: - type: list - contains: [0x04] - - - label: - "Step 5g: TH reads from the DUT the EventList optional - (DryRunning)attribute." - PICS: PICS_EVENT_LIST_ENABLED && PCC.S.E05 - command: "readAttribute" - attribute: "EventList" - response: - constraints: - type: list - contains: [0x05] - - - label: - "Step 5h: TH reads from the DUT the EventList optional - (MotorTemperatureHigh)attribute." - PICS: PICS_EVENT_LIST_ENABLED && PCC.S.E06 - command: "readAttribute" - attribute: "EventList" - response: - constraints: - type: list - contains: [0x06] - - - label: - "Step 5i: TH reads from the DUT the EventList optional - (PumpMotorFatalFailure)attribute." - PICS: PICS_EVENT_LIST_ENABLED && PCC.S.E07 - command: "readAttribute" - attribute: "EventList" - response: - constraints: - type: list - contains: [0x07] - - - label: - "Step 5j: TH reads from the DUT the EventList optional - (ElectronicTemperatureHigh)attribute." - PICS: PICS_EVENT_LIST_ENABLED && PCC.S.E08 - command: "readAttribute" - attribute: "EventList" - response: - constraints: - type: list - contains: [0x08] - - - label: - "Step 5k: TH reads from the DUT the EventList optional - (PumpBlocked)attribute." - PICS: PICS_EVENT_LIST_ENABLED && PCC.S.E09 - command: "readAttribute" - attribute: "EventList" - response: - constraints: - type: list - contains: [0x09] - - - label: - "Step 5l: TH reads from the DUT the EventList optional - (SensorFailure)attribute." - PICS: PICS_EVENT_LIST_ENABLED && PCC.S.E0a - command: "readAttribute" - attribute: "EventList" - response: - constraints: - type: list - contains: [0x0a] - - - label: - "Step 5m: TH reads from the DUT the EventList optional - (ElectronicNonFatalFailure)attribute." - PICS: PICS_EVENT_LIST_ENABLED && PCC.S.E0b - command: "readAttribute" - attribute: "EventList" - response: - constraints: - type: list - contains: [0x0b] - - - label: - "Step 5n: TH reads from the DUT the EventList optional - (ElectronicFatalFailure)attribute." - PICS: PICS_EVENT_LIST_ENABLED && PCC.S.E0c - command: "readAttribute" - attribute: "EventList" - response: - constraints: - type: list - contains: [0x0c] - - - label: - "Step 5o: TH reads from the DUT the EventList optional - (GeneralFault)attribute." - PICS: PICS_EVENT_LIST_ENABLED && PCC.S.E0d - command: "readAttribute" - attribute: "EventList" - response: - constraints: - type: list - contains: [0x0d] - - - label: - "Step 5p: TH reads from the DUT the EventList optional - (Leakage)attribute." - PICS: PICS_EVENT_LIST_ENABLED && PCC.S.E0e - command: "readAttribute" - attribute: "EventList" - response: - constraints: - type: list - contains: [0x0e] - - - label: - "Step 5q: TH reads from the DUT the EventList optional - (AirDetection)attribute." - PICS: PICS_EVENT_LIST_ENABLED && PCC.S.E0f - command: "readAttribute" - attribute: "EventList" - response: - constraints: - type: list - contains: [0x0f] - - - label: - "Step 5r: TH reads from the DUT the EventList optional - (TurbineOperation)attribute." - PICS: PICS_EVENT_LIST_ENABLED && PCC.S.E10 - command: "readAttribute" - attribute: "EventList" - response: - constraints: - type: list - contains: [0x10] - - - label: "Step 6: TH reads from the DUT the AcceptedCommandList attribute." - command: "readAttribute" - attribute: "AcceptedCommandList" - response: - value: [] - constraints: - type: list - - - label: - "Step 7: TH reads from the DUT the GeneratedCommandList attribute." - command: "readAttribute" - attribute: "GeneratedCommandList" - response: - value: [] - constraints: - type: list diff --git a/src/app/tests/suites/certification/Test_TC_PMHCONC_1_1.yaml b/src/app/tests/suites/certification/Test_TC_PMHCONC_1_1.yaml deleted file mode 100644 index 9bbd216e6b1271..00000000000000 --- a/src/app/tests/suites/certification/Test_TC_PMHCONC_1_1.yaml +++ /dev/null @@ -1,336 +0,0 @@ -# Copyright (c) 2023 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: 145.1.1. [TC-PMHCONC-1.1] Global Attributes with DUT as Server - -PICS: - - PMHCONC.S - -config: - nodeId: 0x12344321 - cluster: "PM1 Concentration Measurement" - endpoint: 1 - -tests: - - label: "Step 1: Wait for the commissioned device to be retrieved" - cluster: "DelayCommands" - command: "WaitForCommissionee" - arguments: - values: - - name: "nodeId" - value: nodeId - - - label: "Step 2: Read the global attribute: ClusterRevision" - command: "readAttribute" - attribute: "ClusterRevision" - response: - value: 3 - constraints: - type: int16u - - - label: - "Step 3a: Read the global attribute: FeatureMap and check for either - bit 0 or 1 set" - command: "readAttribute" - attribute: "FeatureMap" - response: - constraints: - type: bitmap32 - hasMasksSet: [0x03] - - - label: - "Step 3b: Given PMHCONC.S.F00(MEA) ensure featuremap has the correct - bit set" - command: "readAttribute" - attribute: "FeatureMap" - PICS: PMHCONC.S.F00 - response: - constraints: - type: bitmap32 - hasMasksSet: [0x1] - - - label: - "Step 3c: Given PMHCONC.S.F00(MEA) is not set, ensure featuremap has - the correct bit clear" - command: "readAttribute" - attribute: "FeatureMap" - PICS: " !PMHCONC.S.F00 " - response: - constraints: - type: bitmap32 - hasMasksClear: [0x1] - - - label: - "Step 3d: Given PMHCONC.S.F01(LEV) ensure featuremap has the correct - bit set" - command: "readAttribute" - attribute: "FeatureMap" - PICS: PMHCONC.S.F01 - response: - constraints: - type: bitmap32 - hasMasksSet: [0x2] - - - label: - "Step 3e: Given PMHCONC.S.F01(LEV) is not set, ensure featuremap has - the correct bit clear" - command: "readAttribute" - attribute: "FeatureMap" - PICS: " !PMHCONC.S.F01 " - response: - constraints: - type: bitmap32 - hasMasksClear: [0x2] - - - label: - "Step 3f: Given PMHCONC.S.F02(MED) ensure featuremap has the correct - bit set" - command: "readAttribute" - attribute: "FeatureMap" - PICS: PMHCONC.S.F02 && PMHCONC.S.F01 - response: - constraints: - type: bitmap32 - hasMasksSet: [0x4, 0x2] - - - label: - "Step 3g: Given PMHCONC.S.F02(MED) is not set, ensure featuremap has - the correct bit clear" - command: "readAttribute" - attribute: "FeatureMap" - PICS: " !PMHCONC.S.F02 && !PMHCONC.S.F01" - response: - constraints: - type: bitmap32 - hasMasksClear: [0x4] - - - label: - "Step 3h: Given PMHCONC.S.F03(CRI) ensure featuremap has the correct - bits set" - command: "readAttribute" - attribute: "FeatureMap" - PICS: PMHCONC.S.F03 && PMHCONC.S.F01 - response: - constraints: - type: bitmap32 - hasMasksSet: [0x8, 0x2] - - - label: - "Step 3i: Given PMHCONC.S.F03(CRI) is not set, ensure featuremap has - the correct bit clear" - command: "readAttribute" - attribute: "FeatureMap" - PICS: " !PMHCONC.S.F03 && !PMHCONC.S.F01 " - response: - constraints: - type: bitmap32 - hasMasksClear: [0x8] - - - label: - "Step 3j: Given PMHCONC.S.F04(PEA) ensure featuremap has the correct - bits set" - command: "readAttribute" - attribute: "FeatureMap" - PICS: PMHCONC.S.F04 && PMHCONC.S.F00 - response: - constraints: - type: bitmap32 - hasMasksSet: [0x10, 0x1] - - - label: - "Step 3k: Given PMHCONC.S.F04(PEA) is not set, ensure featuremap has - the correct bit clear" - command: "readAttribute" - attribute: "FeatureMap" - PICS: " !PMHCONC.S.F04 && PMHCONC.S.F00 " - response: - constraints: - type: bitmap32 - hasMasksClear: [0x10] - - - label: - "Step 3l: Given PMHCONC.S.F05(AVG) ensure featuremap has the correct - bits set" - command: "readAttribute" - attribute: "FeatureMap" - PICS: PMHCONC.S.F05 && PMHCONC.S.F00 - response: - constraints: - type: bitmap32 - hasMasksSet: [0x20, 0x1] - - - label: - "Step 3m: Given PMHCONC.S.F05(AVG) is not set, ensure featuremap has - the correct bit clear" - command: "readAttribute" - attribute: "FeatureMap" - PICS: " !PMHCONC.S.F05 && !PMHCONC.S.F00" - response: - constraints: - type: bitmap32 - hasMasksClear: [0x20] - - - label: "Step 4a: Read the global attribute: AttributeList" - command: "readAttribute" - attribute: "AttributeList" - PICS: PICS_EVENT_LIST_ENABLED - response: - constraints: - type: list - contains: [9, 65528, 65529, 65530, 65531, 65532, 65533] - - - label: "Step 4a: Read the global attribute: AttributeList" - command: "readAttribute" - attribute: "AttributeList" - PICS: "!PICS_EVENT_LIST_ENABLED" - response: - constraints: - type: list - contains: [9, 65528, 65529, 65531, 65532, 65533] - - - label: "Step 4b: Read the optional attribute Uncertainty in AttributeList" - command: "readAttribute" - attribute: "AttributeList" - PICS: PMHCONC.S.A0007 && PMHCONC.S.F00 - response: - constraints: - type: list - contains: [7] - - - label: - "Step 4c: Check the optional attribute Uncertainty is excluded from - AttributeList when PMHCONC.S.A0007 is not set" - command: "readAttribute" - attribute: "AttributeList" - PICS: " !PMHCONC.S.A0007 " - response: - constraints: - type: list - excludes: [7] - - - label: - "Step 4d: Read the optional, feature dependent attributes - MeasuredValue, MinMeasuredValue, MaxMeasuredValue and Measurement Unit - in AttributeList" - command: "readAttribute" - attribute: "AttributeList" - PICS: PMHCONC.S.F00 - response: - constraints: - type: list - contains: [0, 1, 2, 8] - - - label: - "Step 4e: Check that MeasuredValue, MinMeasuredValue, - MaxMeasuredValue, Measurement Unit and Uncertainty are excluded from - AttributeList when PMHCONC.S.F00 (MEA) is not set" - command: "readAttribute" - attribute: "AttributeList" - PICS: " !PMHCONC.S.F00 " - response: - constraints: - type: list - excludes: [0, 1, 2, 7, 8] - - - label: - "Step 4f: Read the optional, feature dependent attributes - PeakMeasuredValue & PeakMeasuredValueWindow in AttributeList" - command: "readAttribute" - attribute: "AttributeList" - PICS: PMHCONC.S.F04 - response: - constraints: - type: list - contains: [3, 4] - - - label: - "Step 4g: Check that PeakMeasuredValue & PeakMeasuredValueWindow are - excluded from AttributeList when PMHCONC.S.F04 (PEA) is not set" - command: "readAttribute" - attribute: "AttributeList" - PICS: " !PMHCONC.S.F04 " - response: - constraints: - type: list - excludes: [3, 4] - - - label: - "Step 4h: Read the optional, feature dependent attributes - AverageMeasuredValue AverageMeasuredValueWindow in AttributeList" - command: "readAttribute" - attribute: "AttributeList" - PICS: PMHCONC.S.F05 - response: - constraints: - type: list - contains: [5, 6] - - - label: - "Step 4i: Check that AverageMeasuredValue and - AverageMeasuredValueWindow are excluded from AttributeList when - PMHCONC.S.F05 (AVG) is not set" - command: "readAttribute" - attribute: "AttributeList" - PICS: " !PMHCONC.S.F05 " - response: - constraints: - type: list - excludes: [5, 6] - - - label: - "Step 4j: Read the optional, feature dependent attribute LevelValue in - AttributeList" - command: "readAttribute" - attribute: "AttributeList" - PICS: PMHCONC.S.F01 - response: - constraints: - type: list - contains: [10] - - - label: - "Step 4k: Check that LevelValue is excluded from AttributeList when - PMHCONC.S.F01 (LEV) is not set" - command: "readAttribute" - attribute: "AttributeList" - PICS: " !PMHCONC.S.F01 " - response: - constraints: - type: list - excludes: [10] - - - label: "Step 5: Read the global attribute: EventList" - command: "readAttribute" - attribute: "EventList" - PICS: PICS_EVENT_LIST_ENABLED - response: - value: [] - constraints: - type: list - - - label: "Step 6: Read the global attribute: AcceptedCommandList" - command: "readAttribute" - attribute: "AcceptedCommandList" - response: - value: [] - constraints: - type: list - - - label: "Step 7: Read the global attribute: GeneratedCommandList" - command: "readAttribute" - attribute: "GeneratedCommandList" - response: - value: [] - constraints: - type: list diff --git a/src/app/tests/suites/certification/Test_TC_PMICONC_1_1.yaml b/src/app/tests/suites/certification/Test_TC_PMICONC_1_1.yaml deleted file mode 100644 index 57d14f10ca068e..00000000000000 --- a/src/app/tests/suites/certification/Test_TC_PMICONC_1_1.yaml +++ /dev/null @@ -1,336 +0,0 @@ -# Copyright (c) 2023 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: 145.1.1. [TC-PMICONC-1.1] Global Attributes with DUT as Server - -PICS: - - PMICONC.S - -config: - nodeId: 0x12344321 - cluster: "PM2.5 Concentration Measurement" - endpoint: 1 - -tests: - - label: "Step 1: Wait for the commissioned device to be retrieved" - cluster: "DelayCommands" - command: "WaitForCommissionee" - arguments: - values: - - name: "nodeId" - value: nodeId - - - label: "Step 2: Read the global attribute: ClusterRevision" - command: "readAttribute" - attribute: "ClusterRevision" - response: - value: 3 - constraints: - type: int16u - - - label: - "Step 3a: Read the global attribute: FeatureMap and check for either - bit 0 or 1 set" - command: "readAttribute" - attribute: "FeatureMap" - response: - constraints: - type: bitmap32 - hasMasksSet: [0x03] - - - label: - "Step 3b: Given PMICONC.S.F00(MEA) ensure featuremap has the correct - bit set" - command: "readAttribute" - attribute: "FeatureMap" - PICS: PMICONC.S.F00 - response: - constraints: - type: bitmap32 - hasMasksSet: [0x1] - - - label: - "Step 3c: Given PMICONC.S.F00(MEA) is not set, ensure featuremap has - the correct bit clear" - command: "readAttribute" - attribute: "FeatureMap" - PICS: " !PMICONC.S.F00 " - response: - constraints: - type: bitmap32 - hasMasksClear: [0x1] - - - label: - "Step 3d: Given PMICONC.S.F01(LEV) ensure featuremap has the correct - bit set" - command: "readAttribute" - attribute: "FeatureMap" - PICS: PMICONC.S.F01 - response: - constraints: - type: bitmap32 - hasMasksSet: [0x2] - - - label: - "Step 3e: Given PMICONC.S.F01(LEV) is not set, ensure featuremap has - the correct bit clear" - command: "readAttribute" - attribute: "FeatureMap" - PICS: " !PMICONC.S.F01 " - response: - constraints: - type: bitmap32 - hasMasksClear: [0x2] - - - label: - "Step 3f: Given PMICONC.S.F02(MED) ensure featuremap has the correct - bit set" - command: "readAttribute" - attribute: "FeatureMap" - PICS: PMICONC.S.F02 && PMICONC.S.F01 - response: - constraints: - type: bitmap32 - hasMasksSet: [0x4, 0x2] - - - label: - "Step 3g: Given PMICONC.S.F02(MED) is not set, ensure featuremap has - the correct bit clear" - command: "readAttribute" - attribute: "FeatureMap" - PICS: " !PMICONC.S.F02 && !PMICONC.S.F01" - response: - constraints: - type: bitmap32 - hasMasksClear: [0x4] - - - label: - "Step 3h: Given PMICONC.S.F03(CRI) ensure featuremap has the correct - bits set" - command: "readAttribute" - attribute: "FeatureMap" - PICS: PMICONC.S.F03 && PMICONC.S.F01 - response: - constraints: - type: bitmap32 - hasMasksSet: [0x8, 0x2] - - - label: - "Step 3i: Given PMICONC.S.F03(CRI) is not set, ensure featuremap has - the correct bit clear" - command: "readAttribute" - attribute: "FeatureMap" - PICS: " !PMICONC.S.F03 && !PMICONC.S.F01" - response: - constraints: - type: bitmap32 - hasMasksClear: [0x8] - - - label: - "Step 3j: Given PMICONC.S.F04(PEA) ensure featuremap has the correct - bits set" - command: "readAttribute" - attribute: "FeatureMap" - PICS: PMICONC.S.F04 && PMICONC.S.F00 - response: - constraints: - type: bitmap32 - hasMasksSet: [0x10, 0x1] - - - label: - "Step 3k: Given PMICONC.S.F04(PEA) is not set, ensure featuremap has - the correct bit clear" - command: "readAttribute" - attribute: "FeatureMap" - PICS: " !PMICONC.S.F04 && !PMICONC.S.F00 " - response: - constraints: - type: bitmap32 - hasMasksClear: [0x10] - - - label: - "Step 3l: Given PMICONC.S.F05(AVG) ensure featuremap has the correct - bits set" - command: "readAttribute" - attribute: "FeatureMap" - PICS: PMICONC.S.F05 && PMICONC.S.F00 - response: - constraints: - type: bitmap32 - hasMasksSet: [0x20, 0x1] - - - label: - "Step 3m: Given PMICONC.S.F05(AVG) is not set, ensure featuremap has - the correct bit clear" - command: "readAttribute" - attribute: "FeatureMap" - PICS: " !PMICONC.S.F05 && !PMICONC.S.F00" - response: - constraints: - type: bitmap32 - hasMasksClear: [0x20] - - - label: "Step 4a: Read the global attribute: AttributeList" - command: "readAttribute" - attribute: "AttributeList" - PICS: PICS_EVENT_LIST_ENABLED - response: - constraints: - type: list - contains: [9, 65528, 65529, 65530, 65531, 65532, 65533] - - - label: "Step 4a: Read the global attribute: AttributeList" - command: "readAttribute" - attribute: "AttributeList" - PICS: "!PICS_EVENT_LIST_ENABLED" - response: - constraints: - type: list - contains: [9, 65528, 65529, 65531, 65532, 65533] - - - label: "Step 4b: Read the optional attribute Uncertainty in AttributeList" - command: "readAttribute" - attribute: "AttributeList" - PICS: PMICONC.S.A0007 && PMICONC.S.F00 - response: - constraints: - type: list - contains: [7] - - - label: - "Step 4c: Check the optional attribute Uncertainty is excluded from - AttributeList when PMICONC.S.A0007 is not set" - command: "readAttribute" - attribute: "AttributeList" - PICS: " !PMICONC.S.A0007 " - response: - constraints: - type: list - excludes: [7] - - - label: - "Step 4d: Read the optional, feature dependent attributes - MeasuredValue, MinMeasuredValue, MaxMeasuredValue and Measurement Unit - in AttributeList" - command: "readAttribute" - attribute: "AttributeList" - PICS: PMICONC.S.F00 - response: - constraints: - type: list - contains: [0, 1, 2, 8] - - - label: - "Step 4e: Check that MeasuredValue, MinMeasuredValue, - MaxMeasuredValue, Measurement Unit and Uncertainty are excluded from - AttributeList when PMICONC.S.F00 (MEA) is not set" - command: "readAttribute" - attribute: "AttributeList" - PICS: " !PMICONC.S.F00 " - response: - constraints: - type: list - excludes: [0, 1, 2, 7, 8] - - - label: - "Step 4f: Read the optional, feature dependent attributes - PeakMeasuredValue & PeakMeasuredValueWindow in AttributeList" - command: "readAttribute" - attribute: "AttributeList" - PICS: PMICONC.S.F04 - response: - constraints: - type: list - contains: [3, 4] - - - label: - "Step 4g: Check that PeakMeasuredValue & PeakMeasuredValueWindow are - excluded from AttributeList when PMICONC.S.F04 (PEA) is not set" - command: "readAttribute" - attribute: "AttributeList" - PICS: " !PMICONC.S.F04 " - response: - constraints: - type: list - excludes: [3, 4] - - - label: - "Step 4h: Read the optional, feature dependent attributes - AverageMeasuredValue AverageMeasuredValueWindow in AttributeList" - command: "readAttribute" - attribute: "AttributeList" - PICS: PMICONC.S.F05 - response: - constraints: - type: list - contains: [5, 6] - - - label: - "Step 4i: Check that AverageMeasuredValue and - AverageMeasuredValueWindow are excluded from AttributeList when - PMICONC.S.F05 (AVG) is not set" - command: "readAttribute" - attribute: "AttributeList" - PICS: " !PMICONC.S.F05 " - response: - constraints: - type: list - excludes: [5, 6] - - - label: - "Step 4j: Read the optional, feature dependent attribute LevelValue in - AttributeList" - command: "readAttribute" - attribute: "AttributeList" - PICS: PMICONC.S.F01 - response: - constraints: - type: list - contains: [10] - - - label: - "Step 4k: Check that LevelValue is excluded from AttributeList when - PMICONC.S.F01 (LEV) is not set" - command: "readAttribute" - attribute: "AttributeList" - PICS: " !PMICONC.S.F01 " - response: - constraints: - type: list - excludes: [10] - - - label: "Step 5: Read the global attribute: EventList" - command: "readAttribute" - attribute: "EventList" - PICS: PICS_EVENT_LIST_ENABLED - response: - value: [] - constraints: - type: list - - - label: "Step 6: Read the global attribute: AcceptedCommandList" - command: "readAttribute" - attribute: "AcceptedCommandList" - response: - value: [] - constraints: - type: list - - - label: "Step 7: Read the global attribute: GeneratedCommandList" - command: "readAttribute" - attribute: "GeneratedCommandList" - response: - value: [] - constraints: - type: list diff --git a/src/app/tests/suites/certification/Test_TC_PMKCONC_1_1.yaml b/src/app/tests/suites/certification/Test_TC_PMKCONC_1_1.yaml deleted file mode 100644 index 26c5797b17288d..00000000000000 --- a/src/app/tests/suites/certification/Test_TC_PMKCONC_1_1.yaml +++ /dev/null @@ -1,336 +0,0 @@ -# Copyright (c) 2023 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: 145.1.1. [TC-PMKCONC-1.1] Global Attributes with DUT as Server - -PICS: - - PMKCONC.S - -config: - nodeId: 0x12344321 - cluster: "PM10 Concentration Measurement" - endpoint: 1 - -tests: - - label: "Step 1: Wait for the commissioned device to be retrieved" - cluster: "DelayCommands" - command: "WaitForCommissionee" - arguments: - values: - - name: "nodeId" - value: nodeId - - - label: "Step 2: Read the global attribute: ClusterRevision" - command: "readAttribute" - attribute: "ClusterRevision" - response: - value: 3 - constraints: - type: int16u - - - label: - "Step 3a: Read the global attribute: FeatureMap and check for either - bit 0 or 1 set" - command: "readAttribute" - attribute: "FeatureMap" - response: - constraints: - type: bitmap32 - hasMasksSet: [0x03] - - - label: - "Step 3b: Given PMKCONC.S.F00(MEA) ensure featuremap has the correct - bit set" - command: "readAttribute" - attribute: "FeatureMap" - PICS: PMKCONC.S.F00 - response: - constraints: - type: bitmap32 - hasMasksSet: [0x1] - - - label: - "Step 3c: Given PMKCONC.S.F00(MEA) is not set, ensure featuremap has - the correct bit clear" - command: "readAttribute" - attribute: "FeatureMap" - PICS: " !PMKCONC.S.F00 " - response: - constraints: - type: bitmap32 - hasMasksClear: [0x1] - - - label: - "Step 3d: Given PMKCONC.S.F01(LEV) ensure featuremap has the correct - bit set" - command: "readAttribute" - attribute: "FeatureMap" - PICS: PMKCONC.S.F01 - response: - constraints: - type: bitmap32 - hasMasksSet: [0x2] - - - label: - "Step 3e: Given PMKCONC.S.F01(LEV) is not set, ensure featuremap has - the correct bit clear" - command: "readAttribute" - attribute: "FeatureMap" - PICS: " !PMKCONC.S.F01 " - response: - constraints: - type: bitmap32 - hasMasksClear: [0x2] - - - label: - "Step 3f: Given PMKCONC.S.F02(MED) ensure featuremap has the correct - bit set" - command: "readAttribute" - attribute: "FeatureMap" - PICS: PMKCONC.S.F02 && PMKCONC.S.F01 - response: - constraints: - type: bitmap32 - hasMasksSet: [0x4, 0x2] - - - label: - "Step 3g: Given PMKCONC.S.F02(MED) is not set, ensure featuremap has - the correct bit clear" - command: "readAttribute" - attribute: "FeatureMap" - PICS: " !PMKCONC.S.F02 && !PMKCONC.S.F01 " - response: - constraints: - type: bitmap32 - hasMasksClear: [0x4] - - - label: - "Step 3h: Given PMKCONC.S.F03(CRI) ensure featuremap has the correct - bits set" - command: "readAttribute" - attribute: "FeatureMap" - PICS: PMKCONC.S.F03 && PMKCONC.S.F01 - response: - constraints: - type: bitmap32 - hasMasksSet: [0x8, 0x2] - - - label: - "Step 3i: Given PMKCONC.S.F03(CRI) is not set, ensure featuremap has - the correct bit clear" - command: "readAttribute" - attribute: "FeatureMap" - PICS: " !PMKCONC.S.F03 && !PMKCONC.S.F01" - response: - constraints: - type: bitmap32 - hasMasksClear: [0x8] - - - label: - "Step 3j: Given PMKCONC.S.F04(PEA) ensure featuremap has the correct - bits set" - command: "readAttribute" - attribute: "FeatureMap" - PICS: PMKCONC.S.F04 && PMKCONC.S.F00 - response: - constraints: - type: bitmap32 - hasMasksSet: [0x10, 0x1] - - - label: - "Step 3k: Given PMKCONC.S.F04(PEA) is not set, ensure featuremap has - the correct bit clear" - command: "readAttribute" - attribute: "FeatureMap" - PICS: " !PMKCONC.S.F04 && !PMKCONC.S.F00 " - response: - constraints: - type: bitmap32 - hasMasksClear: [0x10] - - - label: - "Step 3l: Given PMKCONC.S.F05(AVG) ensure featuremap has the correct - bits set" - command: "readAttribute" - attribute: "FeatureMap" - PICS: PMKCONC.S.F05 && PMKCONC.S.F00 - response: - constraints: - type: bitmap32 - hasMasksSet: [0x20, 0x1] - - - label: - "Step 3m: Given PMKCONC.S.F05(AVG) is not set, ensure featuremap has - the correct bit clear" - command: "readAttribute" - attribute: "FeatureMap" - PICS: " !PMKCONC.S.F05 && !PMKCONC.S.F00" - response: - constraints: - type: bitmap32 - hasMasksClear: [0x20] - - - label: "Step 4a: Read the global attribute: AttributeList" - command: "readAttribute" - attribute: "AttributeList" - PICS: PICS_EVENT_LIST_ENABLED - response: - constraints: - type: list - contains: [9, 65528, 65529, 65530, 65531, 65532, 65533] - - - label: "Step 4a: Read the global attribute: AttributeList" - command: "readAttribute" - attribute: "AttributeList" - PICS: "!PICS_EVENT_LIST_ENABLED" - response: - constraints: - type: list - contains: [9, 65528, 65529, 65531, 65532, 65533] - - - label: "Step 4b: Read the optional attribute Uncertainty in AttributeList" - command: "readAttribute" - attribute: "AttributeList" - PICS: PMKCONC.S.A0007 && PMKCONC.S.F00 - response: - constraints: - type: list - contains: [7] - - - label: - "Step 4c: Check the optional attribute Uncertainty is excluded from - AttributeList when PMKCONC.S.A0007 is not set" - command: "readAttribute" - attribute: "AttributeList" - PICS: " !PMKCONC.S.A0007 " - response: - constraints: - type: list - excludes: [7] - - - label: - "Step 4d: Read the optional, feature dependent attributes - MeasuredValue, MinMeasuredValue, MaxMeasuredValue and Measurement Unit - in AttributeList" - command: "readAttribute" - attribute: "AttributeList" - PICS: PMKCONC.S.F00 - response: - constraints: - type: list - contains: [0, 1, 2, 8] - - - label: - "Step 4e: Check that MeasuredValue, MinMeasuredValue, - MaxMeasuredValue, Measurement Unit and Uncertainty are excluded from - AttributeList when PMKCONC.S.F00 (MEA) is not set" - command: "readAttribute" - attribute: "AttributeList" - PICS: " !PMKCONC.S.F00 " - response: - constraints: - type: list - excludes: [0, 1, 2, 7, 8] - - - label: - "Step 4f: Read the optional, feature dependent attributes - PeakMeasuredValue & PeakMeasuredValueWindow in AttributeList" - command: "readAttribute" - attribute: "AttributeList" - PICS: PMKCONC.S.F04 - response: - constraints: - type: list - contains: [3, 4] - - - label: - "Step 4g: Check that PeakMeasuredValue & PeakMeasuredValueWindow are - excluded from AttributeList when PMKCONC.S.F04 (PEA) is not set" - command: "readAttribute" - attribute: "AttributeList" - PICS: " !PMKCONC.S.F04 " - response: - constraints: - type: list - excludes: [3, 4] - - - label: - "Step 4h: Read the optional, feature dependent attributes - AverageMeasuredValue AverageMeasuredValueWindow in AttributeList" - command: "readAttribute" - attribute: "AttributeList" - PICS: PMKCONC.S.F05 - response: - constraints: - type: list - contains: [5, 6] - - - label: - "Step 4i: Check that AverageMeasuredValue and - AverageMeasuredValueWindow are excluded from AttributeList when - PMKCONC.S.F05 (AVG) is not set" - command: "readAttribute" - attribute: "AttributeList" - PICS: " !PMKCONC.S.F05 " - response: - constraints: - type: list - excludes: [5, 6] - - - label: - "Step 4j: Read the optional, feature dependent attribute LevelValue in - AttributeList" - command: "readAttribute" - attribute: "AttributeList" - PICS: PMKCONC.S.F01 - response: - constraints: - type: list - contains: [10] - - - label: - "Step 4k: Check that LevelValue is excluded from AttributeList when - PMKCONC.S.F01 (LEV) is not set" - command: "readAttribute" - attribute: "AttributeList" - PICS: " !PMKCONC.S.F01 " - response: - constraints: - type: list - excludes: [10] - - - label: "Step 5: Read the global attribute: EventList" - command: "readAttribute" - attribute: "EventList" - PICS: PICS_EVENT_LIST_ENABLED - response: - value: [] - constraints: - type: list - - - label: "Step 6: Read the global attribute: AcceptedCommandList" - command: "readAttribute" - attribute: "AcceptedCommandList" - response: - value: [] - constraints: - type: list - - - label: "Step 7: Read the global attribute: GeneratedCommandList" - command: "readAttribute" - attribute: "GeneratedCommandList" - response: - value: [] - constraints: - type: list diff --git a/src/app/tests/suites/certification/Test_TC_PWRTL_1_1.yaml b/src/app/tests/suites/certification/Test_TC_PWRTL_1_1.yaml deleted file mode 100644 index 5d64bedf47ebb3..00000000000000 --- a/src/app/tests/suites/certification/Test_TC_PWRTL_1_1.yaml +++ /dev/null @@ -1,143 +0,0 @@ -# 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: 44.1.1. [TC-PWRTL-1.1] Global Attributes with DUT as Server - -PICS: - - PWRTL.S - -config: - nodeId: 0x12344321 - cluster: "Power Topology" - endpoint: 1 - -tests: - - label: "Step 1: Wait for the commissioned device to be retrieved" - cluster: "DelayCommands" - command: "WaitForCommissionee" - arguments: - values: - - name: "nodeId" - value: nodeId - - - label: "Step 2: TH reads the ClusterRevision from DUT" - command: "readAttribute" - attribute: "ClusterRevision" - response: - value: 1 - constraints: - type: int16u - - - label: - "Step 3a: Given PWRTL.S.F00(Node) ensure featuremap has the correct - bit set" - PICS: PWRTL.S.F00 - command: "readAttribute" - attribute: "FeatureMap" - response: - constraints: - type: bitmap32 - hasMasksSet: [0x1] - hasMasksClear: [0x2, 0x4, 0x8] - - - label: - "Step 3b: Given PWRTL.S.F01(Leaf) ensure featuremap has the correct - bit set" - PICS: PWRTL.S.F01 - command: "readAttribute" - attribute: "FeatureMap" - response: - constraints: - type: bitmap32 - hasMasksSet: [0x2] - hasMasksClear: [0x1, 0x4, 0x8] - - - label: - "Step 3c: Given PWRTL.S.F02(Set) ensure featuremap has the correct bit - set" - PICS: PWRTL.S.F02 - command: "readAttribute" - attribute: "FeatureMap" - response: - constraints: - type: bitmap32 - hasMasksSet: [0x4] - hasMasksClear: [0x1, 0x2] - - - label: - "Step 3d: Given PWRTL.S.F03(Dynamic Power Flow) ensure featuremap has - the correct bit set" - PICS: PWRTL.S.F03 - command: "readAttribute" - attribute: "FeatureMap" - response: - constraints: - type: bitmap32 - hasMasksSet: [0x4, 0x8] - - - label: "Step 4a: TH reads AttributeList from DUT" - PICS: " !PWRTL.S.F02 && !PWRTL.S.F03 " - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [] - - - label: - "Step 4b: TH reads feature dependent attribute(AvailableEndpoints) - AttributeList from DUT" - PICS: PWRTL.S.F02 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [0] - - - label: - "Step 4c: TH reads feature dependent attribute(ActiveEndpoints) - AttributeList from DUT" - PICS: "PWRTL.S.F02 && PWRTL.S.F03" - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [0, 1] - - - label: "Step 5*: TH reads EventList attribute from DUT" - PICS: PICS_EVENT_LIST_ENABLED - command: "readAttribute" - attribute: "EventList" - response: - value: [] - constraints: - type: list - - - label: "Step 6: TH reads the AcceptedCommandList attribute from the DUT" - command: "readAttribute" - attribute: "AcceptedCommandList" - response: - value: [] - constraints: - type: list - - - label: "Step 7: TH reads the GeneratedCommandList attribute from the DUT" - command: "readAttribute" - attribute: "GeneratedCommandList" - response: - value: [] - constraints: - type: list diff --git a/src/app/tests/suites/certification/Test_TC_RNCONC_1_1.yaml b/src/app/tests/suites/certification/Test_TC_RNCONC_1_1.yaml deleted file mode 100644 index 8efffd3ec61792..00000000000000 --- a/src/app/tests/suites/certification/Test_TC_RNCONC_1_1.yaml +++ /dev/null @@ -1,339 +0,0 @@ -# Copyright (c) 2023 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: 145.1.1. [TC-RNCONC-1.1] Global Attributes with DUT as Server - -PICS: - - RNCONC.S - -config: - nodeId: 0x12344321 - cluster: "Radon Concentration Measurement" - endpoint: 1 - -tests: - - label: - "Step 1: Commission DUT to TH (can be skipped if done in a preceding - test)." - cluster: "DelayCommands" - command: "WaitForCommissionee" - arguments: - values: - - name: "nodeId" - value: nodeId - - - label: "Step 2: TH reads from the DUT the ClusterRevision attribute." - command: "readAttribute" - attribute: "ClusterRevision" - response: - value: 3 - constraints: - type: int16u - - - label: - "Step 3a: TH reads from the DUT the FeatureMap attribute and check for - either bit 0 or 1 set" - command: "readAttribute" - attribute: "FeatureMap" - response: - constraints: - type: bitmap32 - hasMasksSet: [0x03] - - - label: - "Step 3b: Given RNCONC.S.F00(MEA) ensure featuremap has the correct - bit set" - command: "readAttribute" - attribute: "FeatureMap" - PICS: RNCONC.S.F00 - response: - constraints: - type: bitmap32 - hasMasksSet: [0x1] - - - label: - "Step 3c: Given RNCONC.S.F00(MEA) is not set, ensure featuremap has - the correct bit clear" - command: "readAttribute" - attribute: "FeatureMap" - PICS: " !RNCONC.S.F00 " - response: - constraints: - type: bitmap32 - hasMasksClear: [0x1] - - - label: - "Step 3d: Given RNCONC.S.F01(LEV) ensure featuremap has the correct - bit set" - command: "readAttribute" - attribute: "FeatureMap" - PICS: RNCONC.S.F01 - response: - constraints: - type: bitmap32 - hasMasksSet: [0x2] - - - label: - "Step 3e: Given RNCONC.S.F01(LEV) is not set, ensure featuremap has - the correct bit clear" - command: "readAttribute" - attribute: "FeatureMap" - PICS: " !RNCONC.S.F01 " - response: - constraints: - type: bitmap32 - hasMasksClear: [0x2] - - - label: - "Step 3f: Given RNCONC.S.F02(MED) ensure featuremap has the correct - bit set" - command: "readAttribute" - attribute: "FeatureMap" - PICS: RNCONC.S.F02 && RNCONC.S.F01 - response: - constraints: - type: bitmap32 - hasMasksSet: [0x4, 0x2] - - - label: - "Step 3g: Given RNCONC.S.F02(MED) is not set, ensure featuremap has - the correct bit clear" - command: "readAttribute" - attribute: "FeatureMap" - PICS: " !RNCONC.S.F02 && !RNCONC.S.F01" - response: - constraints: - type: bitmap32 - hasMasksClear: [0x4] - - - label: - "Step 3h: Given RNCONC.S.F03(CRI) ensure featuremap has the correct - bits set" - command: "readAttribute" - attribute: "FeatureMap" - PICS: RNCONC.S.F03 && RNCONC.S.F01 - response: - constraints: - type: bitmap32 - hasMasksSet: [0x8, 0x2] - - - label: - "Step 3i: Given RNCONC.S.F03(CRI) is not set, ensure featuremap has - the correct bit clear" - command: "readAttribute" - attribute: "FeatureMap" - PICS: " !RNCONC.S.F03 && !RNCONC.S.F01" - response: - constraints: - type: bitmap32 - hasMasksClear: [0x8] - - - label: - "Step 3j: Given RNCONC.S.F04(PEA) ensure featuremap has the correct - bits set" - command: "readAttribute" - attribute: "FeatureMap" - PICS: RNCONC.S.F04 && RNCONC.S.F00 - response: - constraints: - type: bitmap32 - hasMasksSet: [0x10, 0x1] - - - label: - "Step 3k: Given RNCONC.S.F04(PEA) is not set, ensure featuremap has - the correct bit clear" - command: "readAttribute" - attribute: "FeatureMap" - PICS: " !RNCONC.S.F04 && RNCONC.S.F00" - response: - constraints: - type: bitmap32 - hasMasksClear: [0x10] - - - label: - "Step 3l: Given RNCONC.S.F05(AVG) ensure featuremap has the correct - bits set" - command: "readAttribute" - attribute: "FeatureMap" - PICS: RNCONC.S.F05 && RNCONC.S.F00 - response: - constraints: - type: bitmap32 - hasMasksSet: [0x20, 0x1] - - - label: - "Step 3m: Given RNCONC.S.F05(AVG) is not set, ensure featuremap has - the correct bit clear" - command: "readAttribute" - attribute: "FeatureMap" - PICS: " !RNCONC.S.F05 && !RNCONC.S.F00 " - response: - constraints: - type: bitmap32 - hasMasksClear: [0x20] - - - label: "Step 4a: TH reads from the DUT the AttributeList attribute." - command: "readAttribute" - attribute: "AttributeList" - PICS: PICS_EVENT_LIST_ENABLED - response: - constraints: - type: list - contains: [9, 65528, 65529, 65530, 65531, 65532, 65533] - - - label: "Step 4a: TH reads from the DUT the AttributeList attribute." - command: "readAttribute" - attribute: "AttributeList" - PICS: "!PICS_EVENT_LIST_ENABLED" - response: - constraints: - type: list - contains: [9, 65528, 65529, 65531, 65532, 65533] - - - label: - "Step 4b: TH reads the optional attribute Uncertainty in AttributeList" - command: "readAttribute" - attribute: "AttributeList" - PICS: RNCONC.S.A0007 && RNCONC.S.F00 - response: - constraints: - type: list - contains: [7] - - - label: - "Step 4c: Check the optional attribute Uncertainty is excluded from - AttributeList when RNCONC.S.A0007 is not set" - command: "readAttribute" - attribute: "AttributeList" - PICS: " !RNCONC.S.A0007 " - response: - constraints: - type: list - excludes: [7] - - - label: - "Step 4d: TH reads the optional, feature dependent attributes - MeasuredValue, MinMeasuredValue, MaxMeasuredValue and Measurement Unit - in AttributeList" - command: "readAttribute" - attribute: "AttributeList" - PICS: RNCONC.S.F00 - response: - constraints: - type: list - contains: [0, 1, 2, 8] - - - label: - "Step 4e: Check that MeasuredValue, MinMeasuredValue, - MaxMeasuredValue, Measurement Unit and Uncertainty are excluded from - AttributeList when RNCONC.S.F00 (MEA) is not set" - command: "readAttribute" - attribute: "AttributeList" - PICS: " !RNCONC.S.F00 " - response: - constraints: - type: list - excludes: [0, 1, 2, 7, 8] - - - label: - "Step 4f: TH reads the optional, feature dependent attributes - PeakMeasuredValue & PeakMeasuredValueWindow in AttributeList" - command: "readAttribute" - attribute: "AttributeList" - PICS: RNCONC.S.F04 - response: - constraints: - type: list - contains: [3, 4] - - - label: - "Step 4g: Check that PeakMeasuredValue & PeakMeasuredValueWindow are - excluded from AttributeList when RNCONC.S.F04 (PEA) is not set" - command: "readAttribute" - attribute: "AttributeList" - PICS: " !RNCONC.S.F04 " - response: - constraints: - type: list - excludes: [3, 4] - - - label: - "Step 4h: TH reads the optional, feature dependent attributes - AverageMeasuredValue AverageMeasuredValueWindow in AttributeList" - command: "readAttribute" - attribute: "AttributeList" - PICS: RNCONC.S.F05 - response: - constraints: - type: list - contains: [5, 6] - - - label: - "Step 4i: Check that AverageMeasuredValue and - AverageMeasuredValueWindow are excluded from AttributeList when - RNCONC.S.F05 (AVG) is not set" - command: "readAttribute" - attribute: "AttributeList" - PICS: " !RNCONC.S.F05 " - response: - constraints: - type: list - excludes: [5, 6] - - - label: - "Step 4j: TH reads the optional, feature dependent attribute - LevelValue in AttributeList" - command: "readAttribute" - attribute: "AttributeList" - PICS: RNCONC.S.F01 - response: - constraints: - type: list - contains: [10] - - - label: - "Step 4k: Check that LevelValue is excluded from AttributeList when - RNCONC.S.F01 (LEV) is not set" - command: "readAttribute" - attribute: "AttributeList" - PICS: " !RNCONC.S.F01 " - response: - constraints: - type: list - excludes: [10] - - - label: "Step 5: TH reads from the DUT the EventList attribute." - command: "readAttribute" - attribute: "EventList" - PICS: PICS_EVENT_LIST_ENABLED - response: - value: [] - constraints: - type: list - - - label: "Step 6: TH reads from the DUT the AcceptedCommandList attribute." - command: "readAttribute" - attribute: "AcceptedCommandList" - response: - value: [] - constraints: - type: list - - - label: "Step 7: TH reads from the DUT the GeneratedCommandList attribute." - command: "readAttribute" - attribute: "GeneratedCommandList" - response: - value: [] - constraints: - type: list diff --git a/src/app/tests/suites/certification/Test_TC_SMOKECO_1_1.yaml b/src/app/tests/suites/certification/Test_TC_SMOKECO_1_1.yaml deleted file mode 100644 index c1f997bb3939dc..00000000000000 --- a/src/app/tests/suites/certification/Test_TC_SMOKECO_1_1.yaml +++ /dev/null @@ -1,269 +0,0 @@ -# Copyright (c) 2023 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: 4.1.1. [TC-SMOKECO-1.1] Global Attributes with DUT as Server - -PICS: - - SMOKECO.S - -config: - nodeId: 0x12344321 - cluster: "Smoke CO Alarm" - endpoint: 1 - -tests: - - label: "Step 1: Commission DUT to TH" - cluster: "DelayCommands" - command: "WaitForCommissionee" - arguments: - values: - - name: "nodeId" - value: nodeId - - - label: "Step 2: TH reads the ClusterRevision attribute from the DUT" - command: "readAttribute" - attribute: "ClusterRevision" - response: - value: 1 - constraints: - type: int16u - - - label: "Step 3a: TH reads from the DUT the FeatureMap attribute" - PICS: "!SMOKECO.S.F00 && !SMOKECO.S.F01" - command: "readAttribute" - attribute: "FeatureMap" - response: - value: 0 - constraints: - type: bitmap32 - - - label: - "Step 3b: TH reads from the DUT the FeatureMap attribute(Smoke Alarm)" - PICS: SMOKECO.S.F00 && !SMOKECO.S.F01 - command: "readAttribute" - attribute: "FeatureMap" - response: - value: 1 - constraints: - type: bitmap32 - - - label: "Step 3c: TH reads from the DUT the FeatureMap attribute(CO Alarm)" - PICS: SMOKECO.S.F01 && !SMOKECO.S.F00 - command: "readAttribute" - attribute: "FeatureMap" - response: - value: 2 - constraints: - type: bitmap32 - - - label: - "Step 3d: TH reads from the DUT the FeatureMap attribute(Smoke Alarm & - CO Alarm)" - PICS: SMOKECO.S.F00 && SMOKECO.S.F01 - command: "readAttribute" - attribute: "FeatureMap" - response: - value: 3 - constraints: - type: bitmap32 - - - label: "Step 4a: TH reads from the DUT the AttributeList attribute" - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [0, 3, 5, 6, 7, 65528, 65529, 65531, 65532, 65533] - - - label: - "Step 4b: TH reads from the DUT the AttributeList - attribute(SmokeState)" - PICS: SMOKECO.S.A0001 && SMOKECO.S.F00 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [1] - - - label: - "Step 4c: TH reads from the DUT the AttributeList attribute(COState)" - PICS: SMOKECO.S.A0002 && SMOKECO.S.F01 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [2] - - - label: - "Step 4d: TH reads from the DUT the AttributeList - attribute(DeviceMuted)" - PICS: SMOKECO.S.A0004 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [4] - - - label: - "Step 4e: TH reads from the DUT the AttributeList - attribute(InterconnectSmokeAlarm)" - PICS: SMOKECO.S.A0008 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [8] - - - label: - "Step 4f: TH reads from the DUT the AttributeList - attribute(InterconnectCOAlarm)" - PICS: SMOKECO.S.A0009 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [9] - - - label: - "Step 4g: TH reads from the DUT the AttributeList - attribute(ContaminationState)" - PICS: SMOKECO.S.A000a - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [10] - - - label: - "Step 4h: TH reads from the DUT the AttributeList - attribute(SmokeSensitivityLevel)" - PICS: SMOKECO.S.A000b - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [11] - - - label: - "Step 4i: TH reads from the DUT the AttributeList - attribute(ExpiryDate)" - PICS: SMOKECO.S.A000c - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [12] - - - label: "Step 5a: TH reads from the DUT the EventList attribute" - PICS: PICS_EVENT_LIST_ENABLED - command: "readAttribute" - attribute: "EventList" - response: - constraints: - type: list - contains: [2, 3, 4, 5, 10] - - - label: - "Step 5b: TH reads from the DUT the EventList attribute(SmokeAlarm)" - PICS: PICS_EVENT_LIST_ENABLED && SMOKECO.S.E00 - command: "readAttribute" - attribute: "EventList" - response: - constraints: - type: list - contains: [0] - - - label: "Step 5c: TH reads from the DUT the EventList attribute(COAlarm)" - PICS: PICS_EVENT_LIST_ENABLED && SMOKECO.S.E01 - command: "readAttribute" - attribute: "EventList" - response: - constraints: - type: list - contains: [1] - - - label: - "Step 5d: TH reads from the DUT the EventList attribute(AlarmMuted)" - PICS: PICS_EVENT_LIST_ENABLED && SMOKECO.S.E06 - command: "readAttribute" - attribute: "EventList" - response: - constraints: - type: list - contains: [6] - - - label: "Step 5e: TH reads from the DUT the EventList attribute(MuteEnded)" - PICS: PICS_EVENT_LIST_ENABLED && SMOKECO.S.E07 - command: "readAttribute" - attribute: "EventList" - response: - constraints: - type: list - contains: [7] - - - label: - "Step 5f: TH reads from the DUT the EventList - attribute(InterconnectSmokeAlarm)" - PICS: PICS_EVENT_LIST_ENABLED && SMOKECO.S.E08 - command: "readAttribute" - attribute: "EventList" - response: - constraints: - type: list - contains: [8] - - - label: - "Step 5g: TH reads from the DUT the EventList - attribute(InterconnectCOAlarm)" - PICS: PICS_EVENT_LIST_ENABLED && SMOKECO.S.E09 - command: "readAttribute" - attribute: "EventList" - response: - constraints: - type: list - contains: [9] - - - label: "Step 6a: TH reads from the DUT the AcceptedCommandList attribute" - PICS: "!SMOKECO.S.C00.Rsp" - command: "readAttribute" - attribute: "AcceptedCommandList" - response: - value: [] - constraints: - type: list - - - label: "Step 6b: TH reads from the DUT the AcceptedCommandList attribute" - PICS: SMOKECO.S.C00.Rsp - command: "readAttribute" - attribute: "AcceptedCommandList" - response: - constraints: - type: list - contains: [0] - - - label: "Step 7: TH reads from the DUT the GeneratedCommandList attribute" - command: "readAttribute" - attribute: "GeneratedCommandList" - response: - value: [] - constraints: - type: list diff --git a/src/app/tests/suites/certification/Test_TC_SWTCH_1_1.yaml b/src/app/tests/suites/certification/Test_TC_SWTCH_1_1.yaml deleted file mode 100644 index fdb1e4137ce468..00000000000000 --- a/src/app/tests/suites/certification/Test_TC_SWTCH_1_1.yaml +++ /dev/null @@ -1,184 +0,0 @@ -# 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: 74.1.1. [TC-SWTCH-1.1] Global Attributes with DUT as Server - -PICS: - - SWTCH.S - -config: - nodeId: 0x12344321 - cluster: "Switch" - endpoint: 1 - -tests: - - label: - "Step 1: Commission DUT to TH (can be skipped if done in a preceding - test)." - cluster: "DelayCommands" - command: "WaitForCommissionee" - arguments: - values: - - name: "nodeId" - value: nodeId - - - label: "Step 2: TH reads from the DUT the ClusterRevision attribute." - command: "readAttribute" - attribute: "ClusterRevision" - response: - value: 2 - constraints: - type: int16u - - - label: - "Step 3: TH reads from the DUT the FeatureMap attribute and ensures no - invalid bits." - PICS: - "!SWTCH.S.F00 && !SWTCH.S.F01 && !SWTCH.S.F02 && !SWTCH.S.F03 && - !SWTCH.S.F04 && !SWTCH.S.F05" - command: "readAttribute" - attribute: "FeatureMap" - response: - value: 0 - constraints: - type: bitmap32 - - - label: - "Step 3a: Given SWTCH.S.F00(LS) ensure featuremap has the correct bits - set" - PICS: SWTCH.S.F00 - command: "readAttribute" - attribute: "FeatureMap" - response: - constraints: - type: bitmap32 - hasMasksSet: [0x01] - hasMasksClear: [0x02, 0x04, 0x08, 0x10, 0x20] - - - label: - "Step 3b: Given SWTCH.S.F01(MS) ensure featuremap has the correct bits - set: checks on !MSL when MS feature present." - PICS: SWTCH.S.F01 - command: "readAttribute" - attribute: "FeatureMap" - response: - constraints: - type: bitmap32 - hasMasksSet: [0x2] - hasMasksClear: [0x1] - - - label: - "Step 3b: Given SWTCH.S.F02(MSR) ensure featuremap has the correct - bits set: checks on MS & !AS & MSR." - PICS: SWTCH.S.F02 - command: "readAttribute" - attribute: "FeatureMap" - response: - constraints: - type: bitmap32 - hasMasksSet: [0x2, 0x4] - hasMasksClear: [0x1, 0x20] - - - label: - "Step 3b: Given SWTCH.S.F03(MSL) ensure featuremap has the correct - bits set: LS cannot be enabled if MSL." - PICS: SWTCH.S.F03 - command: "readAttribute" - attribute: "FeatureMap" - response: - constraints: - type: bitmap32 - hasMasksSet: [0x2, 0x8] - hasMasksClear: [0x1] - - - label: - "Step 3b: Given SWTCH.S.F04(MSM) ensure featuremap has the correct - bits set: LS cannot be enabled if MSM." - PICS: SWTCH.S.F04 - command: "readAttribute" - attribute: "FeatureMap" - response: - constraints: - type: bitmap32 - hasMasksSet: [0x2, 0x10] - hasMasksClear: [0x1] - - - label: - "Step 3b: Given SWTCH.S.F05(AS) ensure featuremap has the correct bits - set: LS and MSR cannot be enabled if AS, and MSM is required by AS." - PICS: SWTCH.S.F05 - command: "readAttribute" - attribute: "FeatureMap" - response: - constraints: - type: bitmap32 - hasMasksSet: [0x2, 0x10, 0x20] - hasMasksClear: [0x1, 0x4] - - - label: "Step 3c: LS and MS are mutually exclusive (1/2)." - PICS: "SWTCH.S.F00" - command: "readAttribute" - attribute: "FeatureMap" - response: - constraints: - type: bitmap32 - hasMasksSet: [0x1] - hasMasksClear: [0x2] - - - label: "Step 3c: LS and MS are mutually exclusive (2/2)." - PICS: "SWTCH.S.F01" - command: "readAttribute" - attribute: "FeatureMap" - response: - constraints: - type: bitmap32 - hasMasksSet: [0x2] - hasMasksClear: [0x1] - - - label: - "Step 4: TH reads from the DUT the AttributeList attribute, verify - that attribute MultiPressMax is present with MSM feature." - PICS: "SWTCH.S.F04" - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [2] - - - label: - "Step 4: TH reads from the DUT the AttributeList attribute, verify - mandatory attributes." - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [0, 1, 65528, 65529, 65531, 65532, 65533] - - - label: "Step 5: TH reads from the DUT the AcceptedCommandList attribute." - command: "readAttribute" - attribute: "AcceptedCommandList" - response: - value: [] - constraints: - type: list - - - label: "Step 6: TH reads from the DUT the GeneratedCommandList attribute." - command: "readAttribute" - attribute: "GeneratedCommandList" - response: - value: [] - constraints: - type: list diff --git a/src/app/tests/suites/certification/Test_TC_S_2_5.yaml b/src/app/tests/suites/certification/Test_TC_S_2_5.yaml index 8616c15665531e..46cee01c3c36f7 100644 --- a/src/app/tests/suites/certification/Test_TC_S_2_5.yaml +++ b/src/app/tests/suites/certification/Test_TC_S_2_5.yaml @@ -27,8 +27,8 @@ tests: - label: "Precondition" verification: | - Commission DUT to TH - - A given fabric SHALL NOT consume more than half (rounded down towards 0) of the Scene Table entries (as indicated in the SceneTableSize attribute). - - MaxRemainingCapacity is SceneTableSize/2. + - The Scene Table capacity for a given fabric SHALL be less than half (rounded down towards 0) of the Scene Table entries (as indicated in the SceneTableSize attribute). + - MaxRemainingCapacity is (SceneTableSize-1)/2. disabled: true - label: @@ -181,56 +181,56 @@ tests: Set up the subscription between DUT and TH by sending the command mentioned below, and verify that the subscription is activated successfully - scenesmanagement subscribe fabric-scene-info 0 200 1 1 + scenesmanagement subscribe fabric-scene-info 5 100 1 1 Verify the DUT sends a report data for FabricSceneInfo after the MinIntervalFloor time; store the RemainingCapacity field from this fabric’s entry reported in FabricSceneInfo into RemainingCapacity and is equals to (MaxRemainingCapacity) on the TH (Chip-tool) and below is the sample log provided for the raspi platform: - [1706764401.002841][4438:4440] CHIP:DMG: ReportDataMessage = - [1706764401.002862][4438:4440] CHIP:DMG: { - [1706764401.002879][4438:4440] CHIP:DMG: SubscriptionId = 0x679cab48, - [1706764401.002891][4438:4440] CHIP:DMG: AttributeReportIBs = - [1706764401.002916][4438:4440] CHIP:DMG: [ - [1706764401.002926][4438:4440] CHIP:DMG: AttributeReportIB = - [1706764401.002950][4438:4440] CHIP:DMG: { - [1706764401.002960][4438:4440] CHIP:DMG: AttributeDataIB = - [1706764401.002972][4438:4440] CHIP:DMG: { - [1706764401.002985][4438:4440] CHIP:DMG: DataVersion = 0xec4c4ebe, - [1706764401.002996][4438:4440] CHIP:DMG: AttributePathIB = - [1706764401.003008][4438:4440] CHIP:DMG: { - [1706764401.003021][4438:4440] CHIP:DMG: Endpoint = 0x1, - [1706764401.003035][4438:4440] CHIP:DMG: Cluster = 0x62, - [1706764401.003048][4438:4440] CHIP:DMG: Attribute = 0x0000_0002, - [1706764401.003059][4438:4440] CHIP:DMG: } - [1706764401.003076][4438:4440] CHIP:DMG: - [1706764401.003088][4438:4440] CHIP:DMG: Data = [ - [1706764401.003105][4438:4440] CHIP:DMG: - [1706764401.003121][4438:4440] CHIP:DMG: { - [1706764401.003136][4438:4440] CHIP:DMG: 0x0 = 0, - [1706764401.003150][4438:4440] CHIP:DMG: 0x1 = 1, - [1706764401.003162][4438:4440] CHIP:DMG: 0x2 = 1, - [1706764401.003175][4438:4440] CHIP:DMG: 0x3 = false, - [1706764401.003190][4438:4440] CHIP:DMG: 0x4 = 7, - [1706764401.003203][4438:4440] CHIP:DMG: 0xfe = 1, - [1706764401.003216][4438:4440] CHIP:DMG: }, - [1706764401.003229][4438:4440] CHIP:DMG: ], - [1706764401.003239][4438:4440] CHIP:DMG: }, - [1706764401.003260][4438:4440] CHIP:DMG: - [1706764401.003270][4438:4440] CHIP:DMG: }, - [1706764401.003292][4438:4440] CHIP:DMG: - [1706764401.003301][4438:4440] CHIP:DMG: ], - [1706764401.003324][4438:4440] CHIP:DMG: - [1706764401.003334][4438:4440] CHIP:DMG: InteractionModelRevision = 11 - [1706764401.003343][4438:4440] CHIP:DMG: } - [1706764401.003557][4438:4440] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0062 Attribute 0x0000_0002 DataVersion: 3964423870 - [1706764401.003615][4438:4440] CHIP:TOO: FabricSceneInfo: 1 entries - [1706764401.003676][4438:4440] CHIP:TOO: [1]: { - [1706764401.003698][4438:4440] CHIP:TOO: SceneCount: 0 - [1706764401.003708][4438:4440] CHIP:TOO: CurrentScene: 1 - [1706764401.003718][4438:4440] CHIP:TOO: CurrentGroup: 1 - [1706764401.003728][4438:4440] CHIP:TOO: SceneValid: FALSE - [1706764401.003740][4438:4440] CHIP:TOO: RemainingCapacity: 7 - [1706764401.003750][4438:4440] CHIP:TOO: FabricIndex: 1 - [1706764401.003761][4438:4440] CHIP:TOO: } + [1720506229.849] [3777:3779] [DMG] ReportDataMessage = + [1720506229.849] [3777:3779] [DMG] { + [1720506229.849] [3777:3779] [DMG] SubscriptionId = 0x5da2bd16, + [1720506229.849] [3777:3779] [DMG] AttributeReportIBs = + [1720506229.849] [3777:3779] [DMG] [ + [1720506229.849] [3777:3779] [DMG] AttributeReportIB = + [1720506229.849] [3777:3779] [DMG] { + [1720506229.849] [3777:3779] [DMG] AttributeDataIB = + [1720506229.850] [3777:3779] [DMG] { + [1720506229.850] [3777:3779] [DMG] DataVersion = 0xdcafe47f, + [1720506229.850] [3777:3779] [DMG] AttributePathIB = + [1720506229.850] [3777:3779] [DMG] { + [1720506229.850] [3777:3779] [DMG] Endpoint = 0x1, + [1720506229.850] [3777:3779] [DMG] Cluster = 0x62, + [1720506229.850] [3777:3779] [DMG] Attribute = 0x0000_0002, + [1720506229.850] [3777:3779] [DMG] } + [1720506229.850] [3777:3779] [DMG] + [1720506229.850] [3777:3779] [DMG] Data = [ + [1720506229.850] [3777:3779] [DMG] + [1720506229.850] [3777:3779] [DMG] { + [1720506229.850] [3777:3779] [DMG] 0x0 = 0 (unsigned), + [1720506229.850] [3777:3779] [DMG] 0x1 = 0 (unsigned), + [1720506229.850] [3777:3779] [DMG] 0x2 = 0 (unsigned), + [1720506229.850] [3777:3779] [DMG] 0x3 = false, + [1720506229.850] [3777:3779] [DMG] 0x4 = 7 (unsigned), + [1720506229.850] [3777:3779] [DMG] 0xfe = 1 (unsigned), + [1720506229.850] [3777:3779] [DMG] }, + [1720506229.851] [3777:3779] [DMG] ], + [1720506229.851] [3777:3779] [DMG] }, + [1720506229.851] [3777:3779] [DMG] + [1720506229.851] [3777:3779] [DMG] }, + [1720506229.851] [3777:3779] [DMG] + [1720506229.851] [3777:3779] [DMG] ], + [1720506229.851] [3777:3779] [DMG] + [1720506229.851] [3777:3779] [DMG] InteractionModelRevision = 11 + [1720506229.851] [3777:3779] [DMG] } + [1720506229.851] [3777:3779] [TOO] Endpoint: 1 Cluster: 0x0000_0062 Attribute 0x0000_0002 DataVersion: 3702514815 + [1720506229.851] [3777:3779] [TOO] FabricSceneInfo: 1 entries + [1720506229.851] [3777:3779] [TOO] [1]: { + [1720506229.852] [3777:3779] [TOO] SceneCount: 0 + [1720506229.852] [3777:3779] [TOO] CurrentScene: 0 + [1720506229.852] [3777:3779] [TOO] CurrentGroup: 0 + [1720506229.852] [3777:3779] [TOO] SceneValid: FALSE + [1720506229.852] [3777:3779] [TOO] RemainingCapacity: 7 + [1720506229.852] [3777:3779] [TOO] FabricIndex: 1 + [1720506229.852] [3777:3779] [TOO] } disabled: true - label: @@ -275,52 +275,52 @@ tests: verification: | Verify that the DUT sends a report data for FabricSceneInfo after the MinIntervalFloor time; store the RemainingCapacity field from this fabric’s entry reported in FabricSceneInfo into RemainingCapacity and is equals to (MaxRemainingCapacity-1). - [1706764465.493922][4438:4440] CHIP:DMG: ReportDataMessage = - [1706764465.493926][4438:4440] CHIP:DMG: { - [1706764465.493928][4438:4440] CHIP:DMG: SubscriptionId = 0xcd5a528f, - [1706764465.493931][4438:4440] CHIP:DMG: AttributeReportIBs = - [1706764465.493937][4438:4440] CHIP:DMG: [ - [1706764465.493939][4438:4440] CHIP:DMG: AttributeReportIB = - [1706764465.493944][4438:4440] CHIP:DMG: { - [1706764465.493947][4438:4440] CHIP:DMG: AttributeDataIB = - [1706764465.493949][4438:4440] CHIP:DMG: { - [1706764465.493952][4438:4440] CHIP:DMG: DataVersion = 0xec4c4ec0, - [1706764465.493955][4438:4440] CHIP:DMG: AttributePathIB = - [1706764465.493958][4438:4440] CHIP:DMG: { - [1706764465.493961][4438:4440] CHIP:DMG: Endpoint = 0x1, - [1706764465.493963][4438:4440] CHIP:DMG: Cluster = 0x62, - [1706764465.493966][4438:4440] CHIP:DMG: Attribute = 0x0000_0002, - [1706764465.493969][4438:4440] CHIP:DMG: } - [1706764465.493974][4438:4440] CHIP:DMG: - [1706764465.493979][4438:4440] CHIP:DMG: Data = [ - [1706764465.493985][4438:4440] CHIP:DMG: - [1706764465.493990][4438:4440] CHIP:DMG: { - [1706764465.493997][4438:4440] CHIP:DMG: 0x0 = 1, - [1706764465.494002][4438:4440] CHIP:DMG: 0x1 = 1, - [1706764465.494007][4438:4440] CHIP:DMG: 0x2 = 1, - [1706764465.494013][4438:4440] CHIP:DMG: 0x3 = false, - [1706764465.494018][4438:4440] CHIP:DMG: 0x4 = 6, - [1706764465.494023][4438:4440] CHIP:DMG: 0xfe = 1, - [1706764465.494029][4438:4440] CHIP:DMG: }, - [1706764465.494034][4438:4440] CHIP:DMG: ], - [1706764465.494038][4438:4440] CHIP:DMG: }, - [1706764465.494047][4438:4440] CHIP:DMG: - [1706764465.494050][4438:4440] CHIP:DMG: }, - [1706764465.494059][4438:4440] CHIP:DMG: - [1706764465.494062][4438:4440] CHIP:DMG: ], - [1706764465.494070][4438:4440] CHIP:DMG: - [1706764465.494073][4438:4440] CHIP:DMG: InteractionModelRevision = 11 - [1706764465.494077][4438:4440] CHIP:DMG: } - [1706764465.494130][4438:4440] CHIP:TOO: Endpoint: 1 Cluster: 0x0000_0062 Attribute 0x0000_0002 DataVersion: 3964423872 - [1706764465.494142][4438:4440] CHIP:TOO: FabricSceneInfo: 1 entries - [1706764465.494152][4438:4440] CHIP:TOO: [1]: { - [1706764465.494155][4438:4440] CHIP:TOO: SceneCount: 1 - [1706764465.494158][4438:4440] CHIP:TOO: CurrentScene: 1 - [1706764465.494161][4438:4440] CHIP:TOO: CurrentGroup: 1 - [1706764465.494164][4438:4440] CHIP:TOO: SceneValid: FALSE - [1706764465.494167][4438:4440] CHIP:TOO: RemainingCapacity: 6 - [1706764465.494170][4438:4440] CHIP:TOO: FabricIndex: 1 - [1706764465.494174][4438:4440] CHIP:TOO: } + [1720506650.012] [3835:3837] [DMG] ReportDataMessage = + [1720506650.012] [3835:3837] [DMG] { + [1720506650.012] [3835:3837] [DMG] SubscriptionId = 0x8e3fb466, + [1720506650.012] [3835:3837] [DMG] AttributeReportIBs = + [1720506650.012] [3835:3837] [DMG] [ + [1720506650.012] [3835:3837] [DMG] AttributeReportIB = + [1720506650.012] [3835:3837] [DMG] { + [1720506650.012] [3835:3837] [DMG] AttributeDataIB = + [1720506650.012] [3835:3837] [DMG] { + [1720506650.013] [3835:3837] [DMG] DataVersion = 0xd2aec24e, + [1720506650.013] [3835:3837] [DMG] AttributePathIB = + [1720506650.013] [3835:3837] [DMG] { + [1720506650.013] [3835:3837] [DMG] Endpoint = 0x1, + [1720506650.013] [3835:3837] [DMG] Cluster = 0x62, + [1720506650.013] [3835:3837] [DMG] Attribute = 0x0000_0002, + [1720506650.013] [3835:3837] [DMG] } + [1720506650.013] [3835:3837] [DMG] + [1720506650.013] [3835:3837] [DMG] Data = [ + [1720506650.014] [3835:3837] [DMG] + [1720506650.014] [3835:3837] [DMG] { + [1720506650.014] [3835:3837] [DMG] 0x0 = 1 (unsigned), + [1720506650.014] [3835:3837] [DMG] 0x1 = 0 (unsigned), + [1720506650.014] [3835:3837] [DMG] 0x2 = 0 (unsigned), + [1720506650.014] [3835:3837] [DMG] 0x3 = false, + [1720506650.014] [3835:3837] [DMG] 0x4 = 6 (unsigned), + [1720506650.014] [3835:3837] [DMG] 0xfe = 1 (unsigned), + [1720506650.014] [3835:3837] [DMG] }, + [1720506650.015] [3835:3837] [DMG] ], + [1720506650.015] [3835:3837] [DMG] }, + [1720506650.015] [3835:3837] [DMG] + [1720506650.015] [3835:3837] [DMG] }, + [1720506650.015] [3835:3837] [DMG] + [1720506650.015] [3835:3837] [DMG] ], + [1720506650.015] [3835:3837] [DMG] + [1720506650.015] [3835:3837] [DMG] InteractionModelRevision = 11 + [1720506650.015] [3835:3837] [DMG] } + [1720506650.016] [3835:3837] [TOO] Endpoint: 1 Cluster: 0x0000_0062 Attribute 0x0000_0002 DataVersion: 3534668366 + [1720506650.016] [3835:3837] [TOO] FabricSceneInfo: 1 entries + [1720506650.016] [3835:3837] [TOO] [1]: { + [1720506650.016] [3835:3837] [TOO] SceneCount: 1 + [1720506650.016] [3835:3837] [TOO] CurrentScene: 0 + [1720506650.016] [3835:3837] [TOO] CurrentGroup: 0 + [1720506650.016] [3835:3837] [TOO] SceneValid: FALSE + [1720506650.016] [3835:3837] [TOO] RemainingCapacity: 6 + [1720506650.016] [3835:3837] [TOO] FabricIndex: 1 + [1720506650.016] [3835:3837] [TOO] } disabled: true - label: diff --git a/src/app/tests/suites/certification/Test_TC_S_2_6.yaml b/src/app/tests/suites/certification/Test_TC_S_2_6.yaml index 5a578eeb8a7866..cff80b796ab11c 100644 --- a/src/app/tests/suites/certification/Test_TC_S_2_6.yaml +++ b/src/app/tests/suites/certification/Test_TC_S_2_6.yaml @@ -28,8 +28,15 @@ config: tests: - label: "Precondition: Commission DUT to TH1" verification: | - Once DUT reach the commissionable state send the following command on TH1: - pairing onnetwork 1 20202021 + - DUT should be commissioned onto TH1, TH2, and TH3. + - The Scene Table capacity for a given fabric SHALL be less than half (rounded down towards 0) of the Scene Table entries (as indicated in the SceneTableSize attribute). + - MaxRemainingCapacity is (SceneTableSize-1)/2. + - TH1, TH2, and TH3 should be on separate, distinct fabrics. + + Send the below command in respective DUT + ./chip-all-clusters-app + + Once DUT reach the commissionable state send the following command ./chip-tool pairing onnetwork 1 20202021 command on TH1. Verify the commissioning completed with success on TH(chip-tool) from DUT [1650455358.501816][4366:4371] CHIP:TOO: Device commissioning completed with success disabled: true @@ -38,7 +45,7 @@ tests: verification: | Open a commissioning window On TH1(Chiptool)using below command - pairing open-commissioning-window 1 1 400 2000 3841 + ./chip-tool pairing open-commissioning-window 1 1 400 2000 3841 Verify the Successfully opened pairing window On TH1(Chiptool)e device @@ -52,7 +59,7 @@ tests: verification: | Now send the below command for commissionin DUT to TH2 with Manual pairing code generated in TH1 using open commission window - pairing code 2 36253605617 --commissioner-name beta + ./chip-tool pairing code 2 36253605617 --commissioner-name beta Verify the commissioning completed with success on TH2(chip-tool) from DUT @@ -64,7 +71,7 @@ tests: verification: | Open a commissioning window On TH1(Chiptool)using below command - pairing open-commissioning-window 1 1 400 2000 3842 + ./chip-tool pairing open-commissioning-window 1 1 400 2000 3842 Verify the Successfully opened pairing window On TH1(Chiptool)e device @@ -78,7 +85,7 @@ tests: verification: | send the below command for commissionin DUT to TH3 with Manual pairing code generated in TH1 using open commission window - pairing code 3 36545248276 --commissioner-name gamma + ./chip-tool pairing code 3 36545248276 --commissioner-name gamma Verify the commissioning completed with success on TH3(chip-tool) from DUT @@ -91,7 +98,7 @@ tests: field set to 0x0000." PICS: S.S.C03.Rsp verification: | - scenesmanagement remove-all-scenes 0x0000 1 1 + ./chip-tool scenesmanagement remove-all-scenes 0x0000 1 1 Verify the RemoveAllScenesResponse with following fields: Status is SUCCESS @@ -107,7 +114,7 @@ tests: - label: "Step 1b: Repeat Step 1a with TH2." PICS: S.S.C03.Rsp verification: | - scenesmanagement remove-all-scenes 0x0000 2 1 --commissioner-name beta + ./chip-tool scenesmanagement remove-all-scenes 0x0000 2 1 --commissioner-name beta Verify the RemoveAllScenesResponse with following fields: Status is SUCCESS @@ -124,7 +131,7 @@ tests: - label: "Step 1C: Repeat Step 1a with TH3." PICS: S.S.C03.Rsp verification: | - scenesmanagement remove-all-scenes 0x0000 3 1 --commissioner-name gamma + ./chip-tool scenesmanagement remove-all-scenes 0x0000 3 1 --commissioner-name gamma Verify the RemoveAllScenesResponse with following fields: Status is SUCCESS @@ -140,7 +147,7 @@ tests: - label: "Step 2a: TH1 reads from the DUT the SceneTableSize attribute" verification: | - scenesmanagement read scene-table-size 1 1 + ./chip-tool scenesmanagement read scene-table-size 1 1 Verify the "SceneTableSize" attribute value is SceneTableSize(minimum=16) which is recorded into SceneTableSize on the TH (Chip-tool) and below is the sample log provided for the raspi platform: @@ -155,7 +162,7 @@ tests: verification: | Please use Interactive mode to Verify the subscription Here the command to enter interactive mode:-- - interactive start + ./chip-tool interactive start Set up the subscription between DUT and TH by sending the command mentioned below, and verify that the subscription is activated successfully @@ -235,7 +242,7 @@ tests: Please use Interactive mode to Verify the subscription of an event Here the command to enter interactive mode:-- - interactive start + ./chip-tool interactive start Set up the subscription between DUT and TH by sending the command mentioned below, and verify that the subscription is activated successfully @@ -295,7 +302,7 @@ tests: verification: | Please use Interactive mode to Verify the subscription of an event Here the command to enter interactive mode:-- - interactive start + ./chip-tool interactive start Set up the subscription between DUT and TH by sending the command mentioned below, and verify that the subscription is activated successfully diff --git a/src/app/tests/suites/certification/Test_TC_TCTL_1_1.yaml b/src/app/tests/suites/certification/Test_TC_TCTL_1_1.yaml deleted file mode 100644 index 680b359d2b7d32..00000000000000 --- a/src/app/tests/suites/certification/Test_TC_TCTL_1_1.yaml +++ /dev/null @@ -1,158 +0,0 @@ -# Copyright (c) 2023 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: 178.1.1. [TC-TCTL-1.1] Global attributes with DUT as Server - -PICS: - - TCTL.S - -config: - nodeId: 0x12344321 - cluster: "Temperature Control" - endpoint: 1 - -tests: - - label: "Step 1: Wait for the commissioned device to be retrieved" - cluster: "DelayCommands" - command: "WaitForCommissionee" - arguments: - values: - - name: "nodeId" - value: nodeId - - - label: "Step 2: TH reads from the DUT the ClusterRevision attribute" - command: "readAttribute" - attribute: "ClusterRevision" - response: - value: 1 - constraints: - type: int16u - - - label: "Step 3a: TH reads from the DUT the FeatureMap attribute" - command: "readAttribute" - attribute: "FeatureMap" - PICS: "!TCTL.S.F00 && !TCTL.S.F01 && !TCTL.S.F02" - response: - value: 0 - constraints: - type: bitmap32 - - - label: - "Step 3b: TH reads from the DUT the FeatureMap attribute. bit 0: SHALL - be 1 if and only if TCTL.S.F00(TN) & !TCTL.S.F01(TL)" - command: "readAttribute" - attribute: "FeatureMap" - PICS: TCTL.S.F00 && !TCTL.S.F01 - response: - constraints: - type: bitmap32 - hasMasksSet: [0x1] - - - label: - "Step 3c: TH reads from the DUT the FeatureMap attribute. bit 1: SHALL - be 1 if and only if TCTL.S.F01(TL) & !TCTL.S.F00(TN)" - command: "readAttribute" - attribute: "FeatureMap" - PICS: TCTL.S.F01 && !TCTL.S.F00 - response: - constraints: - type: bitmap32 - hasMasksSet: [0x2] - - - label: - "Step 3d: TH reads from the DUT the FeatureMap attribute. bit 2: SHALL - be 1 if and only if TCTL.S.F02(A_STEP) & TCTL.S.F00(TN)" - command: "readAttribute" - attribute: "FeatureMap" - PICS: TCTL.S.F02 && TCTL.S.F00 - response: - constraints: - type: bitmap32 - hasMasksSet: [0x4] - - - label: "Step 4a: TH reads from the DUT the AttributeList attribute." - PICS: PICS_EVENT_LIST_ENABLED - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [65528, 65529, 65530, 65531, 65532, 65533] - - - label: "Step 4a: TH reads from the DUT the AttributeList attribute." - PICS: "!PICS_EVENT_LIST_ENABLED" - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [65528, 65529, 65531, 65532, 65533] - - - label: - "Step 4b: TH reads from the DUT the AttributeList attribute. 0x0000, - 0x0001, 0x0002: SHALL be included if and only if TCTL.S.F00(TN)" - PICS: TCTL.S.F00 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [0, 1, 2] - - - label: - "Step 4c: TH reads from the DUT the AttributeList attribute. 0x0003: - SHALL be included if and only if TCTL.S.F02(A_STEP)" - PICS: TCTL.S.F02 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [3] - - - label: - "Step 4d: TH reads from the DUT the AttributeList attribute. 0x0004 & - 0x0005: SHALL be included if and only if TCTL.S.F01(TL)" - PICS: TCTL.S.F01 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [4, 5] - - - label: "Step 5: TH reads from the DUT the AcceptedCommandList attribute." - command: "readAttribute" - attribute: "AcceptedCommandList" - response: - constraints: - type: list - contains: [0] - - - label: "Step 6: TH reads from the DUT the GeneratedCommandList attribute." - command: "readAttribute" - attribute: "GeneratedCommandList" - response: - value: [] - constraints: - type: list - - - label: "Step 7: TH reads from the DUT the EventList attribute." - PICS: PICS_EVENT_LIST_ENABLED - command: "readAttribute" - attribute: "EventList" - response: - value: [] - constraints: - type: list diff --git a/src/app/tests/suites/certification/Test_TC_TSTAT_1_1.yaml b/src/app/tests/suites/certification/Test_TC_TSTAT_1_1.yaml deleted file mode 100644 index ef8f688bf5e89c..00000000000000 --- a/src/app/tests/suites/certification/Test_TC_TSTAT_1_1.yaml +++ /dev/null @@ -1,639 +0,0 @@ -# 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: 42.1.1. [TC-TSTAT-1.1] Global Attributes with DUT as Server - -PICS: - - TSTAT.S - -config: - nodeId: 0x12344321 - cluster: "Thermostat" - endpoint: 1 - -tests: - - label: - "Step 1: Commission DUT to TH (can be skipped if done in a preceding - test)." - cluster: "DelayCommands" - command: "WaitForCommissionee" - arguments: - values: - - name: "nodeId" - value: nodeId - - - label: "Step 2: TH reads from the DUT the ClusterRevision attribute." - command: "readAttribute" - attribute: "ClusterRevision" - response: - value: 7 - constraints: - type: int16u - - - label: "Step 3a: TH reads from the DUT the FeatureMap attribute." - PICS: - "!TSTAT.S.F00 && !TSTAT.S.F01 && !TSTAT.S.F02 && !TSTAT.S.F03 && - !TSTAT.S.F04 && !TSTAT.S.F05" - command: "readAttribute" - attribute: "FeatureMap" - response: - value: 0 - constraints: - type: bitmap32 - - - label: - "Step 3b: Given TSTAT.S.F00(HEAT ensure featuremap has the correct bit - set" - PICS: TSTAT.S.F00 - command: "readAttribute" - attribute: "FeatureMap" - response: - constraints: - type: bitmap32 - hasMasksSet: [0x1] - - - label: - "Step 3c: Given TSTAT.S.F01(COOL) ensure featuremap has the correct - bit set" - PICS: TSTAT.S.F01 - command: "readAttribute" - attribute: "FeatureMap" - response: - constraints: - type: bitmap32 - hasMasksSet: [0x2] - - - label: - "Step 3d: Given TSTAT.S.F02(OCC) ensure featuremap has the correct bit - set" - PICS: TSTAT.S.F02 - command: "readAttribute" - attribute: "FeatureMap" - response: - constraints: - type: bitmap32 - hasMasksSet: [0x4] - - - label: - "Step 3e: Given TSTAT.S.F03(SCH) ensure featuremap has the correct bit - set" - PICS: TSTAT.S.F03 - command: "readAttribute" - attribute: "FeatureMap" - response: - constraints: - type: bitmap32 - hasMasksSet: [0x8] - - - label: - "Step 3f: Given TSTAT.S.F04(SB) ensure featuremap has the correct bit - set" - PICS: TSTAT.S.F04 - command: "readAttribute" - attribute: "FeatureMap" - response: - constraints: - type: bitmap32 - hasMasksSet: [0x10] - - - label: - "Step 3g: Given TSTAT.S.F05(AUTO) ensure featuremap has the correct - bit set" - PICS: TSTAT.S.F05 - command: "readAttribute" - attribute: "FeatureMap" - response: - constraints: - type: bitmap32 - hasMasksSet: [0x20] - - - label: - "Step 3h: Given TSTAT.S.F06(LTNE) ensure featuremap has the correct - bit set" - PICS: TSTAT.S.F06 - command: "readAttribute" - attribute: "FeatureMap" - response: - constraints: - type: bitmap32 - hasMasksSet: [0x40] - - - label: - "Step 3i: Given TSTAT.S.F08(PRES ensure featuremap has the correct bit - set" - PICS: TSTAT.S.F08 - command: "readAttribute" - attribute: "FeatureMap" - response: - constraints: - type: bitmap32 - hasMasksSet: [0x100] - - - label: "Step 4a: TH reads from the DUT the AttributeList attribute." - PICS: PICS_EVENT_LIST_ENABLED - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [0, 27, 28, 65528, 65529, 65530, 65531, 65532, 65533] - - - label: "Step 4a: TH reads from the DUT the AttributeList attribute." - PICS: "!PICS_EVENT_LIST_ENABLED" - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [0, 27, 28, 65528, 65529, 65531, 65532, 65533] - - - label: - "Step 4b: TH reads the Feature dependent(TSTAT.S.F00(HEAT)) attribute - in AttributeList" - PICS: TSTAT.S.F00 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [18] - - label: - "Step 4c: TH reads the Feature dependent(TSTAT.S.F01(COOL)) attribute - in AttributeList" - PICS: TSTAT.S.F01 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [17] - - - label: - "Step 4d: TH reads the Feature dependent(TSTAT.S.F02(OCC)) attribute - in AttributeList" - PICS: TSTAT.S.F02 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [2] - - - label: - "Step 4e: TH reads the Feature dependent(TSTAT.S.F00(HEAT) & - TSTAT.S.F02(OCC)) attribute in AttributeList" - PICS: TSTAT.S.F00 && TSTAT.S.F02 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [20] - - - label: - "Step 4f: TH reads the Feature dependent(TSTAT.S.F01(COOL) & - TSTAT.S.F02(OCC)) attribute in AttributeList" - PICS: TSTAT.S.F01 && TSTAT.S.F02 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [19] - - - label: - "Step 4g: TH reads the Feature dependent(TSTAT.S.F05(AUTO)) attribute - in AttributeList" - PICS: TSTAT.S.F05 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [17, 18, 25] - - - label: - "Step 4h: TH reads the Feature dependent(TSTAT.S.F03(SCH)) attribute - in AttributeList" - PICS: TSTAT.S.F03 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [32, 33, 34] - - - label: - "Step 4i: TH reads the Feature dependent(TSTAT.S.F04(SB)) attribute in - AttributeList" - PICS: TSTAT.S.F04 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [52, 53, 54] - - - label: - "Step 4j: TH reads the Feature dependent(TSTAT.S.F04(SB) & - TSTAT.S.F02(OCC)) attribute in AttributeList" - PICS: TSTAT.S.F04 && TSTAT.S.F02 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [55, 56, 57] - - - label: "Step 4k: TH reads the optional attribute in AttributeList" - PICS: TSTAT.S.A0001 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [1] - - - label: "Step 4l: TH reads the optional attribute in AttributeList" - PICS: TSTAT.S.A0009 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [9] - - - label: "Step 4m: TH reads the optional attribute in AttributeList" - PICS: TSTAT.S.A0010 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [16] - - - label: "Step 4n: TH reads the optional attribute in AttributeList" - PICS: TSTAT.S.A001a - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [26] - - - label: "Step 4o: TH reads the optional attribute in AttributeList" - PICS: TSTAT.S.A001d - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [29] - - - label: "Step 4p: TH reads the optional attribute in AttributeList" - PICS: TSTAT.S.A0023 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [35] - - - label: "Step 4q: TH reads the optional attribute in AttributeList" - PICS: TSTAT.S.A0024 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [36] - - - label: "Step 4r: TH reads the optional attribute in AttributeList" - PICS: TSTAT.S.A0025 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [37] - - - label: "Step 4s: TH reads the optional attribute in AttributeList" - PICS: TSTAT.S.A0029 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [41] - - - label: "Step 4t: TH reads the optional attribute in AttributeList" - PICS: TSTAT.S.A0030 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [48] - - - label: "Step 4u: TH reads the optional attribute in AttributeList" - PICS: TSTAT.S.A0031 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [49] - - - label: "Step 4x: TH reads the optional attribute in AttributeList" - PICS: TSTAT.S.A0032 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [50] - - - label: "Step 4y: TH reads the optional attribute: AttributeList" - PICS: TSTAT.S.A003a - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [58] - - - label: "Step 4z: TH reads the optional attribute in AttributeList" - PICS: TSTAT.S.A0040 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [64] - - - label: "Step 4A: TH reads the optional attribute in AttributeList" - PICS: TSTAT.S.A0041 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [65] - - - label: "Step 4B: TH reads the optional attribute in AttributeList" - PICS: TSTAT.S.A0042 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [66] - - - label: "Step 4C: TH reads the optional attribute in AttributeList" - PICS: TSTAT.S.A0043 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [67] - - - label: "Step 4D: TH reads the optional attribute: AttributeList" - PICS: TSTAT.S.A0044 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [68] - - - label: "Step 4E: TH reads the optional attribute in AttributeList" - PICS: TSTAT.S.A0045 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [69] - - - label: "Step 4F: TH reads the optional attribute in AttributeList" - PICS: TSTAT.S.A0046 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [70] - - - label: "Step 4g: TH reads the optional attribute: AttributeList" - PICS: TSTAT.S.A0047 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [71] - - - label: - "Step 4H: TH reads the Feature dependent(TSTAT.S.F00(HEAT)) optional - attribute in AttributeList" - PICS: TSTAT.S.F00 && TSTAT.S.A0003 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [3] - - - label: - "Step 4I: TH reads the Feature dependent(TSTAT.S.F00(HEAT)) optional - attribute in AttributeList" - PICS: TSTAT.S.F00 && TSTAT.S.A0004 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [4] - - - label: - "Step 4J: TH reads the Feature dependent(TSTAT.S.F00(HEAT)) optional - attribute in AttributeList" - PICS: TSTAT.S.F00 && TSTAT.S.A0008 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [8] - - - label: - "Step 4K: TH reads the Feature dependent(TSTAT.S.F00(HEAT)) optional - attribute in AttributeList" - PICS: TSTAT.S.F00 && TSTAT.S.A0015 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [21] - - - label: - "Step 4L: TH reads the Feature dependent(TSTAT.S.F00(HEAT)) optional - attribute in AttributeList" - PICS: TSTAT.S.F00 && TSTAT.S.A0016 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [22] - - - label: - "Step 4M: TH reads the Feature dependent(TSTAT.S.F01(COOL)) optional - attribute in AttributeList" - PICS: TSTAT.S.F01 && TSTAT.S.A0005 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [5] - - - label: - "Step 4N: TH reads the Feature dependent(TSTAT.S.F01(COOL)) optional - attribute in AttributeList" - PICS: TSTAT.S.F01 && TSTAT.S.A0007 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [6] - - - label: - "Step 4O: TH reads the Feature dependent(TSTAT.S.F01(COOL)) optional - attribute in AttributeList" - PICS: TSTAT.S.F01 && TSTAT.S.A0007 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [7] - - - label: - "Step 4P: TH reads the Feature dependent(TSTAT.S.F01(COOL)) optional - attribute in AttributeList" - PICS: TSTAT.S.F01 && TSTAT.S.A0017 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [23] - - - label: - "Step 4Q: TH reads the Feature dependent(TSTAT.S.F01(COOL)) optional - attribute in AttributeList" - PICS: TSTAT.S.F01 && TSTAT.S.A0018 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [24] - - - label: - "Step 4R: TH reads the Feature dependent(TSTAT.S.F05(AUTO)) optional - attribute in AttributeList" - PICS: TSTAT.S.F05 && TSTAT.S.A001e - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [30] - - - label: - "Step 4j: TH reads the Feature dependent(TSTAT.S.F08(PRES) attribute - in AttributeList" - PICS: TSTAT.S.F08 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [72, 74, 78, 80] - - - label: "Step 5: TH reads EventList attribute from the DUT." - PICS: PICS_EVENT_LIST_ENABLED - command: "readAttribute" - attribute: "EventList" - response: - value: [] - constraints: - type: list - - - label: "Step 6a: TH reads from the DUT the AcceptedCommandList attribute." - command: "readAttribute" - attribute: "AcceptedCommandList" - response: - constraints: - type: list - contains: [0] - - - label: - "Step 6b: TH reads Feature dependent(TSTAT.S.F03(SCH)) commands in - AcceptedCommandList" - PICS: TSTAT.S.F03 - command: "readAttribute" - attribute: "AcceptedCommandList" - response: - constraints: - type: list - contains: [1, 2, 3] - - - label: - "Step 6c: TH reads Feature dependent(TSTAT.S.F08(PRES)) commands in - AcceptedCommandList" - PICS: TSTAT.S.F08 - command: "readAttribute" - attribute: "AcceptedCommandList" - response: - constraints: - type: list - contains: [6, 254] - - - label: - "Step 7a: TH reads Feature dependent(TSTAT.S.F03(SCH)) commands in - GeneratedCommandList" - PICS: TSTAT.S.F03 - command: "readAttribute" - attribute: "GeneratedCommandList" - response: - constraints: - type: list - contains: [0] - - - label: - "Step 7b: TH reads Feature dependent(TSTAT.S.F08(PRES)) commands in - the GeneratedCommandList attribute." - PICS: TSTAT.S.F08 & TSTAT.S.Cfe.Rsp - command: "readAttribute" - attribute: "GeneratedCommandList" - response: - value: [0xFD] # AtomicResponse - constraints: - type: list diff --git a/src/app/tests/suites/certification/Test_TC_TVOCCONC_1_1.yaml b/src/app/tests/suites/certification/Test_TC_TVOCCONC_1_1.yaml deleted file mode 100644 index 8ccf1825791667..00000000000000 --- a/src/app/tests/suites/certification/Test_TC_TVOCCONC_1_1.yaml +++ /dev/null @@ -1,339 +0,0 @@ -# Copyright (c) 2023 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: 145.1.1. [TC-TVOCCONC-1.1] Global Attributes with DUT as Server - -PICS: - - TVOCCONC.S - -config: - nodeId: 0x12344321 - cluster: "Total Volatile Organic Compounds Concentration Measurement" - endpoint: 1 - -tests: - - label: - "Step 1: Commission DUT to TH (can be skipped if done in a preceding - test)" - cluster: "DelayCommands" - command: "WaitForCommissionee" - arguments: - values: - - name: "nodeId" - value: nodeId - - - label: "Step 2: TH reads from the DUT the ClusterRevision attribute." - command: "readAttribute" - attribute: "ClusterRevision" - response: - value: 3 - constraints: - type: int16u - - - label: - "Step 3a: TH reads from the DUT the FeatureMap attribute and check for - either bit 0 or 1 set" - command: "readAttribute" - attribute: "FeatureMap" - response: - constraints: - type: bitmap32 - hasMasksSet: [0x03] - - - label: - "Step 3b: Given TVOCCONC.S.F00(MEA) ensure featuremap has the correct - bit set" - command: "readAttribute" - attribute: "FeatureMap" - PICS: TVOCCONC.S.F00 - response: - constraints: - type: bitmap32 - hasMasksSet: [0x1] - - - label: - "Step 3c: Given TVOCCONC.S.F00(MEA) is not set, ensure featuremap has - the correct bit clear" - command: "readAttribute" - attribute: "FeatureMap" - PICS: " !TVOCCONC.S.F00 " - response: - constraints: - type: bitmap32 - hasMasksClear: [0x1] - - - label: - "Step 3d: Given TVOCCONC.S.F01(LEV) ensure featuremap has the correct - bit set" - command: "readAttribute" - attribute: "FeatureMap" - PICS: TVOCCONC.S.F01 - response: - constraints: - type: bitmap32 - hasMasksSet: [0x2] - - - label: - "Step 3e: Given TVOCCONC.S.F01(LEV) is not set, ensure featuremap has - the correct bit clear" - command: "readAttribute" - attribute: "FeatureMap" - PICS: " !TVOCCONC.S.F01 " - response: - constraints: - type: bitmap32 - hasMasksClear: [0x2] - - - label: - "Step 3f: Given TVOCCONC.S.F02(MED) ensure featuremap has the correct - bit set" - command: "readAttribute" - attribute: "FeatureMap" - PICS: TVOCCONC.S.F02 && TVOCCONC.S.F01 - response: - constraints: - type: bitmap32 - hasMasksSet: [0x4, 0x2] - - - label: - "Step 3g: Given TVOCCONC.S.F02(MED) is not set, ensure featuremap has - the correct bit clear" - command: "readAttribute" - attribute: "FeatureMap" - PICS: " !TVOCCONC.S.F02 && !TVOCCONC.S.F01 " - response: - constraints: - type: bitmap32 - hasMasksClear: [0x4] - - - label: - "Step 3h: Given TVOCCONC.S.F03(CRI) ensure featuremap has the correct - bits set" - command: "readAttribute" - attribute: "FeatureMap" - PICS: TVOCCONC.S.F03 && TVOCCONC.S.F01 - response: - constraints: - type: bitmap32 - hasMasksSet: [0x8, 0x2] - - - label: - "Step 3i: Given TVOCCONC.S.F03(CRI) is not set, ensure featuremap has - the correct bit clear" - command: "readAttribute" - attribute: "FeatureMap" - PICS: " !TVOCCONC.S.F03 && !TVOCCONC.S.F01" - response: - constraints: - type: bitmap32 - hasMasksClear: [0x8] - - - label: - "Step 3j: Given TVOCCONC.S.F04(PEA) ensure featuremap has the correct - bits set" - command: "readAttribute" - attribute: "FeatureMap" - PICS: TVOCCONC.S.F04 && TVOCCONC.S.F00 - response: - constraints: - type: bitmap32 - hasMasksSet: [0x10, 0x1] - - - label: - "Step 3k: Given TVOCCONC.S.F04(PEA) is not set, ensure featuremap has - the correct bit clear" - command: "readAttribute" - attribute: "FeatureMap" - PICS: " !TVOCCONC.S.F04 && !TVOCCONC.S.F00 " - response: - constraints: - type: bitmap32 - hasMasksClear: [0x10] - - - label: - "Step 3l: Given TVOCCONC.S.F05(AVG) ensure featuremap has the correct - bits set" - command: "readAttribute" - attribute: "FeatureMap" - PICS: TVOCCONC.S.F05 && TVOCCONC.S.F00 - response: - constraints: - type: bitmap32 - hasMasksSet: [0x20, 0x1] - - - label: - "Step 3m: Given TVOCCONC.S.F05(AVG) is not set, ensure featuremap has - the correct bit clear" - command: "readAttribute" - attribute: "FeatureMap" - PICS: " !TVOCCONC.S.F05 && !TVOCCONC.S.F00 " - response: - constraints: - type: bitmap32 - hasMasksClear: [0x20] - - - label: "Step 4a: TH reads from the DUT the AttributeList attribute" - command: "readAttribute" - attribute: "AttributeList" - PICS: PICS_EVENT_LIST_ENABLED - response: - constraints: - type: list - contains: [9, 65528, 65529, 65530, 65531, 65532, 65533] - - - label: "Step 4a: TH reads from the DUT the AttributeList attribute." - command: "readAttribute" - attribute: "AttributeList" - PICS: "!PICS_EVENT_LIST_ENABLED" - response: - constraints: - type: list - contains: [9, 65528, 65529, 65531, 65532, 65533] - - - label: - "Step 4b: TH reads the optional attribute Uncertainty in AttributeList" - command: "readAttribute" - attribute: "AttributeList" - PICS: TVOCCONC.S.A0007 && TVOCCONC.S.F00 - response: - constraints: - type: list - contains: [7] - - - label: - "Step 4c: Check the optional attribute Uncertainty is excluded from - AttributeList when TVOCCONC.S.A0007 is not set" - command: "readAttribute" - attribute: "AttributeList" - PICS: " !TVOCCONC.S.A0007 " - response: - constraints: - type: list - excludes: [7] - - - label: - "Step 4d: TH reads the optional, feature dependent attributes - MeasuredValue, MinMeasuredValue, MaxMeasuredValue and Measurement Unit - in AttributeList" - command: "readAttribute" - attribute: "AttributeList" - PICS: TVOCCONC.S.F00 - response: - constraints: - type: list - contains: [0, 1, 2, 8] - - - label: - "Step 4e: Check that MeasuredValue, MinMeasuredValue, - MaxMeasuredValue, Measurement Unit and Uncertainty are excluded from - AttributeList when TVOCCONC.S.F00 (MEA) is not set" - command: "readAttribute" - attribute: "AttributeList" - PICS: " !TVOCCONC.S.F00 " - response: - constraints: - type: list - excludes: [0, 1, 2, 7, 8] - - - label: - "Step 4f: TH reads the optional, feature dependent attributes - PeakMeasuredValue & PeakMeasuredValueWindow in AttributeList" - command: "readAttribute" - attribute: "AttributeList" - PICS: TVOCCONC.S.F04 - response: - constraints: - type: list - contains: [3, 4] - - - label: - "Step 4g: Check that PeakMeasuredValue & PeakMeasuredValueWindow are - excluded from AttributeList when TVOCCONC.S.F04 (PEA) is not set" - command: "readAttribute" - attribute: "AttributeList" - PICS: " !TVOCCONC.S.F04 " - response: - constraints: - type: list - excludes: [3, 4] - - - label: - "Step 4h: TH reads the optional, feature dependent attributes - AverageMeasuredValue AverageMeasuredValueWindow in AttributeList" - command: "readAttribute" - attribute: "AttributeList" - PICS: TVOCCONC.S.F05 - response: - constraints: - type: list - contains: [5, 6] - - - label: - "Step 4i: Check that AverageMeasuredValue and - AverageMeasuredValueWindow are excluded from AttributeList when - TVOCCONC.S.F05 (AVG) is not set" - command: "readAttribute" - attribute: "AttributeList" - PICS: " !TVOCCONC.S.F05 " - response: - constraints: - type: list - excludes: [5, 6] - - - label: - "Step 4j: TH reads the optional, feature dependent attribute - LevelValue in AttributeList" - command: "readAttribute" - attribute: "AttributeList" - PICS: TVOCCONC.S.F01 - response: - constraints: - type: list - contains: [10] - - - label: - "Step 4k: Check that LevelValue is excluded from AttributeList when - TVOCCONC.S.F01 (LEV) is not set" - command: "readAttribute" - attribute: "AttributeList" - PICS: " !TVOCCONC.S.F01 " - response: - constraints: - type: list - excludes: [10] - - - label: "Step 5: TH reads from the DUT the EventList attribute" - command: "readAttribute" - attribute: "EventList" - PICS: PICS_EVENT_LIST_ENABLED - response: - value: [] - constraints: - type: list - - - label: "Step 6: TH reads from the DUT the AcceptedCommandList attribute." - command: "readAttribute" - attribute: "AcceptedCommandList" - response: - value: [] - constraints: - type: list - - - label: "Step 7: TH reads from the DUT the GeneratedCommandList attribute." - command: "readAttribute" - attribute: "GeneratedCommandList" - response: - value: [] - constraints: - type: list diff --git a/src/app/tests/suites/certification/Test_TC_WNCV_1_1.yaml b/src/app/tests/suites/certification/Test_TC_WNCV_1_1.yaml deleted file mode 100644 index cde5ae4934b20d..00000000000000 --- a/src/app/tests/suites/certification/Test_TC_WNCV_1_1.yaml +++ /dev/null @@ -1,248 +0,0 @@ -# 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: Window Covering [TC-WNCV-1.1] Global attributes [DUT as Server] - -PICS: - - WNCV.S - -config: - nodeId: 0x12344321 - cluster: "Window Covering" - endpoint: 1 - -tests: - - label: "Step 1: Commission DUT to TH" - cluster: "DelayCommands" - command: "WaitForCommissionee" - arguments: - values: - - name: "nodeId" - value: nodeId - - ### MANDATORY GLOBAL Attributes - ### Attribute[0xFFFD]: ClusterRevision ======================================= - - label: - "Step 2: TH reads from the DUT the (0xFFFD) ClusterRevision attribute" - command: "readAttribute" - attribute: "ClusterRevision" - response: - value: 5 - constraints: - type: int16u - minValue: 5 - maxValue: 200 - - - label: "Step 3a: TH reads from the DUT the (0xFFFC) FeatureMap attribute" - PICS: - "!WNCV.S.F00 && !WNCV.S.F01 && !WNCV.S.F02 && !WNCV.S.F03 && - !WNCV.S.F04 " - command: "readAttribute" - attribute: "FeatureMap" - response: - value: 0 - constraints: - type: bitmap32 - - - label: - "Step 3b: Given WNCV.S.F00(LF) ensure featuremap has the correct bit - set" - PICS: WNCV.S.F00 - command: "readAttribute" - attribute: "FeatureMap" - response: - constraints: - type: bitmap32 - hasMasksSet: [0x1] - - - label: - "Step 3c: Given WNCV.S.F01(TL) ensure featuremap has the correct bit - set" - PICS: WNCV.S.F01 - command: "readAttribute" - attribute: "FeatureMap" - response: - constraints: - type: bitmap32 - hasMasksSet: [0x2] - - - label: - "Step 3d: Given WNCV.S.F02(PA_LF) ensure featuremap has the correct - bit set" - PICS: WNCV.S.F02 - command: "readAttribute" - attribute: "FeatureMap" - response: - constraints: - type: bitmap32 - hasMasksSet: [0x4] - - - label: - "Step 3e: Given WNCV.S.F03(ABS) ensure featuremap has the correct bit - set" - PICS: WNCV.S.F03 - command: "readAttribute" - attribute: "FeatureMap" - response: - constraints: - type: bitmap32 - hasMasksSet: [0x8] - - - label: - "Step 3f: Given WNCV.S.F04(PA_TL) ensure featuremap has the correct - bit set" - PICS: WNCV.S.F04 - command: "readAttribute" - attribute: "FeatureMap" - response: - constraints: - type: bitmap32 - hasMasksSet: [0x10] - - - label: - "Step 4a: TH reads from the DUT the (0xFFFB) AttributeList attribute" - PICS: PICS_EVENT_LIST_ENABLED - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: - [0, 7, 10, 13, 23, 65528, 65529, 65530, 65531, 65532, 65533] - - - label: - "Step 4a: TH reads from the DUT the (0xFFFB) AttributeList attribute" - PICS: "!PICS_EVENT_LIST_ENABLED" - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [0, 7, 10, 13, 23, 65528, 65529, 65531, 65532, 65533] - - - label: - "Step 4b: TH reads optional attribute(SafetyStatus) in AttributeList" - PICS: WNCV.S.A001a - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [26] - - - label: - "Step 4c: TH reads the Feature dependent(WNCV.S.F00 & WNCV.S.F02 & - WNCV.S.F03) attribute in AttributeList" - PICS: WNCV.S.F00 && WNCV.S.F02 && WNCV.S.F03 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [16, 17] - - - label: - "Step 4d: TH reads the Feature dependent(WNCV.S.F00 & WNCV.S.F02 ) - attribute in AttributeList" - PICS: WNCV.S.F00 && WNCV.S.F02 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [11, 14] - - - label: - "Step 4e: TH reads the Feature dependent(WNCV.S.F01 & WNCV.S.F04 & - WNCV.S.F03) attribute in AttributeList" - PICS: WNCV.S.F01 && WNCV.S.F04 && WNCV.S.F03 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [18, 19] - - - label: - "Step 4f: TH reads the Feature dependent(WNCV.S.F01 & WNCV.S.F04 ) - attribute in AttributeList" - PICS: WNCV.S.F01 && WNCV.S.F04 - command: "readAttribute" - attribute: "AttributeList" - response: - constraints: - type: list - contains: [12, 15] - - - label: "Step 5: TH reads from the DUT the (0xFFFA) EventList attribute" - PICS: PICS_EVENT_LIST_ENABLED - command: "readAttribute" - attribute: "EventList" - response: - value: [] - constraints: - type: list - - - label: - "Step 6a: TH reads from the DUT the (0xFFF9) AcceptedCommandList - attribute" - command: "readAttribute" - attribute: "AcceptedCommandList" - response: - constraints: - type: list - contains: [0, 1, 2] - - - label: - "Step 6b: TH reads Feature dependent(WNCV.S.F00 & WNCV.S.F02) command - in AcceptedCommandList" - PICS: WNCV.S.F00 && WNCV.S.F02 - command: "readAttribute" - attribute: "AcceptedCommandList" - response: - constraints: - type: list - contains: [5] - - - label: - "Step 6c: TH reads Feature dependent(WNCV.S.F01 & WNCV.S.F03) command - in AcceptedCommandList" - PICS: WNCV.S.F01 && WNCV.S.F03 - command: "readAttribute" - attribute: "AcceptedCommandList" - response: - constraints: - type: list - contains: [7] - - - label: - "Step 6d: TH reads Feature dependent(WNCV.S.F01 & WNCV.S.F04) command - in AcceptedCommandList" - PICS: WNCV.S.F01 && WNCV.S.F04 - command: "readAttribute" - attribute: "AcceptedCommandList" - response: - constraints: - type: list - contains: [8] - - - label: - "Step 7: TH reads from the DUT the (0xFFF8) GeneratedCommandList - attribute" - command: "readAttribute" - attribute: "GeneratedCommandList" - response: - value: [] - constraints: - type: list diff --git a/src/lib/core/CHIPConfig.h b/src/lib/core/CHIPConfig.h index 7827f5a8c335f2..382c63497da51d 100644 --- a/src/lib/core/CHIPConfig.h +++ b/src/lib/core/CHIPConfig.h @@ -1485,11 +1485,12 @@ extern const char CHIP_NON_PRODUCTION_MARKER[]; #endif /** - * @brief The maximum number of clusters per scene, defaults to 3 for a typical usecase (onOff + level control + color control - * cluster). Needs to be changed in case a greater number of clusters is chosen. + * @brief The maximum number of clusters per scene, we recommend using 4 for a typical use case (onOff + level control + color + * control cluster + mode selec cluster). Needs to be changed in case a greater number of clusters is chosen. In the event the + * device does not need to support the mode select cluster, the maximum number of clusters per scene should be set to 3. */ #ifndef CHIP_CONFIG_SCENES_MAX_CLUSTERS_PER_SCENE -#define CHIP_CONFIG_SCENES_MAX_CLUSTERS_PER_SCENE 3 +#define CHIP_CONFIG_SCENES_MAX_CLUSTERS_PER_SCENE 4 #endif /** diff --git a/src/python_testing/TC_CCTRL_2_2.py b/src/python_testing/TC_CCTRL_2_2.py index a2e7b15dc2af99..1bc403a7e48031 100644 --- a/src/python_testing/TC_CCTRL_2_2.py +++ b/src/python_testing/TC_CCTRL_2_2.py @@ -138,8 +138,7 @@ def steps_TC_CCTRL_2_2(self) -> list[TestStep]: TestStep(24, "Reading Event CommissioningRequestResult from DUT, confirm one new event"), TestStep(25, "Send CommissionNode command to DUT with CASE session, with valid parameters"), TestStep(26, "Send OpenCommissioningWindow command on Administrator Commissioning Cluster sent to TH_SERVER"), - TestStep(27, "Wait for DUT to successfully commission TH_SERVER, 30 seconds"), - TestStep(28, "Get number of fabrics from TH_SERVER, verify DUT successfully commissioned TH_SERVER")] + TestStep(27, "Get number of fabrics from TH_SERVER, verify DUT successfully commissioned TH_SERVER (up to 30 seconds)")] return steps @@ -317,15 +316,22 @@ async def test_TC_CCTRL_2_2(self): await self.send_single_cmd(cmd, dev_ctrl=self.TH_server_controller, node_id=self.server_nodeid, endpoint=0, timedRequestTimeoutMs=5000) self.step(27) - if not self.is_pics_sdk_ci_only: - time.sleep(30) - - self.step(28) - th_server_fabrics_new = await self.read_single_attribute_check_success(cluster=Clusters.OperationalCredentials, attribute=Clusters.OperationalCredentials.Attributes.Fabrics, dev_ctrl=self.TH_server_controller, node_id=self.server_nodeid, endpoint=0, fabric_filtered=False) - # TODO: this should be mocked too. - if not self.is_pics_sdk_ci_only: - asserts.assert_equal(len(th_server_fabrics) + 1, len(th_server_fabrics_new), - "Unexpected number of fabrics on TH_SERVER") + max_wait_time_sec = 30 + start_time = time.time() + elapsed = 0 + time_remaining = max_wait_time_sec + previous_number_th_server_fabrics = len(th_server_fabrics_new) + + while time_remaining > 0: + time.sleep(2) + th_server_fabrics_new = await self.read_single_attribute_check_success(cluster=Clusters.OperationalCredentials, attribute=Clusters.OperationalCredentials.Attributes.Fabrics, dev_ctrl=self.TH_server_controller, node_id=self.server_nodeid, endpoint=0, fabric_filtered=False) + if previous_number_th_server_fabrics != len(th_server_fabrics_new): + break + elapsed = time.time() - start_time + time_remaining = max_wait_time_sec - elapsed + + asserts.assert_equal(previous_number_th_server_fabrics + 1, len(th_server_fabrics_new), + "Unexpected number of fabrics on TH_SERVER") if __name__ == "__main__": diff --git a/src/python_testing/TC_CCTRL_2_3.py b/src/python_testing/TC_CCTRL_2_3.py index fe7ed3de40702d..83c25290cf6207 100644 --- a/src/python_testing/TC_CCTRL_2_3.py +++ b/src/python_testing/TC_CCTRL_2_3.py @@ -122,8 +122,7 @@ def steps_TC_CCTRL_2_3(self) -> list[TestStep]: TestStep(8, "Send CommissionNode command to DUT with CASE session, with valid parameters"), TestStep(9, "Send another CommissionNode command to DUT with CASE session, with with same RequestId as the previous one"), TestStep(10, "Send OpenCommissioningWindow command on Administrator Commissioning Cluster sent to TH_SERVER"), - TestStep(11, "Wait for DUT to successfully commission TH_SERVER, 30 seconds"), - TestStep(12, "Get number of fabrics from TH_SERVER, verify DUT successfully commissioned TH_SERVER")] + TestStep(11, "Get number of fabrics from TH_SERVER, verify DUT successfully commissioned TH_SERVER (up to 30 seconds)")] return steps @@ -196,11 +195,23 @@ async def test_TC_CCTRL_2_3(self): await self.send_single_cmd(cmd, dev_ctrl=self.TH_server_controller, node_id=self.server_nodeid, endpoint=0, timedRequestTimeoutMs=5000) self.step(11) - time.sleep(5 if self.is_pics_sdk_ci_only else 30) - - self.step(12) - th_server_fabrics_new = await self.read_single_attribute_check_success(cluster=Clusters.OperationalCredentials, attribute=Clusters.OperationalCredentials.Attributes.Fabrics, dev_ctrl=self.TH_server_controller, node_id=self.server_nodeid, endpoint=0, fabric_filtered=False) - asserts.assert_equal(len(th_server_fabrics) + 1, len(th_server_fabrics_new), + max_wait_time_sec = 30 + start_time = time.time() + elapsed = 0 + time_remaining = max_wait_time_sec + previous_number_th_server_fabrics = len(th_server_fabrics) + + th_server_fabrics_new = None + while time_remaining > 0: + time.sleep(2) + th_server_fabrics_new = await self.read_single_attribute_check_success(cluster=Clusters.OperationalCredentials, attribute=Clusters.OperationalCredentials.Attributes.Fabrics, dev_ctrl=self.TH_server_controller, node_id=self.server_nodeid, endpoint=0, fabric_filtered=False) + if previous_number_th_server_fabrics != len(th_server_fabrics_new): + break + elapsed = time.time() - start_time + time_remaining = max_wait_time_sec - elapsed + + asserts.assert_not_equal(th_server_fabrics_new, None, "Failed to read Fabrics attribute") + asserts.assert_equal(previous_number_th_server_fabrics + 1, len(th_server_fabrics_new), "Unexpected number of fabrics on TH_SERVER") diff --git a/src/python_testing/TC_MCORE_FS_1_1.py b/src/python_testing/TC_MCORE_FS_1_1.py index 995a80cd941289..780089b807ecfe 100755 --- a/src/python_testing/TC_MCORE_FS_1_1.py +++ b/src/python_testing/TC_MCORE_FS_1_1.py @@ -199,14 +199,24 @@ async def test_TC_MCORE_FS_1_1(self): await self.send_single_cmd(cmd, dev_ctrl=self.TH_server_controller, node_id=self.server_nodeid, endpoint=0, timedRequestTimeoutMs=5000) self.step("3c") - if not self.is_pics_sdk_ci_only: - time.sleep(30) + max_wait_time_sec = 30 + start_time = time.time() + elapsed = 0 + time_remaining = max_wait_time_sec + previous_number_th_server_fabrics = len(th_fsa_server_fabrics) + + th_fsa_server_fabrics_new = None + while time_remaining > 0: + time.sleep(2) + th_fsa_server_fabrics_new = await self.read_single_attribute_check_success(cluster=Clusters.OperationalCredentials, attribute=Clusters.OperationalCredentials.Attributes.Fabrics, dev_ctrl=self.TH_server_controller, node_id=self.server_nodeid, endpoint=0, fabric_filtered=False) + if previous_number_th_server_fabrics != len(th_fsa_server_fabrics_new): + break + elapsed = time.time() - start_time + time_remaining = max_wait_time_sec - elapsed - th_fsa_server_fabrics_new = await self.read_single_attribute_check_success(cluster=Clusters.OperationalCredentials, attribute=Clusters.OperationalCredentials.Attributes.Fabrics, dev_ctrl=self.TH_server_controller, node_id=self.server_nodeid, endpoint=0, fabric_filtered=False) - # TODO: this should be mocked too. - if not self.is_pics_sdk_ci_only: - asserts.assert_equal(len(th_fsa_server_fabrics) + 1, len(th_fsa_server_fabrics_new), - "Unexpected number of fabrics on TH_SERVER") + asserts.assert_not_equal(th_fsa_server_fabrics_new, None, "Failed to read Fabrics attribute") + asserts.assert_equal(previous_number_th_server_fabrics + 1, len(th_fsa_server_fabrics_new), + "Unexpected number of fabrics on TH_SERVER") if __name__ == "__main__":