diff options
author | Francis Dupont <fdupont@isc.org> | 2018-09-12 11:52:50 +0200 |
---|---|---|
committer | Francis Dupont <fdupont@isc.org> | 2018-09-12 11:52:50 +0200 |
commit | 1b9e1b8496ee09a0137c05c659d741f194f180c2 (patch) | |
tree | 9d0734300d4df88a7f47e54895dc3cc08bd9e556 | |
parent | [65-libyang-generic] Addressed comments (diff) | |
download | kea-1b9e1b8496ee09a0137c05c659d741f194f180c2.tar.xz kea-1b9e1b8496ee09a0137c05c659d741f194f180c2.zip |
[65-libyang-generic] Updated identity ref unit tests to sysrepo devel
-rw-r--r-- | src/lib/yang/tests/translator_unittests.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/yang/tests/translator_unittests.cc b/src/lib/yang/tests/translator_unittests.cc index ddf7ccd510..074afc1628 100644 --- a/src/lib/yang/tests/translator_unittests.cc +++ b/src/lib/yang/tests/translator_unittests.cc @@ -303,12 +303,12 @@ TEST(TranslatorBasicTest, getItem) { // Identity reference. xpath = "/keatest-module:main/id_ref"; - s_val.reset(new Val("id_1", SR_IDENTITYREF_T)); + s_val.reset(new Val("keatest-module:id_1", SR_IDENTITYREF_T)); EXPECT_NO_THROW(sess->set_item(xpath.c_str(), s_val)); EXPECT_NO_THROW(elem = t_obj->getItem(xpath)); ASSERT_TRUE(elem); ASSERT_EQ(Element::string, elem->getType()); - EXPECT_EQ("id_1", elem->stringValue()); + EXPECT_EQ("keatest-module:id_1", elem->stringValue()); elem.reset(); // Enumeration item. @@ -600,12 +600,12 @@ TEST(TranslatorBasicTest, setItem) { // Identity reference. xpath = "/keatest-module:main/id_ref"; - elem = Element::create(string("id_1")); + elem = Element::create(string("keatest-module:id_1")); EXPECT_NO_THROW(t_obj->setItem(xpath, elem, SR_IDENTITYREF_T)); EXPECT_NO_THROW(s_val = sess->get_item(xpath.c_str())); ASSERT_TRUE(s_val); ASSERT_EQ(SR_IDENTITYREF_T, s_val->type()); - EXPECT_EQ("id_1", string(s_val->data()->get_identityref())); + EXPECT_EQ("keatest-module:id_1", string(s_val->data()->get_identityref())); s_val.reset(); // Enumeration item. |