Skip to content

Make cross-domain list tests pagination-safe - #211

Merged
amarcozzi merged 1 commit into
mainfrom
fix-cross-domain-list-pagination
Aug 26, 2026
Merged

Make cross-domain list tests pagination-safe#211
amarcozzi merged 1 commit into
mainfrom
fix-cross-domain-list-pagination

Conversation

@amarcozzi

Copy link
Copy Markdown
Contributor

Follow-on to #210. TestListFeatures::test_list_cross_domain and TestListInventories::test_list_cross_domain listed a single unsorted page (list_features() / list_inventories()) and asserted the freshly-created fixture item was in it. With more than a page (100) of features/inventories on the account, the item isn't guaranteed to be on page 0, so the assertions fail intermittently in CI (e.g. run 33013970518).

Both now page through newest-first until the item is found or the pages run out — mirroring the existing test_grids.py::test_list_cross_domain pattern. Verified against the live API.

Pre-existing test-quality issue, unrelated to any feature PR.

test_list_cross_domain for features and inventories listed a single
unsorted page and asserted the freshly-created fixture item was present.
Once the test account holds more than a page of features/inventories the
item need not appear on page 0, so the assertion fails intermittently in
CI. Page through newest-first until the item is found or the pages are
exhausted, mirroring the existing cross-domain grids test.
@amarcozzi
amarcozzi merged commit 07a5883 into main Aug 26, 2026
3 checks passed
@amarcozzi
amarcozzi deleted the fix-cross-domain-list-pagination branch August 26, 2026 21:42
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.

1 participant