Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
andreilitvin committed Oct 3, 2024
1 parent 0912e9a commit 6386bf7
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions src/app/tests/TestCommandInteraction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -372,9 +372,21 @@ class MockCommandHandlerCallback : public CommandHandlerImpl::Callback
{
DispatchSingleClusterCommand(aCommandPath, apPayload, &apCommandObj);
}
Protocols::InteractionModel::Status CommandExists(const ConcreteCommandPath & aCommandPath)

Protocols::InteractionModel::Status ValidateCommandCanBeDispatched(const DataModel::InvokeRequest & request) override
{
return ServerClusterCommandExists(aCommandPath);
using Protocols::InteractionModel::Status;

Status status = ServerClusterCommandExists(request.path);
if (status != Status::Success)
{
return status;
}

// NOTE: IM does more validation here, however for now we do minimal options
// to pass the test.

return Status::Success;
}

void ResetCounter() { onFinalCalledTimes = 0; }
Expand Down

0 comments on commit 6386bf7

Please sign in to comment.