Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ public DeleteBucketResponse(CloseableHttpResponse response) throws IOException {

@Override
protected void processResponse() throws IOException {
checkStatusCode(200);
checkStatusCode(204);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ public DeleteObjectResponse(CloseableHttpResponse response) throws IOException {

@Override
protected void processResponse() throws IOException {
checkStatusCode(200);
checkStatusCode(204);
}
}
4 changes: 2 additions & 2 deletions src/test/java/com/spectralogic/ds3client/Ds3Client_Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ void validate(PutBucketRequest request) {
public void deleteBucket() throws IOException, SignatureException {
new NonStrictExpectations() {{
netClient.getResponse(withInstanceOf(DeleteBucketRequest.class));
result = new MockedResponse("", 200).getMockInstance();
result = new MockedResponse("", 204).getMockInstance();
forEachInvocation = new Object() {
void validate(DeleteBucketRequest request) {
assertThat(request.getPath(), is("/bucketName"));
Expand All @@ -154,7 +154,7 @@ void validate(DeleteBucketRequest request) {
public void deleteObject() throws IOException, SignatureException {
new NonStrictExpectations() {{
netClient.getResponse(withInstanceOf(DeleteObjectRequest.class));
result = new MockedResponse("", 200).getMockInstance();
result = new MockedResponse("", 204).getMockInstance();
forEachInvocation = new Object() {
void validate(DeleteObjectRequest request) {
assertThat(request.getPath(), is("/bucketName/my/file.txt"));
Expand Down