37 lines
727 B
C++
37 lines
727 B
C++
|
|
|
|
|
|
#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");
|
|
podc.checkPodsHierarchy();
|
|
auto tmp = podc.getInfoForPod("hamburg");
|
|
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 == "hamburg");
|
|
|
|
// REQUIRE(info1 != "");
|
|
|
|
|
|
|
|
|
|
|
|
} //THEN
|
|
} // WHEN
|
|
} // GIVEN
|
|
} //SCENARIO
|