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

test(core): add tests to verify the rosco startup with various cloud providers enabled #1073

Merged
merged 2 commits into from Feb 27, 2024

Conversation

j-sandy
Copy link
Contributor

@j-sandy j-sandy commented Feb 26, 2024

Adding tests for AWS, Azure, Docker, Google and Oracle cloud providers to verify the rosco startup with these providers enabled.


@Test
public void startupTest() {
assert awsBakeHandler
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you explain why this is a good startup test? Also, I'd rather see a more test-y assertion, like:

Suggested change
assert awsBakeHandler
assertThat(awsBakeHandler.getMaskedPackerParameters().toString()).isEqualToIgnoringCase("[aws_access_key, aws_secret_key]");

or even better:

assertThat(awsBakeHandler.getMaskedPackerParameters()).isEqualTo(List.of("aws_access_key", "aws_secret_key"));

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Used it as an additional marker to verify the values returned from the static class. However, it would not be required because the test is to verify the startup of rosco application with AWS provider enabled. So, removing this assert statement.

…providers enabled

Adding tests for AWS, Azure, Docker, Google and Oracle cloud providers to verify the rosco startup with these providers enabled.
@j-sandy j-sandy added the ready to merge Approved and ready for merge label Feb 27, 2024
@mergify mergify bot added the auto merged label Feb 27, 2024
@mergify mergify bot merged commit 7107218 into spinnaker:master Feb 27, 2024
4 checks passed
@j-sandy j-sandy deleted the startup-test branch February 27, 2024 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants