Skip to content

Add more Pulp Exceptions.#2509

Open
aKlimau wants to merge 1 commit intopulp:mainfrom
aKlimau:add-pulp-exceptions
Open

Add more Pulp Exceptions.#2509
aKlimau wants to merge 1 commit intopulp:mainfrom
aKlimau:add-pulp-exceptions

Conversation

@aKlimau
Copy link
Copy Markdown

@aKlimau aKlimau commented Apr 14, 2026

Assisted-by: Claude Sonnet 4.5 noreply@anthropic.com

📜 Checklist

  • Commits are cleanly separated with meaningful messages (simple features and bug fixes should be squashed to one commit)
  • A changelog entry or entries has been added for any significant changes
  • Follows the Pulp policy on AI Usage
  • (For new features) - User documentation and test coverage has been added

See: Pull Request Walkthrough

Comment on lines +104 to +107
assert (
"Proxy Authentication Required" in exc_info.value.task.error["description"]
or "Proxy authentication failed" in exc_info.value.task.error["description"]
)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can we test for the new way also?

Suggested change
assert (
"Proxy Authentication Required" in exc_info.value.task.error["description"]
or "Proxy authentication failed" in exc_info.value.task.error["description"]
)
assert (
"[PLP0010]" in exc_info.value.task.error["description"]
or "Proxy Authentication Required" in exc_info.value.task.error["description"]
or "Proxy authentication failed" in exc_info.value.task.error["description"]
)

exc_info.value.task.error["description"]
== "Could not determine API version for: http://i-am-an-invalid-url.com/invalid/"
)
if has_pulp_plugin("core", min="3.102"):
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It feels like this is not the complete set of versions requirement.
But also, this is an exception updated here. Would that not lead to "[PLPAN07]" completely independent of the pulpcore version at play?

Raised when a remote is missing a required URL for synchronization.
"""

error_code = "PLPAN02"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

A reminder for all of us: There's a high chance we want to change that naming schema in about a week before it sediments into stone.

@aKlimau aKlimau force-pushed the add-pulp-exceptions branch from 82d8d71 to f2c4f63 Compare April 15, 2026 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants