Skip to content

Commit 1d999cd

Browse files
committed
Fix tests
With error pages disabled this yield 405 instead of 401
1 parent ae4fc8c commit 1d999cd

File tree

1 file changed

+3
-1
lines changed
  • demo/integration-tests/webapp-rest-it/src/test/java/software/xdev/sse/demo/rest/cases

1 file changed

+3
-1
lines changed

demo/integration-tests/webapp-rest-it/src/test/java/software/xdev/sse/demo/rest/cases/LoginOtherTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,9 @@ static Stream<Arguments> checkNoSessionCreatedForActuator()
124124
ALL_SUPPORTED_HTTP_METHODS.stream()
125125
.map(method -> Arguments.of(false, false, method, HttpStatus.SC_UNAUTHORIZED)),
126126
// TRACE is not supported by Spring Boot
127-
Stream.of(Arguments.of(false, false, HttpTrace.METHOD_NAME, HttpStatus.SC_BAD_REQUEST))
127+
Stream.of(false, true)
128+
.map(existingPath ->
129+
Arguments.of(false, existingPath, HttpTrace.METHOD_NAME, HttpStatus.SC_METHOD_NOT_ALLOWED))
128130
).flatMap(Function.identity());
129131
}
130132

0 commit comments

Comments
 (0)