ADD: added updated drone.yml and changed some function calls
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
|
||||
#include "kubecontrol/KubePod.hpp"
|
||||
#include "nlohmann/json_fwd.hpp"
|
||||
#include <string>
|
||||
#include <thread>
|
||||
#define CATCH_CONFIG_MAIN
|
||||
#include <catch2/catch.hpp>
|
||||
@@ -14,12 +15,15 @@
|
||||
SCENARIO("Testing the SimCore Sensor")
|
||||
{
|
||||
|
||||
|
||||
|
||||
kubecontrol::PodController podc("docs/config");
|
||||
std::string name = "test1";
|
||||
|
||||
std::string uuid = name;
|
||||
kubecontrol::KubePod ShipPod1("controller",uuid,"ship","ship:latest","simulator");
|
||||
std::string owner = "controller";
|
||||
std::string type = "ship";
|
||||
std::string image = "ship:latest";
|
||||
kubecontrol::KubePod ShipPod1(owner,uuid,type,image,"simulator");
|
||||
|
||||
nlohmann::json vars;
|
||||
vars["ENTITY_ID"] = uuid;
|
||||
@@ -63,9 +67,9 @@ ShipPod1.updateInfoForThisPod(podc.getKubernetesAPI());
|
||||
// LOG_S(INFO)<<podc.PodList_.size();;
|
||||
// for(auto i: podc.PodList_)
|
||||
// {
|
||||
// LOG_S(INFO)<< i.InfoPod.Uuid;
|
||||
// LOG_S(INFO)<< i.InfoPod.ToString();
|
||||
|
||||
// LOG_S(INFO)<< i.InfoPod.Uuid;
|
||||
// LOG_S(INFO)<< i.InfoPod.ToString();
|
||||
|
||||
// }
|
||||
|
||||
// nlohmann::json jall = nlohmann::json::parse(podc.getPodsInfo());
|
||||
@@ -74,11 +78,11 @@ ShipPod1.updateInfoForThisPod(podc.getKubernetesAPI());
|
||||
{
|
||||
WHEN("constructing Track Object with data")
|
||||
{
|
||||
|
||||
|
||||
THEN("check if Track attributes are correct")
|
||||
{
|
||||
auto info = podc.getInfoForPod(ShipPod1.getUUID());
|
||||
for (auto item: info.Childs)
|
||||
for (auto item: info.Childs)
|
||||
{
|
||||
LOG_S(INFO)<<item.UUID;
|
||||
LOG_S(INFO)<<item.IP;
|
||||
@@ -96,7 +100,7 @@ ShipPod1.updateInfoForThisPod(podc.getKubernetesAPI());
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(5000));
|
||||
podc.stopAllPods();
|
||||
// REQUIRE(info1 != "");
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -104,4 +108,4 @@ ShipPod1.updateInfoForThisPod(podc.getKubernetesAPI());
|
||||
} //THEN
|
||||
} // WHEN
|
||||
} // GIVEN
|
||||
} //SCENARIO
|
||||
} //SCENARIO
|
||||
|
||||
Reference in New Issue
Block a user