From 1b9e1b8496ee09a0137c05c659d741f194f180c2 Mon Sep 17 00:00:00 2001 From: Francis Dupont Date: Wed, 12 Sep 2018 11:52:50 +0200 Subject: [65-libyang-generic] Updated identity ref unit tests to sysrepo devel --- src/lib/yang/tests/translator_unittests.cc | 8 ++++---- 1 file 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. -- cgit v1.2.3