Fix serializePercentEncodingTest() 08/111208/1
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 2 Apr 2024 16:56:15 +0000 (18:56 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 2 Apr 2024 16:58:29 +0000 (18:58 +0200)
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 <robert.varga@pantheon.tech>
restconf/restconf-nb/src/test/java/org/opendaylight/restconf/nb/rfc8040/utils/parser/YangInstanceIdentifierSerializerTest.java

index 628542445a8607845686ec31556a698e10040574..85f4ee0fd4811a0de3c29250671a4f7b33892a58 100644 (file)
@@ -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()));
     }