|
54 | 54 | import java.nio.channels.SeekableByteChannel; |
55 | 55 | import java.nio.charset.Charset; |
56 | 56 | 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.*; |
63 | 58 | import java.util.concurrent.CountDownLatch; |
64 | 59 | import java.util.concurrent.TimeUnit; |
65 | 60 | import java.util.concurrent.atomic.AtomicBoolean; |
66 | 61 | import java.util.concurrent.atomic.AtomicInteger; |
67 | 62 |
|
68 | 63 | import static com.spectralogic.ds3client.integration.Util.*; |
69 | 64 | import static com.spectralogic.ds3client.integration.test.helpers.ABMTestHelper.*; |
| 65 | +import static com.spectralogic.ds3client.utils.Guard.isNotNullAndNotEmpty; |
70 | 66 | import static org.hamcrest.CoreMatchers.*; |
71 | 67 | import static org.junit.Assert.*; |
72 | 68 | import static org.junit.Assume.assumeThat; |
| 69 | +import static org.junit.Assume.assumeTrue; |
73 | 70 |
|
74 | 71 | public class Smoke_Test { |
75 | 72 |
|
@@ -1676,4 +1673,19 @@ public void createFolderWithSlash() throws IOException { |
1676 | 1673 | deleteAllContents(client, bucketName); |
1677 | 1674 | } |
1678 | 1675 | } |
| 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 | + } |
1679 | 1691 | } |
0 commit comments