-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Add secrets-name-info-endpoint #8
Conversation
@Value("${info.properties.environment}") | ||
private String environment; | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[google-java-format] reported by reviewdog 🐶
summary = "health check", | ||
description = "Return OK if application is started", | ||
security = {@SecurityRequirement(name = "ApiKey")}, | ||
tags = {"Home"}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[google-java-format] reported by reviewdog 🐶
summary = "health check", | |
description = "Return OK if application is started", | |
security = {@SecurityRequirement(name = "ApiKey")}, | |
tags = {"Home"}) | |
summary = "health check", | |
description = "Return OK if application is started", | |
security = {@SecurityRequirement(name = "ApiKey")}, | |
tags = {"Home"}) |
AppInfo info = AppInfo.builder().name(name).version(version).environment(environment).build(); | ||
return Mono.just(ResponseEntity.status(HttpStatus.OK).body(info)); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[google-java-format] reported by reviewdog 🐶
@Autowired | ||
private WebTestClient webClient; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[google-java-format] reported by reviewdog 🐶
@Autowired | |
private WebTestClient webClient; | |
@Autowired private WebTestClient webClient; |
@Test | ||
void healthCheckTestSuccess() throws Exception { | ||
webClient.get().uri("/info").exchange().expectStatus().is2xxSuccessful(); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[google-java-format] reported by reviewdog 🐶
@Test | |
void healthCheckTestSuccess() throws Exception { | |
webClient.get().uri("/info").exchange().expectStatus().is2xxSuccessful(); | |
} | |
@Test | |
void healthCheckTestSuccess() throws Exception { | |
webClient.get().uri("/info").exchange().expectStatus().is2xxSuccessful(); | |
} |
@Test | ||
void homeTestSuccess() throws Exception { | ||
webClient.get().exchange().expectStatus().is3xxRedirection(); | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[google-java-format] reported by reviewdog 🐶
@Test | |
void homeTestSuccess() throws Exception { | |
webClient.get().exchange().expectStatus().is3xxRedirection(); | |
} | |
} | |
@Test | |
void homeTestSuccess() throws Exception { | |
webClient.get().exchange().expectStatus().is3xxRedirection(); | |
} | |
} |
This PR exceeds the recommended size of 400 lines. Please make sure you are NOT addressing multiple issues with one PR. Note this PR might be rejected due to its size. |
List of Changes
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: