ADD: added name to KubePod and added the possibility to pass a shared pointer to start a pod
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user