Skip to content

Commit

Permalink
Fixed typo in communication protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
OleksandrChaika committed Jan 13, 2023
1 parent 6995d4a commit 82f5101
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Mqtt/MqttMessagingProtocolJSON.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ namespace sua {
}

if(name == "skipped") {
return writeFeedbackWithoutPayload(ctx.desiredState, "COMPLETE",
return writeFeedbackWithoutPayload(ctx.desiredState, "COMPLETED",
"Current OS image is equal to the target one from desired state.");
}

Expand Down Expand Up @@ -161,7 +161,7 @@ namespace sua {

if(name == "installed") {
return writeFeedbackWithPayload(ctx.desiredState,
"COMPLETE", "Self-update completed, reboot required.",
"COMPLETED", "Self-update completed, reboot required.",
"UPDATE_SUCCESS", "Writing partition completed, reboot required.",
100);
}
Expand Down
4 changes: 2 additions & 2 deletions utest/TestMqttMessagingProtocolJSON.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ namespace {
"activityId": "id",
"timestamp": 42,
"payload": {
"status": "COMPLETE",
"status": "COMPLETED",
"message": "Current OS image is equal to the target one from desired state.",
"actions": []
}
Expand Down Expand Up @@ -352,7 +352,7 @@ namespace {
"activityId": "id",
"timestamp": 42,
"payload": {
"status": "COMPLETE",
"status": "COMPLETED",
"message": "Self-update completed, reboot required.",
"actions": [
{
Expand Down

0 comments on commit 82f5101

Please sign in to comment.