Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Commit

Permalink
feat: swagger path change (#48)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Eder <[email protected]>
  • Loading branch information
jhagestedt and daniel-eder authored May 31, 2020
1 parent 1724c30 commit eb8de46
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ protected void configure(HttpSecurity http) throws Exception {
http.authorizeRequests()
.mvcMatchers("/api/**").permitAll()
.mvcMatchers("/management/*").permitAll()
.mvcMatchers("/v3/**").permitAll()
.mvcMatchers("/swagger-ui/*").permitAll()
.anyRequest().denyAll()
.and().csrf().disable();
}
Expand Down
5 changes: 5 additions & 0 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ spring:
ddl-auto: validate
liquibase:
change-log: classpath:db/changelog.yml
springdoc:
api-docs:
path: /api/docs
swagger-ui:
path: /api/swagger
management:
endpoint:
info:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public void shouldCleanupDatabase() {
Assert.assertEquals(resultId, find.get().getResultId());
Assert.assertEquals(resultDate, find.get().getResultDate());
// wait
Single.fromCallable(() -> true).delay(1, TimeUnit.SECONDS).toBlocking().value();
Single.fromCallable(() -> true).delay(2, TimeUnit.SECONDS).toBlocking().value();
// find
find = testResultRepository.findByResultId(resultId);
Assert.assertFalse(find.isPresent());
Expand Down

0 comments on commit eb8de46

Please sign in to comment.