-
Notifications
You must be signed in to change notification settings - Fork 235
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
Combinig cosmos db samples #708
base: main
Are you sure you want to change the base?
Conversation
…e-data-cosmos-aks-sample sample sample.
public class CosmosSampleApplication implements CommandLineRunner { | ||
|
||
private static final Logger LOGGER = LoggerFactory.getLogger(CosmosSampleApplication.class); | ||
public class CosmosdbSpringApplication implements CommandLineRunner { |
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.
public class CosmosdbSpringApplication implements CommandLineRunner { | |
public class CosmosDBSpringApplication implements CommandLineRunner { |
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.
Fixed. Thanks!
Assert.isTrue(optionalUserResult.isPresent(), "Cannot find user."); | ||
|
||
final User result = optionalUserResult.get(); | ||
Assert.state(result.getFirstName().equals(testUser.getFirstName()), "query result firstName doesn't match!"); | ||
Assert.state(result.getLastName().equals(testUser.getLastName()), "query result lastName doesn't match!"); | ||
|
||
LOGGER.info("findOne in User collection get result: {}", result.toString()); | ||
LOGGER.info("spring-cloud-azure-data-cosmos-sample successfully run."); | ||
LOGGER.info("spring-cloud-azure-data-cosmos-sample-aks successfully run."); |
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.
why are we adding -aks
here?
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.
Was added accidentally when moving from aks sample. Removed. Thanks!
@M-Lipin Please take a look at the case where the check fails, thanks. |
Purpose
This PR solves the issue #577.
Does this introduce a breaking change?
[ ] Yes
[x] No
Pull Request Type
The change is a refactoring: combining two Azure spring boot samples (for AKS and a regular one) into one sample.
[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[x] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Other... Please describe:
How to Test
What to Check
Verify that the following are valid
Readme files for Azure spring boot samples.
Other Information
There were some differences between AKS and non-AKS Azure spring boot samples. Need to verify that the change does not break anything.