-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make some ui/v2 base view classes for DRY and to drive dab.rbac pagin…
…ation (#2227) The pagination class for dab.rbac defaults to limitoffset, whereas the new ui is expecting page_size pagination. By defining ANSIBLE_BASE_CUSTOM_VIEW_PARENT the rbac views will inherit from that class name and use it's pagination class. * Add test. * Openapi needs endpoint pieces. No-Issue Signed-off-by: James Tanner <[email protected]>
- Loading branch information
Showing
3 changed files
with
40 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
galaxy_ng/tests/integration/dab/test_dab_rbac_pagination.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import pytest | ||
|
||
|
||
pytestmark = pytest.mark.qa # noqa: F821 | ||
|
||
|
||
@pytest.mark.deployment_standalone | ||
def test_dab_rbac_pagination(galaxy_client): | ||
gc = galaxy_client("admin", ignore_cache=True) | ||
roledefs = gc.get('_ui/v2/role_definitions/?page_size=1') | ||
assert len(roledefs['results']) == 1 |