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

Remove aspects of tests not testing the cli #1123

Merged
merged 1 commit into from
Jan 27, 2025
Merged

Conversation

mdellweg
Copy link
Member

Apparently we can no longer assume that base_url is an url. But also this really is not testing CLI behaviour and should not be here in the first place.

Apparently we can no longer assume that base_url is an url. But also
this really is not testing CLI behaviour and should not be here in the
first place.
@mdellweg mdellweg marked this pull request as ready for review January 22, 2025 10:36
# if base_url starts with "/" (relative path) we need to prepend it with the server address
if [[ $base_url == /* ]]
then
base_url="https://pulp:443${base_url}"
Copy link
Member Author

Choose a reason for hiding this comment

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

Hardcoding a server address in these tests was never going to work properly.

@mdellweg mdellweg enabled auto-merge (rebase) January 22, 2025 10:55
@mdellweg mdellweg merged commit 7d7c1fa into pulp:main Jan 27, 2025
18 checks passed
@mdellweg mdellweg deleted the fix_tests branch January 27, 2025 17:42
Copy link

patchback bot commented Jan 27, 2025

Backport to 0.30: 💚 backport PR created

✅ Backport PR branch: patchback/backports/0.30/7d7c1faf0bd7054244202fb317244ccc6d812fc4/pr-1123

Backported as #1124

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

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