@@ 10,6 10,8 @@
#include <source/version.hpp>
#include <time/time_conversion.hpp>
#include <service-desktop/service-desktop/ServiceDesktop.hpp>
+#include <version.hpp>
+
#include <cstdint>
#include <string>
@@ 50,7 52,8 @@ auto DeviceInfoEndpoint::getDeviceInfo(Context &context) -> bool
{json::gitTag, (std::string)GIT_TAG},
{json::gitBranch, (std::string)GIT_BRANCH},
{json::updateHistory, updateHistory},
- {json::currentRTCTime, std::to_string(static_cast<uint32_t>(utils::time::getCurrentTimestamp().getTime()))}}));
+ {json::currentRTCTime, std::to_string(static_cast<uint32_t>(utils::time::getCurrentTimestamp().getTime()))},
+ {json::version, std::string(VERSION)}}));
MessageHandler::putToSendQueue(context.createSimpleResponse());
return true;
@@ 132,6 132,7 @@ namespace parserFSM
inline constexpr auto statusCode = "statusCode";
inline constexpr auto updateHistory = "updateHistory";
inline constexpr auto fileExists = "fileExists";
+ inline constexpr auto version = "version";
namespace filesystem
{
@@ 3,7 3,6 @@
import pytest
from harness.interface.defs import status
-
@pytest.mark.service_desktop_test
def test_device_info(harness):
body = {}