Add API to get the keyword name component for metadata and prefix announcements
Change-Id: I612afef79814cad8ada502aa820c4b8f2732daea
diff --git a/tests/unit/prefix-announcement.t.cpp b/tests/unit/prefix-announcement.t.cpp
index f6cad22..9a3eba9 100644
--- a/tests/unit/prefix-announcement.t.cpp
+++ b/tests/unit/prefix-announcement.t.cpp
@@ -255,6 +255,14 @@
BOOST_CHECK_NE(pa2, pa);
}
+BOOST_AUTO_TEST_CASE(KeywordComponent)
+{
+ BOOST_CHECK_EQUAL(PrefixAnnouncement::getKeywordComponent().wireEncode(),
+ "20 02 5041"_block);
+ BOOST_CHECK_EQUAL(PrefixAnnouncement::getKeywordComponent().toUri(name::UriFormat::CANONICAL),
+ "32=PA");
+}
+
BOOST_AUTO_TEST_SUITE_END() // TestPrefixAnnouncement
} // namespace tests