list func: update client config format
Change-Id: I147444d4b57dc360d6994ca9fe4f844139db777c
diff --git a/tests/unit-tests/client-config.t.cpp b/tests/unit-tests/client-config.t.cpp
index e1ad082..9e03da0 100644
--- a/tests/unit-tests/client-config.t.cpp
+++ b/tests/unit-tests/client-config.t.cpp
@@ -18,9 +18,10 @@
* See AUTHORS.md for complete list of ndncert authors and contributors.
*/
-#include "boost-test.hpp"
#include "client-config.hpp"
+#include "boost-test.hpp"
+
namespace ndn {
namespace ndncert {
namespace tests {
@@ -37,8 +38,7 @@
BOOST_CHECK_EQUAL(item.m_caName.toUri(), "/ndn/edu/ucla/CA");
BOOST_CHECK_EQUAL(item.m_caInfo, "UCLA's ceritificate authority, located in BH4805.");
BOOST_CHECK_EQUAL(item.m_probe, "Please use your email address to apply a namespace first. UCLA email is preferred.");
- BOOST_CHECK_EQUAL(item.m_supportedChallenges.size(), 2);
- BOOST_CHECK_EQUAL(item.m_supportedChallenges.front(), "PIN");
+ BOOST_CHECK_EQUAL(item.m_targetedList, "Use your email address (edu preferred) as input");
BOOST_CHECK_EQUAL(item.m_anchor.getName().toUri(),
"/ndn/site1/KEY/%11%BC%22%F4c%15%FF%17/self/%FD%00%00%01Y%C8%14%D9%A5");
}
@@ -52,9 +52,6 @@
item.m_caName = Name("/test");
item.m_caInfo = "test";
item.m_probe = "test";
- std::list<std::string> list;
- list.push_back("TEST");
- item.m_supportedChallenges = list;
config.addNewCaItem(item);
BOOST_CHECK_EQUAL(config.m_caItems.size(), 3);