Skip to content

Commit 4679067

Browse files
committed
Fix delete response assertion to expect NO_CONTENT status
1 parent dff586f commit 4679067

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

basyx.aasrepository/basyx.aasrepository-http/src/test/java/org/eclipse/digitaltwin/basyx/aasrepository/http/AasRepositoryHTTPSuite.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ public void removeSubmodelReference() throws FileNotFoundException, IOException,
280280
CloseableHttpResponse deleteResponse = BaSyxHttpTestUtils.executeDeleteOnURL(url);
281281
CloseableHttpResponse getResponse = BaSyxHttpTestUtils.executeGetOnURL(getSpecificAasSubmodelRefAccessURL(dummyAasId));
282282

283-
assertEquals(200, deleteResponse.getCode());
283+
assertEquals(204, deleteResponse.getCode());
284284

285285
String response = BaSyxHttpTestUtils.getResponseAsString(getResponse);
286286
BaSyxHttpTestUtils.assertSameJSONContent(getSMReferenceRemovalJson(), getJSONWithoutCursorInfo(response));

0 commit comments

Comments
 (0)