ADD: added a general kubenetes API and integrated that in the classes and remodeled the info management
This commit is contained in:
@@ -58,7 +58,7 @@ std::string info1 = "";
|
||||
// nlohmann::json j1 = nlohmann::json::parse(info1);
|
||||
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(2000));
|
||||
|
||||
ShipPod1.updateInfoForThisPod(podc.getKubernetesAPI());
|
||||
// podc.checkPodsHierarchy();
|
||||
// LOG_S(INFO)<<podc.PodList_.size();;
|
||||
// for(auto i: podc.PodList_)
|
||||
@@ -77,11 +77,15 @@ std::this_thread::sleep_for(std::chrono::milliseconds(2000));
|
||||
|
||||
THEN("check if Track attributes are correct")
|
||||
{
|
||||
REQUIRE(podc.getListOfChildPods() == 1);
|
||||
auto info = podc.getInfoForPod(ShipPod1.getUUID());
|
||||
REQUIRE(info.UUID == ShipPod1.getUUID());
|
||||
REQUIRE(info.IP == ShipPod1.getIp());
|
||||
REQUIRE(info.Owner == ShipPod1.getOwner());
|
||||
REQUIRE(info.Component == ShipPod1.getComponent());
|
||||
|
||||
LOG_S(INFO)<<"Stopping";
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(5000));
|
||||
podc.stopAllPods();
|
||||
LOG_S(INFO)<<"Stopping";
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(5000));
|
||||
podc.stopAllPods();
|
||||
// REQUIRE(info1 != "");
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user