Skip to content
Snippets Groups Projects

Fix hostname check when fetching ip address

Merged Sanad Liaquat requested to merge qa-test-shl-fix-check-in-public-ip-fetch into master
All threads resolved!

What does this MR do and why?

Describe in detail what your merge request does and why.

Fixes failure in ee/browser_ui/1_manage/group/restrict_by_ip_address_spec.rb when running against review app when a branch has test in its name resulting in the review app url to contain test such as in this case: https://gitlab.com/gitlab-org/gitlab/-/jobs/2359906629

The test fails at this line, where we check if the url has test in it and here it matches the review app url (e.g. https://gitlab-review-mk-test-th-pv2gqw.gitlab-review.app) and the condition falls to the else block and returns the internal address of the container running the test instead of the public ip address.

This MR changes the text to match in the host to .test.

Screenshots or screen recordings

These are strongly recommended to assist reviewers and reduce the time to merge your change.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading