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

Format expected config file with ini pkg #429

Merged
merged 2 commits into from
Oct 29, 2020
Merged

Conversation

mkuratczyk
Copy link
Collaborator

This way the tests are not sensitive to whitespace differences since they compare actual config
file with the expected value after formatting using the same method as the actual code

To test, you can add/remove some spaces in expectedRabbitmqConf and the tests should still pass.

This way the tests are not sensitive to whitespace differences since they compare actual config
file with the expected value after formatting using the same method as the actual code
Copy link
Contributor

@ChunyiLyu ChunyiLyu left a comment

Choose a reason for hiding this comment

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

Great! Just one small thing with the helper function assertion.

internal/resource/configmap_test.go Outdated Show resolved Hide resolved
@mkuratczyk mkuratczyk merged commit ada0c87 into main Oct 29, 2020
@mkuratczyk mkuratczyk deleted the ignore-spaces-in-tests branch October 29, 2020 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants