ADD: added name to KubePod and added the possibility to pass a shared pointer to start a pod

This commit is contained in:
Henry Winkel
2024-02-12 18:05:32 +01:00
parent 4045f21786
commit 2377948049
6 changed files with 48 additions and 1 deletions

View File

@@ -20,6 +20,7 @@ SCENARIO("Testing the SimCore Sensor")
std::string uuid = name;
kubecontrol::KubePod ShipPod1("controller",uuid,"ship","ship:latest","simulator");
ShipPod1.setName(name);
nlohmann::json vars;
vars["ENTITY_ID"] = uuid;
@@ -55,6 +56,8 @@ std::this_thread::sleep_for(std::chrono::milliseconds(5000));
THEN("check if Track attributes are correct")
{
REQUIRE(ShipPod1.getUUID() == "hamburg");
REQUIRE(ShipPod1.getName() == name);
REQUIRE(ShipPod1.getComponent() == "ship");
REQUIRE(ShipPod1.getOwner() == "controller");
REQUIRE(ShipPod1.getStatus() == "Running");