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: Add test to check hostname length (HMS-5185) #2681

Merged
merged 2 commits into from
Dec 12, 2024

Conversation

regexowl
Copy link
Collaborator

@regexowl regexowl commented Dec 12, 2024

This adds a test to check the length of the hostname.

JIRA: HMS-5185

@regexowl
Copy link
Collaborator Author

/jira-epic HMS-5164

@schutzbot schutzbot changed the title test: Add test to check hostname length test: Add test to check hostname length (HMS-5185) Dec 12, 2024
@regexowl
Copy link
Collaborator Author

Also updated the validator a tiny bit to reflect the "up to 64 lower-case characters" part.

Copy link

codecov bot commented Dec 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.23%. Comparing base (dc24ba2) to head (2d2c37c).
Report is 2 commits behind head on main.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #2681   +/-   ##
=======================================
  Coverage   85.23%   85.23%           
=======================================
  Files         175      175           
  Lines       20255    20253    -2     
  Branches     1976     1976           
=======================================
- Hits        17264    17263    -1     
+ Misses       2969     2968    -1     
  Partials       22       22           
Files with missing lines Coverage Δ
src/Components/CreateImageWizard/validators.ts 93.90% <100.00%> (+1.04%) ⬆️

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dc24ba2...2d2c37c. Read the comment docs.

This adds a test to check the length of the hostname.
Validation error mentions only lowercase characters, this updates the regex accordingly.
@regexowl regexowl force-pushed the check-hostname-length branch from 1592f94 to 2d2c37c Compare December 12, 2024 11:51
Copy link
Collaborator

@mgold1234 mgold1234 left a comment

Choose a reason for hiding this comment

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

/lgtm

@mgold1234 mgold1234 merged commit 9b69344 into osbuild:main Dec 12, 2024
7 checks passed
@regexowl regexowl deleted the check-hostname-length branch December 12, 2024 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants