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

Update base_url in test if content_origin is null #1118

Merged
merged 1 commit into from
Jan 20, 2025

Conversation

git-hyagi
Copy link
Contributor

If content_origin is not set, the distribution.base_url will be defined with the relative path and the curl command in the test script will fail to run because of the missing hostname/address.

ref: pulp/pulpcore#6175

If `content_origin` is not set, the `distribution.base_url` will be
defined with the relative path and the curl command in the test
script will fail to run because of the missing hostname/address.

ref: pulp/pulpcore#6175
Copy link
Contributor

@ggainey ggainey left a comment

Choose a reason for hiding this comment

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

Thanks @git-hyagi !

@ggainey ggainey merged commit 466f1eb into pulp:main Jan 20, 2025
18 checks passed
Copy link

patchback bot commented Jan 20, 2025

Backport to 0.30: 💚 backport PR created

✅ Backport PR branch: patchback/backports/0.30/466f1ebbf99f42cbf4f9046c9e8fad2907cf8a8f/pr-1118

Backported as #1119

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

# if base_url starts with "/" (relative path) we need to prepend it with the server address
if [[ $base_url == /* ]]
then
base_url="http://localhost:8080${base_url}"
Copy link
Member

Choose a reason for hiding this comment

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

It's probably better to use the base url from the config instead of a hardcoded address here.
OTOH, we are not testing the cli with it. We should just remove this part.

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.

3 participants