Skip to content
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

Merged
merged 9 commits into from
Oct 25, 2021

Conversation

bmclaughlin
Copy link
Contributor

@bmclaughlin bmclaughlin commented Oct 19, 2021

Write functional test to test /api/galaxy/_ui/v1/execution-environments/<repository>/_content/tags/ endpoint.

Issue: AAH-906

@bmclaughlin bmclaughlin reopened this Oct 19, 2021
@bmclaughlin bmclaughlin force-pushed the aah-906-test branch 4 times, most recently from 894a43e to f8b32a5 Compare October 21, 2021 14:59
@bmclaughlin
Copy link
Contributor Author

/retest

@bmclaughlin bmclaughlin marked this pull request as ready for review October 21, 2021 19:11
@bmclaughlin
Copy link
Contributor Author

/retest

@newswangerd
Copy link
Member

I suspect the azure test is failing because we're missing this: pulp/pulp_container#415

Copy link
Contributor

@awcrosby awcrosby left a 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)
Copy link
Contributor

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
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor

@awcrosby awcrosby left a 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

Copy link
Member

@rochacbruno rochacbruno left a 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

@bmclaughlin bmclaughlin reopened this Oct 25, 2021
@rochacbruno rochacbruno merged commit ada466b into ansible:master Oct 25, 2021
jctanner pushed a commit to jctanner/galaxy_ng that referenced this pull request Dec 1, 2021
* Add functional test for Container Repository Tags endpoint
Issue: AAH-906
newswangerd pushed a commit to newswangerd/galaxy_ng that referenced this pull request Dec 15, 2021
* Add functional test for Container Repository Tags endpoint
Issue: AAH-906

(cherry picked from commit ada466b)
@newswangerd newswangerd mentioned this pull request Dec 15, 2021
newswangerd pushed a commit to newswangerd/galaxy_ng that referenced this pull request Dec 15, 2021
* Add functional test for Container Repository Tags endpoint
Issue: AAH-906

(cherry picked from commit ada466b)
newswangerd added a commit that referenced this pull request Dec 15, 2021
* 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]>
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.

5 participants