mgmt: support LpReliability flag in faces/create and faces/update
refs #4003
Change-Id: Iddf94ea55c630b038187c2503783591b118230ec
diff --git a/tests/daemon/face/udp-factory.t.cpp b/tests/daemon/face/udp-factory.t.cpp
index 435b6d6..2747fa8 100644
--- a/tests/daemon/face/udp-factory.t.cpp
+++ b/tests/daemon/face/udp-factory.t.cpp
@@ -592,6 +592,7 @@
{},
ndn::nfd::FACE_PERSISTENCY_PERSISTENT,
false,
+ false,
{CreateFaceExpectedResult::FAILURE, 504, "No channels available to connect"});
factory.createChannel("127.0.0.1", "20071");
@@ -601,6 +602,7 @@
{},
ndn::nfd::FACE_PERSISTENCY_PERSISTENT,
false,
+ false,
{CreateFaceExpectedResult::SUCCESS, 0, ""});
createFace(factory,
@@ -608,6 +610,7 @@
{},
ndn::nfd::FACE_PERSISTENCY_PERMANENT,
false,
+ false,
{CreateFaceExpectedResult::SUCCESS, 0, ""});
createFace(factory,
@@ -615,6 +618,16 @@
{},
ndn::nfd::FACE_PERSISTENCY_PERMANENT,
false,
+ false,
+ {CreateFaceExpectedResult::SUCCESS, 0, ""});
+
+
+ createFace(factory,
+ FaceUri("udp4://127.0.0.1:20073"),
+ {},
+ ndn::nfd::FACE_PERSISTENCY_PERMANENT,
+ false,
+ true,
{CreateFaceExpectedResult::SUCCESS, 0, ""});
}
@@ -627,6 +640,7 @@
FaceUri("udp4://127.0.0.1:20071"),
ndn::nfd::FACE_PERSISTENCY_PERSISTENT,
false,
+ false,
{CreateFaceExpectedResult::FAILURE, 406,
"Unicast UDP faces cannot be created with a LocalUri"});
@@ -635,6 +649,7 @@
{},
ndn::nfd::FACE_PERSISTENCY_ON_DEMAND,
false,
+ false,
{CreateFaceExpectedResult::FAILURE, 406,
"Outgoing UDP faces do not support on-demand persistency"});
@@ -643,6 +658,7 @@
{},
ndn::nfd::FACE_PERSISTENCY_PERSISTENT,
false,
+ false,
{CreateFaceExpectedResult::FAILURE, 406,
"Cannot create multicast UDP faces"});
@@ -651,6 +667,7 @@
{},
ndn::nfd::FACE_PERSISTENCY_PERSISTENT,
true,
+ false,
{CreateFaceExpectedResult::FAILURE, 406,
"Local fields can only be enabled on faces with local scope"});
}