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

[3.18] Add basic auth to content removal test #3717

Merged
merged 1 commit into from
Aug 22, 2024

Conversation

pedro-psb
Copy link
Member

We were getting failed tests on ContentUnitRemoveTestCase because the delete was being made by the requests library client without any credentials.

Then, we would get 403 (forbidden) instead of 405 (method now allowed).

This assumes the delete requires auth in the first place.

[noissue]

We were getting failed tests on ContentUnitRemoveTestCase because
the delete was being made by the requests library client without
any any credentials.

Then, we would get 403 (forbidden) instead of 405 (method now allowed).

This assumes the delete requires auth in the first place.

[noissue]
Copy link
Member Author

Choose a reason for hiding this comment

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

Looks like self.cfg is what is used to config the bindings, so I tried using self.cfg.username and self.cfg.password. Since they are empty, I've hard-coded our default dev credentials.

Copy link
Contributor

@dralley dralley left a comment

Choose a reason for hiding this comment

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

Awesome, thank you :)

@dralley dralley merged commit bc957d1 into pulp:3.18 Aug 22, 2024
14 of 16 checks passed
@pedro-psb pedro-psb deleted the 3.18/fix-wrong-status-code branch August 22, 2024 15:57
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