ADD: added test_podInfo and a bug fix

This commit is contained in:
Henry Winkel
2023-10-26 15:02:01 +02:00
parent 96d1e3e2af
commit 7938112f5c
4 changed files with 41 additions and 4 deletions

36
tests/test_podInfo.cpp Normal file
View File

@@ -0,0 +1,36 @@
#include "kubecontrol/PodController.hpp"
#include "nlohmann/json_fwd.hpp"
#define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include <kubecontrol/PodInfo.hpp>
SCENARIO("Testing the SimCore Sensor")
{
kubecontrol::PodController podc("docs/config");
auto tmp = podc.getInfoForPod("webapp");
LOG_S(INFO)<<tmp;
kubecontrol::PodInfo info(tmp);
GIVEN("different Attributes for a Track in different forms")
{
WHEN("constructing Track Object with data")
{
THEN("check if Track attributes are correct")
{
REQUIRE(info.Uuid == "webapp");
// REQUIRE(info1 != "");
} //THEN
} // WHEN
} // GIVEN
} //SCENARIO