ADD: added container class and adapted test
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
#include "loguru.hpp"
|
||||
|
||||
|
||||
SCENARIO("Testing the SimCore Sensor")
|
||||
SCENARIO("Testing KubePod")
|
||||
{
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ SCENARIO("Testing the SimCore Sensor")
|
||||
std::string controller = "controller";
|
||||
std::string type = "ship";
|
||||
std::string image = "ship:latest";
|
||||
kubecontrol::KubePod ShipPod1(controller,uuid,type,image,"simulator");
|
||||
kubecontrol::KubePod ShipPod1("controller",uuid,type,image,"simulator");
|
||||
ShipPod1.setName(name);
|
||||
|
||||
nlohmann::json vars;
|
||||
@@ -74,8 +74,8 @@ 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>>();
|
||||
envmaps2->emplace("CONFIG", vars1.dump());
|
||||
auto envmaps2 = std::map<std::string, std::string>();
|
||||
envmaps2.emplace("CONFIG", vars1.dump());
|
||||
|
||||
ShipPod2.addContainer("CMS", "systemprototype:latest",envmaps2);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user