From: Robert Varga Date: Tue, 2 Apr 2024 16:56:15 +0000 (+0200) Subject: Fix serializePercentEncodingTest() X-Git-Tag: v7.0.4~7 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=59c8abcd52eaef8dc8ae2ef1860d7eea0b439dc6;p=netconf.git Fix serializePercentEncodingTest() The test is passing the wrong QName for key leaf, which should be 'name'. Fix this as this test will start failing when we perform proper encoding. JIRA: NETCONF-1264 Change-Id: Ida98ac1e0c486a25bcb02d2728f6ea389d297538 Signed-off-by: Robert Varga --- diff --git a/restconf/restconf-nb/src/test/java/org/opendaylight/restconf/nb/rfc8040/utils/parser/YangInstanceIdentifierSerializerTest.java b/restconf/restconf-nb/src/test/java/org/opendaylight/restconf/nb/rfc8040/utils/parser/YangInstanceIdentifierSerializerTest.java index 628542445a..85f4ee0fd4 100644 --- a/restconf/restconf-nb/src/test/java/org/opendaylight/restconf/nb/rfc8040/utils/parser/YangInstanceIdentifierSerializerTest.java +++ b/restconf/restconf-nb/src/test/java/org/opendaylight/restconf/nb/rfc8040/utils/parser/YangInstanceIdentifierSerializerTest.java @@ -222,7 +222,7 @@ class YangInstanceIdentifierSerializerTest { YangInstanceIdentifier.builder() .node(QName.create("serializer:test", "2016-06-06", "list-one-key")) .nodeWithKey(QName.create("serializer:test", "2016-06-06", "list-one-key"), - QName.create("serializer:test", "2016-06-06", "list-one-key"), "foo:foo bar/foo,bar/'bar'") + QName.create("serializer:test", "2016-06-06", "name"), "foo:foo bar/foo,bar/'bar'") .build())); }