Fix serializeNoPercentEncodingTest() 10/111210/1
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 2 Apr 2024 17:19:00 +0000 (19:19 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 2 Apr 2024 17:19:56 +0000 (19:19 +0200)
We do not specify the correct key here. Fix this mistake, as the test
will start failing once we do proper encoding.

JIRA: NETCONF-1264
Change-Id: I8c8eafcd221535a4d1e011bcb2f0096cad4f3409
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 807b52c06cfe36817bb93539f8d6821b669d1458..2b51eb68f6b7190cba2e23cba473d7f17200e549 100644 (file)
@@ -236,7 +236,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\"b\"bar")
+                    QName.create("serializer:test", "2016-06-06", "name"), "foo\"b\"bar")
             .build()));
     }