Skip to content

Commit

Permalink
adding few dummy logs to debug on travis
Browse files Browse the repository at this point in the history
  • Loading branch information
bashokba committed Jan 5, 2021
1 parent e2ef3f9 commit ed2c008
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions agent-ovs/lib/test/FaultManager_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,14 @@ static bool hasFault(const string& pathstr, FSFaultSource& faultsource, string u
template<typename T>
bool hasEPREntry(OFFramework& framework, const URI& uri,
const boost::optional<std::string>& uuid = boost::none) {
LOG(INFO) << "inside hasEPREntry";
boost::optional<std::shared_ptr<T> > entry =
T::resolve(framework, uri);
if (!entry) return false;
if (uuid) return (entry.get()->getUuid("") == uuid);
if (!entry) { LOG(INFO) << "returnig false"; return false ;}
if (uuid) { LOG(INFO) << "returnig true"; return (entry.get()->getUuid("") == uuid); }

LOG(INFO) << uri.toString();
if (entry) { LOG(INFO) << "return true" ;}
return true;
}

Expand Down Expand Up @@ -163,7 +167,7 @@ BOOST_FIXTURE_TEST_CASE( epfault, FSFaultFixture ) {
bd = space->addGbpBridgeDomain("bd");
eg1 = space->addGbpEpGroup("group1");
eg1->addGbpEpGroupToNetworkRSrc()
->setTargetBridgeDomain(bd->getURI());
->setTargetBridgeDomain(bd->getURI());
mutator.commit();

Endpoint ep1("e82e883b-851d-4cc6-bedb-fb5e27530043");
Expand All @@ -187,6 +191,7 @@ BOOST_FIXTURE_TEST_CASE( epfault, FSFaultFixture ) {
.addElement("EprL2Ep")
.addElement(bd->getURI().toString())
.addElement(MAC("00:00:00:00:00:01")).build();
LOG(INFO) << "callig has EPentry";
WAIT_FOR(hasEPREntry<L2Ep>(framework, l2epr1), 1000);

const std::string& uuid3 = "83f18f0b-80f7-46e2-b06c-4d9487b0c754-3";
Expand Down

0 comments on commit ed2c008

Please sign in to comment.