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

refactor GetRemoteCertificate test #596

Merged
merged 1 commit into from
Aug 15, 2024

Conversation

eaudetcobello
Copy link
Contributor

@eaudetcobello eaudetcobello commented Aug 10, 2024

Because it relies on a specific error message, the test can fail under arcane conditions. Instead, test that an error occured. Also, drive-by gomega idioms

@eaudetcobello eaudetcobello requested a review from a team as a code owner August 10, 2024 02:38
@eaudetcobello eaudetcobello force-pushed the eaudetcobello/fix-getremotecert-test branch from 1bcc99d to 6a68df5 Compare August 10, 2024 02:39
Because it relies on a specific error message, the test can fail under arcane conditions.
Instead, test that an error occured.
Also, drive-by gomega idioms.
@eaudetcobello eaudetcobello force-pushed the eaudetcobello/fix-getremotecert-test branch from 6a68df5 to ed65c98 Compare August 10, 2024 02:46
Copy link
Contributor

@addyess addyess left a comment

Choose a reason for hiding this comment

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

Just questions about things i don't know yet

src/k8s/pkg/utils/certificate_test.go Show resolved Hide resolved
src/k8s/pkg/utils/certificate_test.go Show resolved Hide resolved
@eaudetcobello eaudetcobello merged commit c455aa3 into main Aug 15, 2024
19 checks passed
@eaudetcobello eaudetcobello deleted the eaudetcobello/fix-getremotecert-test branch August 15, 2024 13:48
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.

3 participants