Move html responses to a subfolder for cleaner rat plugin exclude

This commit is contained in:
Reijhanniel Jearl Campos 2016-02-20 00:30:16 +08:00
parent d5b74179a4
commit 9a8b4d074b
5 changed files with 5 additions and 6 deletions

4
.gitignore vendored
View File

@ -20,5 +20,5 @@ atlassian-ide-plugin.xml
.factorypath
.apt_generated
.checkstyle
*nb-configuration.xml
*nbactions.xml
nb-configuration.xml
nbactions.xml

View File

@ -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>

View File

@ -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();