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

HostnameValidatorTest: cleanup, comments, more tests #826

Merged
merged 2 commits into from
Oct 3, 2024

Conversation

danirabbit
Copy link
Member

HostnameValidator.vala:

  • Add comments inline and separate lines so we know exactly what each line tests for
  • Use has_prefix and has_suffix

HostnameValidatorTest:

  • Give this test a unique name for CI
  • Make the test one file
  • Fix path syntax in meson
  • Add comments so we know what each line tests for
  • Make sure we test for all of the things that the function should be checking, notably empty hostname and a super long hostname with otherwise short labelsni

@danirabbit danirabbit requested a review from a team October 2, 2024 22:10
Copy link
Member

@meisenzahl meisenzahl left a comment

Choose a reason for hiding this comment

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

Looks good! Thanks for the cleanup 😄

@meisenzahl meisenzahl merged commit 6337c27 into main Oct 3, 2024
5 checks passed
@meisenzahl meisenzahl deleted the danirabbit/hostnametest-cleanup branch October 3, 2024 14:57
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.

2 participants