-
Notifications
You must be signed in to change notification settings - Fork 133
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
Test Container Repository Tags endpoint #1032
Conversation
a6d7229
to
3b0af00
Compare
3b0af00
to
d258ce6
Compare
DRY test assertions Issue: AAH-906
Issue: AAH-906
Issue: AAH-906
894a43e
to
f8b32a5
Compare
galaxy_ng/tests/functional/cli/test_container_repository_tags.py
Outdated
Show resolved
Hide resolved
Issue: AAH-906
f8b32a5
to
8c7060e
Compare
Issue: AAH-906
Issue: AAH-906
97dfd5d
to
eb0a1a6
Compare
/retest |
/retest |
I suspect the azure test is failing because we're missing this: pulp/pulp_container#415 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor recommendation
|
||
response = self.container_repo_tags_api.list(base_path=image_name) | ||
|
||
self.assertEqual(response.meta.count, 1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Recommend to do a check before and after the update, to make sure the update was the cause of the expected result, something like:
self.assertEqual(response.meta.count, 0)
self._push(image_path, local_url, self.user_admin)
...
self.assertEqual(response.meta.count, 1)
self.assertIn(entry.name, ["1.0"]) | ||
|
||
# Delete created Execution Environment | ||
# api does not currently support delete |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume since the api does not support delete, you are using smash_client to do the delete just for cleanup?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is correct, I figure anyone who runs the functional tests locally will appreciate the disk space being returned.
Issue: AAH-906
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
once required CI jobs pass, LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can skip test until azure is supported
Issue: AAH-906
903054b
to
604f72e
Compare
* Add functional test for Container Repository Tags endpoint Issue: AAH-906
* Add functional test for Container Repository Tags endpoint Issue: AAH-906 (cherry picked from commit ada466b)
* Add functional test for Container Repository Tags endpoint Issue: AAH-906 (cherry picked from commit ada466b)
* Backport ed72e26 (#993) * Refactoring + speeding up tests (#1002) * Replace pulp.pulp_installer with pulp.squeezer to speed upload test ansible-lint takes too much time on pulp.pulp_installer, using pulp.squeezer to get a faster test * Refactor functional tests No-Issue (cherry picked from commit 24f28be) * Allow functional test configuration of URL and PASSWORD (#1026) Issue: AAH-1015 (cherry picked from commit ab38653) * Test Container Repository Tags endpoint (#1032) * Add functional test for Container Repository Tags endpoint Issue: AAH-906 (cherry picked from commit ada466b) * Enable azure test at nightly latest workflow (#1005) * Enable azure test at nightly latest workflow No-Issue (cherry picked from commit 7c6643e) * Add functional tests for manifest lists (#1047) * Add functional tests for AAH-964 Issue: AAH-964 * add cleanups (cherry picked from commit 2a492fb) * Backport e74ea6b (#1069) * Move container test to api dir (#1035) No-Issue (cherry picked from commit 3bc4d42) Co-authored-by: Fabricio Aguiar <[email protected]> Co-authored-by: Bruno Rocha <[email protected]> Co-authored-by: Brian McLaughlin <[email protected]>
Write functional test to test
/api/galaxy/_ui/v1/execution-environments/<repository>/_content/tags/
endpoint.Issue: AAH-906