log UPDATE parser data path print
Fixes #1930
diff --git a/tests/utests/extensions/test_schema_mount.c b/tests/utests/extensions/test_schema_mount.c
index bcc3f95..6f33d01 100644
--- a/tests/utests/extensions/test_schema_mount.c
+++ b/tests/utests/extensions/test_schema_mount.c
@@ -226,7 +226,7 @@
CHECK_PARSE_LYD_PARAM(xml, LYD_XML, LYD_PARSE_STRICT, LYD_VALIDATE_PRESENT, LY_EVALID, data);
CHECK_LOG_CTX("No module with namespace \"unknown\" in the context.",
- "Schema location \"/sm:root\", data location \"/sm:root\", line number 1.");
+ "Data location \"/sm:root\", line number 1.");
CHECK_PARSE_LYD_PARAM(json, LYD_JSON, 0, LYD_VALIDATE_PRESENT, LY_SUCCESS, data);
assert_string_equal(LYD_NAME(data), "root");
@@ -237,7 +237,7 @@
CHECK_PARSE_LYD_PARAM(json, LYD_JSON, LYD_PARSE_STRICT, LYD_VALIDATE_PRESENT, LY_EVALID, data);
CHECK_LOG_CTX("No module named \"unknown\" in the context.",
- "Schema location \"/sm:root\", data location \"/sm:root\", line number 1.");
+ "Data location \"/sm:root\", line number 1.");
/* missing required callback data */
xml =
@@ -250,7 +250,7 @@
"</root>";
CHECK_PARSE_LYD_PARAM(xml, LYD_XML, LYD_PARSE_STRICT, LYD_VALIDATE_PRESENT, LY_EVALID, data);
CHECK_LOG_CTX("Node \"interfaces\" not found as a child of \"root\" node.",
- "Schema location \"/sm:root\", data location \"/sm:root\", line number 1.");
+ "Data location \"/sm:root\", line number 1.");
json =
"{"
@@ -266,7 +266,7 @@
"}";
CHECK_PARSE_LYD_PARAM(json, LYD_JSON, LYD_PARSE_STRICT, LYD_VALIDATE_PRESENT, LY_EVALID, data);
CHECK_LOG_CTX("Node \"interfaces\" not found as a child of \"root\" node.",
- "Schema location \"/sm:root\", data location \"/sm:root\", line number 1.");
+ "Data location \"/sm:root\", line number 1.");
ly_ctx_set_ext_data_clb(UTEST_LYCTX, test_ext_data_clb,
"<yang-library xmlns=\"urn:ietf:params:xml:ns:yang:ietf-yang-library\" "
@@ -1123,8 +1123,7 @@
CHECK_PARSE_LYD_PARAM(xml, LYD_XML, LYD_PARSE_STRICT, LYD_VALIDATE_PRESENT, LY_EVALID, data);
CHECK_LOG_CTX("Extension plugin \"libyang 2 - Schema Mount, version 1\": "
"Invalid leafref value \"target-value\" - no target instance \"/sm:target\" with the same value.",
- "Schema location \"/ietf-interfaces:interfaces/interface/sm:sm-name\", "
- "data location \"/ietf-interfaces:interfaces/interface[name='bu']/sm:sm-name\".");
+ "Data location \"/ietf-interfaces:interfaces/interface[name='bu']/sm:sm-name\".");
json =
"{\n"
@@ -1149,8 +1148,7 @@
CHECK_PARSE_LYD_PARAM(json, LYD_JSON, LYD_PARSE_STRICT, LYD_VALIDATE_PRESENT, LY_EVALID, data);
CHECK_LOG_CTX("Extension plugin \"libyang 2 - Schema Mount, version 1\": "
"Invalid leafref value \"target-value\" - no target instance \"/sm:target\" with the same value.",
- "Schema location \"/ietf-interfaces:interfaces/interface/sm:sm-name\", "
- "data location \"/ietf-interfaces:interfaces/interface[name='bu']/sm:sm-name\", line number 18.");
+ "Data location \"/ietf-interfaces:interfaces/interface[name='bu']/sm:sm-name\", line number 18.");
/* success */
xml =