Update JSON format: add status field in NEW's response
Change-Id: I7a58a92567c5d503bfca4f5efc3d66d09c20aa28
diff --git a/tests/unit-tests/json-helper.t.cpp b/tests/unit-tests/json-helper.t.cpp
index 61a74e5..266d3ee 100644
--- a/tests/unit-tests/json-helper.t.cpp
+++ b/tests/unit-tests/json-helper.t.cpp
@@ -40,9 +40,10 @@
std::list<std::string> challenges;
challenges.push_back("PIN");
challenges.push_back("EMAIL");
- auto result = genResponseNewJson("598234759", challenges);
+ auto result = genResponseNewJson("598234759", "wait-selection", challenges);
BOOST_CHECK_EQUAL(result.get<std::string>(JSON_REQUEST_ID), "598234759");
+ BOOST_CHECK_EQUAL(result.get<std::string>(JSON_STATUS), "wait-selection");
auto child = result.get_child(JSON_CHALLENGES);
auto it = child.begin();
BOOST_CHECK_EQUAL(it->second.get<std::string>(JSON_CHALLENGE_TYPE), "PIN");