Skip to content

Commit 895f48c

Browse files
committed
Added integration test for GetBlobsOnTape to verify no request payload
1 parent 60e6a5a commit 895f48c

File tree

1 file changed

+18
-6
lines changed
  • ds3-sdk-integration/src/test/java/com/spectralogic/ds3client/integration

1 file changed

+18
-6
lines changed

ds3-sdk-integration/src/test/java/com/spectralogic/ds3client/integration/Smoke_Test.java

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,22 +54,19 @@
5454
import java.nio.channels.SeekableByteChannel;
5555
import java.nio.charset.Charset;
5656
import java.nio.file.*;
57-
import java.util.ArrayList;
58-
import java.util.Collection;
59-
import java.util.HashMap;
60-
import java.util.List;
61-
import java.util.Map;
62-
import java.util.UUID;
57+
import java.util.*;
6358
import java.util.concurrent.CountDownLatch;
6459
import java.util.concurrent.TimeUnit;
6560
import java.util.concurrent.atomic.AtomicBoolean;
6661
import java.util.concurrent.atomic.AtomicInteger;
6762

6863
import static com.spectralogic.ds3client.integration.Util.*;
6964
import static com.spectralogic.ds3client.integration.test.helpers.ABMTestHelper.*;
65+
import static com.spectralogic.ds3client.utils.Guard.isNotNullAndNotEmpty;
7066
import static org.hamcrest.CoreMatchers.*;
7167
import static org.junit.Assert.*;
7268
import static org.junit.Assume.assumeThat;
69+
import static org.junit.Assume.assumeTrue;
7370

7471
public class Smoke_Test {
7572

@@ -1676,4 +1673,19 @@ public void createFolderWithSlash() throws IOException {
16761673
deleteAllContents(client, bucketName);
16771674
}
16781675
}
1676+
1677+
@Test
1678+
public void getBlobsOnTape() throws IOException {
1679+
final GetTapesSpectraS3Response getTapes = client.getTapesSpectraS3(new GetTapesSpectraS3Request());
1680+
1681+
// There must be at least one tape on the BP to run this test
1682+
assumeTrue(isNotNullAndNotEmpty(getTapes.getTapeListResult().getTapes()));
1683+
1684+
final UUID tapeId = getTapes.getTapeListResult().getTapes().get(0).getId();
1685+
1686+
final GetBlobsOnTapeSpectraS3Response getBlobs = client
1687+
.getBlobsOnTapeSpectraS3(new GetBlobsOnTapeSpectraS3Request(tapeId));
1688+
1689+
assertThat(getBlobs.getBulkObjectListResult(), is(notNullValue()));
1690+
}
16791691
}

0 commit comments

Comments
 (0)