Skip to content

[misc] fix relay exposed address test #3931

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

Merged
merged 5 commits into from
Jun 5, 2025
Merged

[misc] fix relay exposed address test #3931

merged 5 commits into from
Jun 5, 2025

Conversation

mlsmaycon
Copy link
Collaborator

Describe your changes

Issue ticket number and link

Stack

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)
  • Extended the README / documentation, if necessary

By submitting this pull request, you confirm that you have read and agree to the terms of the Contributor License Agreement.

@Copilot Copilot AI review requested due to automatic review settings June 5, 2025 12:45
@mlsmaycon mlsmaycon changed the title fix relay exposed address test [misc] fix relay exposed address test Jun 5, 2025
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Fix the relay exposed address test to expect the rel:// protocol prefix.

  • Update the CI workflow assertion for NB_EXPOSED_ADDRESS to include the new rel:// prefix.

@@ -172,7 +172,7 @@ jobs:
grep "NETBIRD_STORE_ENGINE_MYSQL_DSN=$NETBIRD_STORE_ENGINE_MYSQL_DSN" docker-compose.yml
grep NETBIRD_STORE_ENGINE_POSTGRES_DSN docker-compose.yml | egrep "$NETBIRD_STORE_ENGINE_POSTGRES_DSN"
# check relay values
grep "NB_EXPOSED_ADDRESS=$CI_NETBIRD_DOMAIN:33445" docker-compose.yml
grep "NB_EXPOSED_ADDRESS=rel://$CI_NETBIRD_DOMAIN:33445" docker-compose.yml
Copy link
Preview

Copilot AI Jun 5, 2025

Choose a reason for hiding this comment

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

Anchor the grep pattern to match the full line (e.g., use grep -x or wrap the pattern with ^ and $), or use grep -F to perform an exact fixed-string match, ensuring the test only passes on the intended line.

Suggested change
grep "NB_EXPOSED_ADDRESS=rel://$CI_NETBIRD_DOMAIN:33445" docker-compose.yml
grep "^NB_EXPOSED_ADDRESS=rel://$CI_NETBIRD_DOMAIN:33445$" docker-compose.yml

Copilot uses AI. Check for mistakes.

Copy link

sonarqubecloud bot commented Jun 5, 2025

@mlsmaycon mlsmaycon merged commit b56f61b into main Jun 5, 2025
36 checks passed
@mlsmaycon mlsmaycon deleted the fix-infra-test branch June 5, 2025 13:44
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