tests: sign command Interests with CommandInterestSigner
Previously used ndn::v2::KeyChain::sign creates signed Interests, not
command Interests.
refs #4089
Change-Id: I7b13926d676ff81041f036eaec1978d82e8e1dfd
diff --git a/tests/daemon/mgmt/strategy-choice-manager.t.cpp b/tests/daemon/mgmt/strategy-choice-manager.t.cpp
index 609fc5c..e0933e4 100644
--- a/tests/daemon/mgmt/strategy-choice-manager.t.cpp
+++ b/tests/daemon/mgmt/strategy-choice-manager.t.cpp
@@ -94,7 +94,7 @@
expectedResp.setCode(200)
.setText("OK")
.setBody(expectedParams.wireEncode());
- BOOST_CHECK_EQUAL(checkResponse(0, req->getName(), expectedResp),
+ BOOST_CHECK_EQUAL(checkResponse(0, req.getName(), expectedResp),
CheckResponseResult::OK);
BOOST_CHECK_EQUAL(getInstanceName("/A"), strategyNameP);
@@ -114,7 +114,7 @@
ControlResponse expectedResp;
expectedResp.setCode(404)
.setText("Strategy not registered");
- BOOST_CHECK_EQUAL(checkResponse(0, req->getName(), expectedResp),
+ BOOST_CHECK_EQUAL(checkResponse(0, req.getName(), expectedResp),
CheckResponseResult::OK);
BOOST_CHECK_EQUAL(hasEntry("/A"), false);
@@ -135,7 +135,7 @@
expectedResp.setCode(200)
.setText("OK")
.setBody(expectedParams.wireEncode());
- BOOST_CHECK_EQUAL(checkResponse(0, req->getName(), expectedResp),
+ BOOST_CHECK_EQUAL(checkResponse(0, req.getName(), expectedResp),
CheckResponseResult::OK);
BOOST_CHECK_EQUAL(hasEntry("/A"), false);
@@ -153,7 +153,7 @@
expectedResp.setCode(200)
.setText("OK")
.setBody(expectedParams.wireEncode());
- BOOST_CHECK_EQUAL(checkResponse(0, req->getName(), expectedResp),
+ BOOST_CHECK_EQUAL(checkResponse(0, req.getName(), expectedResp),
CheckResponseResult::OK);
BOOST_CHECK_EQUAL(hasEntry("/A"), false);
@@ -169,7 +169,7 @@
ControlResponse expectedResp;
expectedResp.setCode(400)
.setText("failed in validating parameters");
- BOOST_CHECK_EQUAL(checkResponse(0, req->getName(), expectedResp),
+ BOOST_CHECK_EQUAL(checkResponse(0, req.getName(), expectedResp),
CheckResponseResult::OK);
BOOST_CHECK_EQUAL(hasEntry("/"), true);
@@ -192,7 +192,7 @@
expected[name] = strategy;
}
- receiveInterest(makeInterest("/localhost/nfd/strategy-choice/list"));
+ receiveInterest(Interest("/localhost/nfd/strategy-choice/list"));
Block dataset = concatenateResponses();
dataset.parse();
BOOST_CHECK_EQUAL(dataset.elements_size(), expected.size());