ca: set Data FreshnessPeriod in CaModule::issueCertificate()
Change-Id: I42a169f309e1069965b5f91ed8542a868a77c15b
diff --git a/tests/unit-tests/ca-module.t.cpp b/tests/unit-tests/ca-module.t.cpp
index b0d4955..00a3f58 100644
--- a/tests/unit-tests/ca-module.t.cpp
+++ b/tests/unit-tests/ca-module.t.cpp
@@ -476,6 +476,12 @@
BOOST_CHECK(state.m_status == Status::SUCCESS);
}
});
+ ca.setStatusUpdateCallback([](const RequestState& request) {
+ if (request.status == Status::SUCCESS && request.requestType == RequestType::NEW) {
+ BOOST_REQUIRE_NO_THROW(Certificate{request.cert});
+ BOOST_CHECK(Certificate(request.cert).isValid());
+ }
+ });
face.receive(*newInterest);
advanceClocks(time::milliseconds(20), 60);