ADD: added more extracted details for a child pod and changed the data type for the child information
This commit is contained in:
@@ -97,7 +97,7 @@ std::this_thread::sleep_for(std::chrono::milliseconds(5000));
|
||||
REQUIRE(ShipPod1.getOwner() == "controller");
|
||||
REQUIRE(ShipPod1.getStatus() == "Running");
|
||||
REQUIRE(ShipPod1.getIp() != "");
|
||||
REQUIRE(ShipPod1.getUUIDsForChildPods(api).size() == 2);
|
||||
REQUIRE(ShipPod1.getPodsChilds(api).size() == 2);
|
||||
|
||||
// REQUIRE(info1 != "");
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ SCENARIO("Testing the SimCore Sensor")
|
||||
|
||||
|
||||
kubecontrol::PodController podc("docs/config");
|
||||
std::string name = "hamburg";
|
||||
std::string name = "test1";
|
||||
|
||||
std::string uuid = name;
|
||||
kubecontrol::KubePod ShipPod1("controller",uuid,"ship","ship:latest","simulator");
|
||||
@@ -78,6 +78,15 @@ ShipPod1.updateInfoForThisPod(podc.getKubernetesAPI());
|
||||
THEN("check if Track attributes are correct")
|
||||
{
|
||||
auto info = podc.getInfoForPod(ShipPod1.getUUID());
|
||||
for (auto item: info.Childs)
|
||||
{
|
||||
LOG_S(INFO)<<item.UUID;
|
||||
LOG_S(INFO)<<item.IP;
|
||||
LOG_S(INFO)<<item.Component;
|
||||
LOG_S(INFO)<<item.Status;
|
||||
|
||||
|
||||
}
|
||||
REQUIRE(info.UUID == ShipPod1.getUUID());
|
||||
REQUIRE(info.IP == ShipPod1.getIp());
|
||||
REQUIRE(info.Owner == ShipPod1.getOwner());
|
||||
|
||||
Reference in New Issue
Block a user