Report HTTP status 409 on DATA_MISSING error
[netconf.git] / restconf / restconf-nb-rfc8040 / src / test / java / org / opendaylight / restconf / nb / rfc8040 / rests / utils / DeleteDataTransactionUtilTest.java
index 696ae89ee59c7cc83a2b7d2d878a15ecf6faef06..b0fce39c4853728dc5d666f7a6c514814aef3d57 100644 (file)
@@ -73,7 +73,7 @@ public class DeleteDataTransactionUtilTest {
     }
 
     /**
-     * Negative test for DELETE operation when data to delete does not exist. Error 404 is expected.
+     * Negative test for DELETE operation when data to delete does not exist. Error DATA_MISSING is expected.
      */
     @Test
     public void deleteDataNegativeTest() throws Exception {
@@ -89,7 +89,6 @@ public class DeleteDataTransactionUtilTest {
         } catch (final RestconfDocumentedException e) {
             assertEquals(ErrorType.PROTOCOL, e.getErrors().get(0).getErrorType());
             assertEquals(ErrorTag.DATA_MISSING, e.getErrors().get(0).getErrorTag());
-            assertEquals(404, e.getErrors().get(0).getErrorTag().getStatusCode());
         }
     }
 }