|
8 | 8 | import com.sun.jersey.api.client.Client;
|
9 | 9 | import com.sun.jersey.api.client.ClientResponse;
|
10 | 10 | import org.junit.*;
|
11 |
| -import org.slf4j.Logger; |
12 |
| -import org.slf4j.LoggerFactory; |
13 | 11 |
|
14 | 12 | import java.net.HttpURLConnection;
|
15 | 13 | import java.net.URI;
|
|
19 | 17 | import java.util.Properties;
|
20 | 18 |
|
21 | 19 | public class S3TempCredentialsTest extends S3JerseyClientTest {
|
22 |
| - private static final Logger log = LoggerFactory.getLogger(S3TempCredentialsTest.class); |
23 | 20 | private static final String SESSION_TOKEN = "Cghuc190ZXN0MRIIaWFtX3VzZXIaFEFST0EzQjFGMDc0OUJFQkIzRDlFIiB1cm46ZWNzOmlhbTo6bnNfdGVzdDE6cm9sZS9yb2xlMSoUQVNJQUI1MTEzMzYwN0FBNzg1QjUyUE1hc3RlcktleVJlY29yZC0zZGE0ZTJlNmMyMGNiMzg2NDVlZTJlYjlkNWUxYzUxODJiYTBhYjQ3NWIxMDg4YWE5NDBmMzIyZTAyNWEzY2Q1OKXTrK2VL1IMZWNzLXN0cy10ZW1waL_l44QG";
|
24 | 21 |
|
25 |
| - protected S3Config s3ConfigFromProperties() throws Exception { |
26 |
| - |
| 22 | + @Override |
| 23 | + protected S3Config createS3Config() throws Exception { |
27 | 24 | Properties props = TestConfig.getProperties();
|
28 | 25 |
|
29 | 26 | String accessKey = TestConfig.getPropertyNotEmpty(props, TestProperties.S3_TEMP_ACCESS_KEY);
|
30 | 27 | String secretKey = TestConfig.getPropertyNotEmpty(props, TestProperties.S3_TEMP_SECRET_KEY);
|
31 | 28 | String securityToken = TestConfig.getPropertyNotEmpty(props, TestProperties.S3_SECURITY_TOKEN);
|
32 | 29 |
|
33 |
| - S3Config s3Config = s3ConfigNetWorkSetting(props); |
| 30 | + S3Config s3Config = super.createS3Config(); |
34 | 31 | s3Config.withIdentity(accessKey).withSecretKey(secretKey).withSessionToken(securityToken);
|
35 | 32 |
|
36 | 33 | return s3Config;
|
@@ -157,46 +154,42 @@ public void testPreSignedUrlWithHeaders() throws Exception {
|
157 | 154 |
|
158 | 155 | @Ignore
|
159 | 156 | @Test
|
160 |
| - public void testMultipleVdcs() throws Exception { |
| 157 | + public void testMultipleVdcs() { |
161 | 158 | }
|
162 | 159 |
|
163 | 160 | @Ignore
|
164 | 161 | @Test
|
165 |
| - public void testMpuAbortInMiddle() throws Exception { |
| 162 | + public void testMpuAbortInMiddle() { |
166 | 163 | }
|
167 | 164 |
|
168 | 165 | @Ignore
|
169 | 166 | @Test
|
170 |
| - public void testSetObjectAclRequestAcl() throws Exception { |
| 167 | + public void testSetObjectAclRequestAcl() { |
171 | 168 | }
|
172 | 169 |
|
173 | 170 | @Ignore
|
174 | 171 | @Test
|
175 |
| - public void testSetObjectAcl() throws Exception { |
| 172 | + public void testSetObjectAcl() { |
176 | 173 | }
|
177 | 174 |
|
178 | 175 | @Ignore
|
179 | 176 | @Test
|
180 | 177 | public void testCreateFilesystemBucket() {
|
181 |
| - super.testCreateFilesystemBucket(); |
182 | 178 | }
|
183 | 179 |
|
184 | 180 | @Ignore
|
185 | 181 | @Test
|
186 |
| - public void testSetBucketAclCanned() throws Exception { |
187 |
| - super.testSetBucketAclCanned(); |
| 182 | + public void testSetBucketAclCanned() { |
188 | 183 | }
|
189 | 184 |
|
190 | 185 | @Ignore
|
191 | 186 | @Test
|
192 |
| - public void testSetGetBucketAcl() throws Exception { |
193 |
| - super.testSetGetBucketAcl(); |
| 187 | + public void testSetGetBucketAcl() { |
194 | 188 | }
|
195 | 189 |
|
196 | 190 | @Ignore
|
197 | 191 | @Test
|
198 |
| - public void testExtendObjectRetentionPeriod() throws Exception { |
199 |
| - super.testExtendObjectRetentionPeriod(); |
| 192 | + public void testExtendObjectRetentionPeriod() { |
200 | 193 | }
|
201 | 194 |
|
202 | 195 | private S3Client getPresignDummyClient() throws URISyntaxException {
|
|
0 commit comments