mirror of https://github.com/apache/jclouds.git
Move html responses to a subfolder for cleaner rat plugin exclude
This commit is contained in:
parent
d5b74179a4
commit
9a8b4d074b
|
@ -20,5 +20,5 @@ atlassian-ide-plugin.xml
|
|||
.factorypath
|
||||
.apt_generated
|
||||
.checkstyle
|
||||
*nb-configuration.xml
|
||||
*nbactions.xml
|
||||
nb-configuration.xml
|
||||
nbactions.xml
|
|
@ -463,8 +463,7 @@
|
|||
<exclude>**/src/test/resources/**/*.gz</exclude>
|
||||
<exclude>**/src/test/resources/**/*.xml</exclude>
|
||||
<exclude>**/src/test/resources/**/*.crt</exclude>
|
||||
<exclude>**/src/test/resources/fault-401.html</exclude>
|
||||
<exclude>**/src/test/resources/maintenance-503.html</exclude>
|
||||
<exclude>src/test/resources/html/*.html</exclude>
|
||||
|
||||
<!-- META-INF/services files -->
|
||||
<exclude>**/services/*LoggingModule</exclude>
|
||||
|
|
|
@ -86,7 +86,7 @@ public class ResponseStatusFromPayloadHttpCommandExecutorServiceTest extends Bas
|
|||
@Test
|
||||
public void testUnauthorized() throws Exception {
|
||||
MockWebServer server = mockWebServer();
|
||||
server.enqueue(new MockResponse().setResponseCode(401).setBody(payloadFromResource("/fault-401.html")));
|
||||
server.enqueue(new MockResponse().setResponseCode(401).setBody(payloadFromResource("/html/fault-401.html")));
|
||||
|
||||
ProfitBricksApi pbApi = api(server.getUrl("/"));
|
||||
DataCenterApi api = pbApi.dataCenterApi();
|
||||
|
@ -131,7 +131,7 @@ public class ResponseStatusFromPayloadHttpCommandExecutorServiceTest extends Bas
|
|||
public void testServiceUnderMaintenance() throws Exception {
|
||||
MockWebServer server = mockWebServer();
|
||||
for (int i = 0; i <= MAX_RETRIES; i++) // jclouds retries 5 times
|
||||
server.enqueue(new MockResponse().setResponseCode(503).setBody(payloadFromResource("/maintenance-503.html")));
|
||||
server.enqueue(new MockResponse().setResponseCode(503).setBody(payloadFromResource("/html/maintenance-503.html")));
|
||||
|
||||
ProfitBricksApi pbApi = api(server.getUrl("/"));
|
||||
DataCenterApi api = pbApi.dataCenterApi();
|
||||
|
|
Loading…
Reference in New Issue