Remove bug7933.xml 77/107777/1
authorRobert Varga <robert.varga@pantheon.tech>
Sun, 10 Sep 2023 12:21:56 +0000 (14:21 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Sun, 10 Sep 2023 12:21:56 +0000 (14:21 +0200)
This is a single-use simple resource, inline it.

Change-Id: I350c0ddaa2233d6821cef6e2b25dac5c267176f1
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
restconf/restconf-nb/src/test/java/org/opendaylight/restconf/nb/rfc8040/databind/XmlResourceBodyTest.java
restconf/restconf-nb/src/test/resources/instanceidentifier/xml/bug7933.xml [deleted file]

index 743d0072566281e270315f1fbce0edeb74c8b6d6..88ae007ca6ef0f19d3288c6735c529d0ba4d1303 100644 (file)
@@ -53,7 +53,8 @@ public class XmlResourceBodyTest extends AbstractResourceBodyTest {
 
     private void assertThrowsException(final String uriPath, final String expectedErrorMessage) {
         final var ex = assertThrows(RestconfDocumentedException.class,
-            () -> parseResource(uriPath, "/instanceidentifier/xml/bug7933.xml"));
+            () -> parse(uriPath, """
+                <cont1 xmlns="instance:identifier:module"/>"""));
         final var restconfError = ex.getErrors().get(0);
         assertEquals(ErrorType.PROTOCOL, restconfError.getErrorType());
         assertEquals(ErrorTag.MALFORMED_MESSAGE, restconfError.getErrorTag());
diff --git a/restconf/restconf-nb/src/test/resources/instanceidentifier/xml/bug7933.xml b/restconf/restconf-nb/src/test/resources/instanceidentifier/xml/bug7933.xml
deleted file mode 100644 (file)
index aa0d79e..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-<!--
-  ~ Copyright (c) 2017 Pantheon Technologies s.r.o. and others.  All rights reserved.
-  ~
-  ~ This program and the accompanying materials are made available under the
-  ~ terms of the Eclipse Public License v1.0 which accompanies this distribution,
-  ~ and is available at http://www.eclipse.org/legal/epl-v10.html
-  -->
-
-<cont1 xmlns="instance:identifier:module"/>