ADD: added updated drone.yml and changed some function calls
This commit is contained in:
@@ -22,7 +22,10 @@ SCENARIO("Testing the SimCore Sensor")
|
||||
|
||||
|
||||
std::string uuid = name;
|
||||
kubecontrol::KubePod ShipPod1("controller",uuid,"ship","ship:latest","simulator");
|
||||
std::string controller = "controller";
|
||||
std::string type = "ship";
|
||||
std::string image = "ship:latest";
|
||||
kubecontrol::KubePod ShipPod1(controller,uuid,type,image,"simulator");
|
||||
ShipPod1.setName(name);
|
||||
|
||||
nlohmann::json vars;
|
||||
@@ -49,7 +52,10 @@ ShipPod1.start(api);
|
||||
LOG_S(INFO)<<"started";
|
||||
|
||||
std::string name2 = "componenttest2";
|
||||
kubecontrol::KubePod ShipPod2("controller",name2,"CMS","ship:latest","simulator");
|
||||
std::string controller2 = "controller";
|
||||
std::string type2 = "ship";
|
||||
std::string image2 = "ship:latest";
|
||||
kubecontrol::KubePod ShipPod2(controller2,name2,type2,image2,"simulator");
|
||||
|
||||
nlohmann::json vars1;
|
||||
vars1["ENTITY_ID"] = name2;
|
||||
@@ -68,7 +74,7 @@ nlohmann::json vars1;
|
||||
vars["ENTITY_SENSORS"].push_back("radar:latest");
|
||||
ShipPod2.setEnvironmentVar("CONFIG", vars1.dump());
|
||||
|
||||
auto envmaps2 = std::make_shared<std::map<std::string, std::string>>();
|
||||
auto envmaps2 = std::make_shared<std::map<std::string, std::string>>();
|
||||
envmaps2->emplace("CONFIG", vars1.dump());
|
||||
|
||||
ShipPod2.addContainer("CMS", "systemprototype:latest",envmaps2);
|
||||
@@ -86,7 +92,7 @@ LOG_S(INFO)<<"started multi container pod";
|
||||
{
|
||||
WHEN("constructing Track Object with data")
|
||||
{
|
||||
|
||||
|
||||
THEN("check if Track attributes are correct")
|
||||
{
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(5000));
|
||||
@@ -96,11 +102,11 @@ std::this_thread::sleep_for(std::chrono::milliseconds(5000));
|
||||
REQUIRE(ShipPod1.getComponent() == "ship");
|
||||
REQUIRE(ShipPod1.getOwner() == "controller");
|
||||
REQUIRE(ShipPod1.getStatus() == "Running");
|
||||
REQUIRE(ShipPod1.getIp() != "");
|
||||
REQUIRE(!ShipPod1.getIp().empty());
|
||||
REQUIRE(ShipPod1.getPodsChilds(api).size() == 2);
|
||||
|
||||
// REQUIRE(info1 != "");
|
||||
|
||||
|
||||
|
||||
ShipPod1.stop(api);
|
||||
|
||||
@@ -111,4 +117,4 @@ std::this_thread::sleep_for(std::chrono::milliseconds(5000));
|
||||
} //THEN
|
||||
} // WHEN
|
||||
} // GIVEN
|
||||
} //SCENARIO
|
||||
} //SCENARIO
|
||||
|
||||
Reference in New Issue
Block a user