Skip to content
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

Merged
merged 3 commits into from
Dec 10, 2024

Conversation

pasqualespica
Copy link
Contributor

List of Changes

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

@Value("${info.properties.environment}")
private String environment;


Copy link
Contributor

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 🐶

Suggested change

Comment on lines +52 to +55
summary = "health check",
description = "Return OK if application is started",
security = {@SecurityRequirement(name = "ApiKey")},
tags = {"Home"})
Copy link
Contributor

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 🐶

Suggested change
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));
}

Copy link
Contributor

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 🐶

Suggested change

Comment on lines +9 to +10
@Autowired
private WebTestClient webClient;
Copy link
Contributor

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 🐶

Suggested change
@Autowired
private WebTestClient webClient;
@Autowired private WebTestClient webClient;

Comment on lines +12 to +15
@Test
void healthCheckTestSuccess() throws Exception {
webClient.get().uri("/info").exchange().expectStatus().is2xxSuccessful();
}
Copy link
Contributor

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 🐶

Suggested change
@Test
void healthCheckTestSuccess() throws Exception {
webClient.get().uri("/info").exchange().expectStatus().is2xxSuccessful();
}
@Test
void healthCheckTestSuccess() throws Exception {
webClient.get().uri("/info").exchange().expectStatus().is2xxSuccessful();
}

Comment on lines +17 to +21
@Test
void homeTestSuccess() throws Exception {
webClient.get().exchange().expectStatus().is3xxRedirection();
}
}
Copy link
Contributor

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 🐶

Suggested change
@Test
void homeTestSuccess() throws Exception {
webClient.get().exchange().expectStatus().is3xxRedirection();
}
}
@Test
void homeTestSuccess() throws Exception {
webClient.get().exchange().expectStatus().is3xxRedirection();
}
}

@pasqualespica pasqualespica changed the title fix: Ad. secrets-name-info-endpoint fix: Add secrets-name-info-endpoint Dec 10, 2024
@pasqualespica pasqualespica merged commit eabf2a4 into main Dec 10, 2024
10 of 14 checks passed
@pasqualespica pasqualespica deleted the fix-secrets-name-info-endpoint branch December 10, 2024 15:16
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants