diff --git a/test/utils/log/ApiLoggerTest.cpp b/test/utils/log/ApiLoggerTest.cpp index 44ec3410..4501ef1b 100644 --- a/test/utils/log/ApiLoggerTest.cpp +++ b/test/utils/log/ApiLoggerTest.cpp @@ -14,7 +14,8 @@ namespace UKControllerPluginUtilsTest::Api { TEST_F(ApiLoggerTest, ItLogsSync) { - const nlohmann::json expectedPayload = {{"type", "type"}, {"message", "message"}, {"plugin_version", "#VERSION_STRING#"}}; + const nlohmann::json expectedPayload = { + {"type", "type"}, {"message", "message"}, {"plugin_version", "#VERSION_STRING#"}}; this->ExpectApiRequest()->Post().To("plugin/logs").WithBody(expectedPayload).WillReturnCreated(); logger.Log("type", "message"); @@ -24,7 +25,10 @@ namespace UKControllerPluginUtilsTest::Api { { const nlohmann::json metadata = {{"key", "value"}}; const nlohmann::json expectedPayload = { - {"type", "type"}, {"message", "message"}, {"metadata", metadata.dump()}, {"plugin_version", "#VERSION_STRING#"}}; + {"type", "type"}, + {"message", "message"}, + {"metadata", metadata.dump()}, + {"plugin_version", "#VERSION_STRING#"}}; this->ExpectApiRequest()->Post().To("plugin/logs").WithBody(expectedPayload).WillReturnCreated(); logger.Log("type", "message", metadata); @@ -32,7 +36,8 @@ namespace UKControllerPluginUtilsTest::Api { TEST_F(ApiLoggerTest, ItLogsAsync) { - const nlohmann::json expectedPayload = {{"type", "type"}, {"message", "message"}, {"plugin_version", "#VERSION_STRING#"}}; + const nlohmann::json expectedPayload = { + {"type", "type"}, {"message", "message"}, {"plugin_version", "#VERSION_STRING#"}}; this->ExpectApiRequest()->Post().To("plugin/logs").WithBody(expectedPayload).WillReturnCreated(); logger.LogAsync("type", "message"); @@ -42,7 +47,10 @@ namespace UKControllerPluginUtilsTest::Api { { const nlohmann::json metadata = {{"key", "value"}}; const nlohmann::json expectedPayload = { - {"type", "type"}, {"message", "message"}, {"metadata", metadata.dump()}, {"plugin_version", "#VERSION_STRING#"}}; + {"type", "type"}, + {"message", "message"}, + {"metadata", metadata.dump()}, + {"plugin_version", "#VERSION_STRING#"}}; this->ExpectApiRequest()->Post().To("plugin/logs").WithBody(expectedPayload).WillReturnCreated(); logger.LogAsync("type", "message", metadata);