ServerWebExchange exchange,
UriComponentsBuilder uriComponentsBuilder)
{
- final HttpStatus status = HttpStatus.NOT_FOUND;
+ final HttpStatus status = HttpStatus.SERVICE_UNAVAILABLE;
ProblemDetail problem = ProblemDetail.forStatus(status);
problem.setProperty("timestamp", new Date());
.accept(MediaType.APPLICATION_JSON)
.bodyValue("The devil rules route 66")
.exchange()
- .expectStatus().isNotFound()
+ .expectStatus().is5xxServerError()
.expectBody()
.jsonPath("$.type").value(endsWith("/problem/shard-not-owned"))
.jsonPath("$.shard").isEqualTo(shard));
int shard)
{
responseSpec
- .expectStatus().isNotFound()
+ .expectStatus().is5xxServerError()
.expectBody()
.jsonPath("$.type").isEqualTo("/problem/shard-not-owned")
.jsonPath("$.shard").isEqualTo(shard);