Bug 877060
Summary: | pulpv2 - need ability to retrieve list of errata applicable to a consumer | ||
---|---|---|---|
Product: | [Retired] Pulp | Reporter: | Brad Buckingham <bbuckingham> |
Component: | consumers | Assignee: | Sayli Karmarkar <skarmark> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Preethi Thomas <pthomas> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | Master | CC: | cperry, jason.dobies, skarmark |
Target Milestone: | --- | Keywords: | Triaged |
Target Release: | 2.1.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-04-08 16:03:28 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 854726 |
Description
Brad Buckingham
2012-11-15 15:59:23 UTC
Fixed as part of applicability api enhancement story. build: 2.1.0-0.5.alpha verified [root@cloud-qe-8 ~]# python consumer_applicability_demo.py Consumer Applicability API Demo Press enter to continue... ------------------------------------------------------------------------ Demo 1 consumer_criteria - {'filters': {'id': {'$in': ['sunflower', 'voyager']}}, 'sort': [['id', 'ascending']]} repo_criteria - {'filters': {'id': {'$in': ['test-repo', 'unbound-repo', 'test_errata']}}} units - {'erratum': [{'id': 'RHBA-2007:0112'}], 'rpm': [{'filename': 'pulp-test-package-0.3.1-1.fc11.x86_64.rpm'}, {'name': 'pulp-dot-2.0-test'}]} Request Body { "units": { "rpm": [ { "filename": "pulp-test-package-0.3.1-1.fc11.x86_64.rpm" }, { "name": "pulp-dot-2.0-test" } ], "erratum": [ { "id": "RHBA-2007:0112" } ] }, "consumer_criteria": { "sort": [ [ "id", "ascending" ] ], "filters": { "id": { "$in": [ "sunflower", "voyager" ] } } }, "repo_criteria": { "filters": { "id": { "$in": [ "test-repo", "unbound-repo", "test_errata" ] } } } } Response Body { "voyager": {}, "sunflower": {} } Press enter to continue... result - (200, {u'sunflower': {}, u'voyager': {}}) Press enter to continue... ------------------------------------------------------------------------ Demo 2 consumer_criteria - {'filters': {'id': {'$in': ['sunflower']}}, 'sort': [['id', 'ascending']]} repo_criteria - {'filters': {'id': {'$in': ['unbound-repo', 'test_errata']}}} units - {'rpm': [{'filename': 'pulp-test-package-0.3.1-1.fc11.x86_64.rpm'}, {'name': 'pulp-dot-2.0-test'}]} Request Body { "units": { "rpm": [ { "filename": "pulp-test-package-0.3.1-1.fc11.x86_64.rpm" }, { "name": "pulp-dot-2.0-test" } ] }, "consumer_criteria": { "sort": [ [ "id", "ascending" ] ], "filters": { "id": { "$in": [ "sunflower" ] } } }, "repo_criteria": { "filters": { "id": { "$in": [ "unbound-repo", "test_errata" ] } } } } Response Body { "sunflower": {} } Press enter to continue... result - (200, {u'sunflower': {}}) Press enter to continue... ------------------------------------------------------------------------ Demo 3 consumer_criteria - {'filters': {'id': {'$in': ['sunflower']}}, 'sort': [['id', 'ascending']]} repo_criteria - {} units - {'erratum': [{'id': 'RHBA-2007:0112'}], 'rpm': [{'filename': 'pulp-test-package-0.3.1-1.fc11.x86_64.rpm'}, {'name': 'pulp-dot-2.0-test'}]} Request Body { "units": { "rpm": [ { "filename": "pulp-test-package-0.3.1-1.fc11.x86_64.rpm" }, { "name": "pulp-dot-2.0-test" } ], "erratum": [ { "id": "RHBA-2007:0112" } ] }, "consumer_criteria": { "sort": [ [ "id", "ascending" ] ], "filters": { "id": { "$in": [ "sunflower" ] } } }, "repo_criteria": {} } Response Body { "sunflower": {} } Press enter to continue... result - (200, {u'sunflower': {}}) Press enter to continue... ------------------------------------------------------------------------ Demo 4 consumer_criteria - {'filters': {'id': {'$in': ['sunflower']}}, 'sort': [['id', 'ascending']]} repo_criteria - {} units - {'rpm': []} Request Body { "units": { "rpm": [] }, "consumer_criteria": { "sort": [ [ "id", "ascending" ] ], "filters": { "id": { "$in": [ "sunflower" ] } } }, "repo_criteria": {} } Response Body { "sunflower": {} } Press enter to continue... result - (200, {u'sunflower': {}}) Press enter to continue... ------------------------------------------------------------------------ Demo 5 consumer_criteria - {'filters': {'id': {'$in': ['sunflower']}}, 'sort': [['id', 'ascending']]} repo_criteria - None units - None Request Body { "units": null, "consumer_criteria": { "sort": [ [ "id", "ascending" ] ], "filters": { "id": { "$in": [ "sunflower" ] } } }, "repo_criteria": null } Response Body { "sunflower": {} } Press enter to continue... result - (200, {u'sunflower': {}}) Press enter to continue... ------------------------------------------------------------------------ Demo 6 consumer_criteria - None repo_criteria - None units - None Request Body { "units": null, "consumer_criteria": null, "repo_criteria": null } Response Body { "voyager": {}, "sunflower": {} } Press enter to continue... result - (200, {u'sunflower': {}, u'voyager': {}}) Press enter to continue... ------------------------------------------------------------------------ Demo 7 consumer_criteria - {'filters': {'id': {'$in': ['sunflower']}}, 'sort': [['id', 'ascending']]} repo_criteria - {'filters': {'id': {'$in': ['test-repo', 'unbound-repo', 'test_errata']}}} units - {'erratum': [{'id': 'grinder_test_3'}, {'id': 'grinder_test_4'}], 'rpm': [{'filename': 'pulp-test-package-0.3.1-1.fc11.x86_64.rpm'}, {'name': 'pulp-dot-2.0-test'}]} Request Body { "units": { "rpm": [ { "filename": "pulp-test-package-0.3.1-1.fc11.x86_64.rpm" }, { "name": "pulp-dot-2.0-test" } ], "erratum": [ { "id": "grinder_test_3" }, { "id": "grinder_test_4" } ] }, "consumer_criteria": { "sort": [ [ "id", "ascending" ] ], "filters": { "id": { "$in": [ "sunflower" ] } } }, "repo_criteria": { "filters": { "id": { "$in": [ "test-repo", "unbound-repo", "test_errata" ] } } } } Response Body { "sunflower": {} } Press enter to continue... result - (200, {u'sunflower': {}}) Press enter to continue... [root@cloud-qe-8 ~]# Pulp 2.1 released http://www.pulpproject.org/2013/04/05/pulp-2-1-0-released/ |