Skip to content

Refactor QuayApi to extend ApiBase#5353

Merged
esron merged 8 commits intoapp-sre:masterfrom
esron:refactor-quay-api-to-base-api-use
Jan 13, 2026
Merged

Refactor QuayApi to extend ApiBase#5353
esron merged 8 commits intoapp-sre:masterfrom
esron:refactor-quay-api-to-base-api-use

Conversation

@esron
Copy link
Contributor

@esron esron commented Jan 7, 2026

Related to #5184
Related to APPSRE-11883

Refactored QuayApi to extend ApiBase from rest_api_base.py, replacing direct requests calls with ApiBase methods (_get, _post, _put, _delete) for consistency with other API clients like GlitchtipClient. Updated QuayApi.__init__ to accept full URLs (e.g., http://localhost:12345) for testing while preserving backward compatibility with hostname-only inputs (e.g., quay.io).

Migrated tests from the responses library to pytest-httpserver to align with the Glitchtip test pattern and ensure compatibility with requests.Session used by ApiBase. All existing error handling and method signatures remain unchanged, maintaining full backward compatibility with existing QuayApi usage throughout the codebase.

@esron esron force-pushed the refactor-quay-api-to-base-api-use branch 2 times, most recently from 6f4bd84 to 2c2e4c5 Compare January 9, 2026 15:31
@esron esron force-pushed the refactor-quay-api-to-base-api-use branch from bf7e0c3 to 9ba4d8a Compare January 12, 2026 17:50
@esron esron force-pushed the refactor-quay-api-to-base-api-use branch from 9ba4d8a to 340f8d6 Compare January 12, 2026 18:02
Copy link
Contributor

@hemslo hemslo left a comment

Choose a reason for hiding this comment

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

LGTM!

@esron esron merged commit 5a4bc35 into app-sre:master Jan 13, 2026
2 checks passed
@esron
Copy link
Contributor Author

esron commented Jan 13, 2026

I am reverting this while I investigate the dry-run error during promotion.

esron added a commit that referenced this pull request Jan 13, 2026
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.

2 participants