Bug 1015290

Summary: importer delete has empty response
Product: [Retired] Pulp Reporter: Michael Hrivnak <mhrivnak>
Component: API/integrationAssignee: Barnaby Court <bcourt>
Status: CLOSED NOTABUG QA Contact: pulp-qe-list
Severity: low Docs Contact:
Priority: unspecified    
Version: MasterKeywords: Triaged
Target Milestone: ---   
Target Release: 2.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-10-07 17:55:43 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: 965283    

Description Michael Hrivnak 2013-10-03 20:06:42 UTC
Description of problem:

When using the REST API to delete an importer from a repo, the response body is empty.


Version-Release number of selected component (if applicable):
master

How reproducible:
always

Steps to Reproduce:
1. $ pulp-admin rpm repo create --repo-id=foo
2. using pic...
3. pic.DELETE('/pulp/api/v2/repositories/foo/importers/yum_importer/')

Actual results:

Response Body
null
(200, None)


Expected results:

a task ID and other taks-related things.


Additional info:

The importer does get deleted, so it's just the HTTP response that is broken.

Comment 1 Barnaby Court 2013-10-07 15:48:28 UTC
This returns 200 and no task body in the case where the delete happened immediately.  If the delete does not happen immediately a task body will be returned.