| Summary: | RFE: Need API to query jobs by owner, target and principal | ||
|---|---|---|---|
| Product: | [Community] Candlepin | Reporter: | Jordan OMara <jomara> |
| Component: | candlepin | Assignee: | Jesus M. Rodriguez <jesusr> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | John Sefler <jsefler> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 0.5 | CC: | athomas, jesusr |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-07-17 13:03:17 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Jordan OMara
2011-08-17 21:24:11 UTC
Fixed in 3bc5adcd7f8d094f3dedf2a7354efc0a06804b4f To verify have pinsetter enabled and run the following curl commands: Create a refresh job: curl -k -u admin:admin -X PUT https://localhost:8443/candlepin/owners/admin/subscriptions Get back a list of the admin owned jobs (should return the above refresh pools job): curl -k -u admin:admin https://localhost:8443/candlepin/jobs/?owner=admin Get back a list of the admin jobs by user (same as above): curl -k -u admin:admin https://localhost:8443/candlepin/jobs/?principal=admin Get back all the System jobs (should return all of the cron ones): curl -k -u admin:admin https://localhost:8443/candlepin/jobs/?principal=System Get back an empty list, basically no jobs exist for this principal: curl -k -u admin:admin https://localhost:8443/candlepin/jobs/?principal=foo Get back an error that you must specify some parameters: curl -k -u admin:admin https://localhost:8443/candlepin/jobs/?principal= Get back an error that you must specify only one of the parameters: curl -k -u admin:admin "https://localhost:8443/candlepin/jobs/?owner=admin&principal=foo&consumer=abcd" Anything else you can think of. Marking all community bugs modified or beyong as closed. |