Skip to content

Commit 5be8d27

Browse files
committed
feat: Allow RandomResources playbook to allow 405 as response
1 parent fd80dab commit 5be8d27

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/dev/dochia/cli/core/http/ResponseCodeFamilyPredefined.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public String asString() {
9090

9191
@Override
9292
public List<String> allowedResponseCodes() {
93-
return List.of("404", "400", "422");
93+
return List.of("404", "400", "405", "422");
9494
}
9595
},
9696
/** Represents the 500 and 501 response codes. */

src/test/java/dev/dochia/cli/core/http/ResponseCodeFamilyPredefinedTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ void shouldBeValid4xxMTAllowedCodes() {
7878
void shouldBeValid4xxNFAllowedCodes() {
7979
Assertions.assertThat(ResponseCodeFamilyPredefined.FOURXX_NF_AND_VALIDATION.asString()).isEqualTo("4XX");
8080
Assertions.assertThat(ResponseCodeFamilyPredefined.FOURXX_NF_AND_VALIDATION.getStartingDigit()).isEqualTo("4");
81-
Assertions.assertThat(ResponseCodeFamilyPredefined.FOURXX_NF_AND_VALIDATION.allowedResponseCodes()).containsOnly("404", "400", "422");
81+
Assertions.assertThat(ResponseCodeFamilyPredefined.FOURXX_NF_AND_VALIDATION.allowedResponseCodes()).containsOnly("404", "400", "405", "422");
8282
}
8383

8484
@Test

0 commit comments

Comments
 (0)