diff --git a/src/Mqtt/MqttMessagingProtocolJSON.cpp b/src/Mqtt/MqttMessagingProtocolJSON.cpp index 8e33ef4..1d580c8 100644 --- a/src/Mqtt/MqttMessagingProtocolJSON.cpp +++ b/src/Mqtt/MqttMessagingProtocolJSON.cpp @@ -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."); } @@ -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); } diff --git a/utest/TestMqttMessagingProtocolJSON.cpp b/utest/TestMqttMessagingProtocolJSON.cpp index 6c27eb4..32bc261 100644 --- a/utest/TestMqttMessagingProtocolJSON.cpp +++ b/utest/TestMqttMessagingProtocolJSON.cpp @@ -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": [] } @@ -352,7 +352,7 @@ namespace { "activityId": "id", "timestamp": 42, "payload": { - "status": "COMPLETE", + "status": "COMPLETED", "message": "Self-update completed, reboot required.", "actions": [ {