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

core/endpoint: Get choices from PUT if POST missing #592

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Sep 30, 2024

  1. core/endpoint: Get choices from PUT if POST missing

    If the API token is not allowed to POST on a particular endpoint, choices won't
    be returned in `.actions.POST`, but we can still get them in `.actions.PUT`.
    
    This commit falls back to getting choices from `.actions.PUT` instead of
    raising an exception when `.actions.POST` is missing.
    
    Signed-off-by: Benoît Knecht <[email protected]>
    BenoitKnecht committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    aa86d3d View commit details
    Browse the repository at this point in the history
  2. core/endpoint: Add unit tests for endpoint choices

    Make sure we can get choices from the `PUT` action when the API doesn't
    allow `POST`, and that the `POST` data takes precedence over the `PUT`
    data.
    
    Signed-off-by: Benoît Knecht <[email protected]>
    BenoitKnecht committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    0f9a463 View commit details
    Browse the repository at this point in the history