|
@@ -123,9 +123,7 @@ public class TestS3AConfiguration {
|
|
fs = S3ATestUtils.createTestFileSystem(conf);
|
|
fs = S3ATestUtils.createTestFileSystem(conf);
|
|
fail("Expected a connection error for proxy server at " + proxy);
|
|
fail("Expected a connection error for proxy server at " + proxy);
|
|
} catch (AmazonClientException e) {
|
|
} catch (AmazonClientException e) {
|
|
- if (!e.getMessage().contains(proxy + " refused")) {
|
|
|
|
- throw e;
|
|
|
|
- }
|
|
|
|
|
|
+ // expected
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -158,18 +156,14 @@ public class TestS3AConfiguration {
|
|
fs = S3ATestUtils.createTestFileSystem(conf);
|
|
fs = S3ATestUtils.createTestFileSystem(conf);
|
|
fail("Expected a connection error for proxy server");
|
|
fail("Expected a connection error for proxy server");
|
|
} catch (AmazonClientException e) {
|
|
} catch (AmazonClientException e) {
|
|
- if (!e.getMessage().contains("443")) {
|
|
|
|
- throw e;
|
|
|
|
- }
|
|
|
|
|
|
+ // expected
|
|
}
|
|
}
|
|
conf.set(Constants.SECURE_CONNECTIONS, "false");
|
|
conf.set(Constants.SECURE_CONNECTIONS, "false");
|
|
try {
|
|
try {
|
|
fs = S3ATestUtils.createTestFileSystem(conf);
|
|
fs = S3ATestUtils.createTestFileSystem(conf);
|
|
fail("Expected a connection error for proxy server");
|
|
fail("Expected a connection error for proxy server");
|
|
} catch (AmazonClientException e) {
|
|
} catch (AmazonClientException e) {
|
|
- if (!e.getMessage().contains("80")) {
|
|
|
|
- throw e;
|
|
|
|
- }
|
|
|
|
|
|
+ // expected
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|