Skip to content

Live staging test asks for 1,000 user policies per page, above the API's 500 limit #3943

Closed

Description

@anth-volk

The live staging test test_live_unauthenticated_users_round_trip_and_upgrade fails, and with it the push.yml deploy run for every merge to master.

Its _policy_ids helper in tests/integration/test_live_v2_policies.py lists a browser's saved policies with GET /v2/user-policies?limit=1000. The Public API caps limit at MAXIMUM_QUERY_LIMIT (500, policyengine_api/query_parameters.py), so the request gets 422 "Invalid API v2 request" where the test expects 200.

Impact

Fix

Ask for at most MAXIMUM_QUERY_LIMIT per page in _policy_ids.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions