Identity Admin test_create_get_delete_service() method errors with XML client

Bug #1060358 reported by Jay Pipes
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tempest
Fix Released
High
Christopher Yeoh

Bug Description

======================================================================
ERROR: GET Service
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jpipes/repos/tempest/tempest/tests/identity/admin/test_services.py", line 62, in test_create_get_delete_service
    resp, _ = self.client.delete_service(service_data['id'])
UnboundLocalError: local variable 'service_data' referenced before assignment
-------------------- >> begin captured logging << --------------------
tempest.common.rest_client: ERROR: Request URL: http://127.0.0.1:35357/v2.0/OS-KSADM/services
tempest.common.rest_client: ERROR: Request Body: <?xml version="1.0" encoding="UTF-8"?>
<service xmlns="http://docs.openstack.org/identity/api/ext/OS-KSADM/v1.0" type="type--706037" description="description-187862" name="service-302585"/>
tempest.common.rest_client: ERROR: Response Headers: {'date': 'Tue, 02 Oct 2012 17:35:30 GMT', 'vary': 'X-Auth-Token', 'content-length': '284', 'status': '500', 'content-type': 'application/xml'}
tempest.common.rest_client: ERROR: Response Body: {'message': "An unexpected error prevented the server from fulfilling your request. create_service() got an unexpected keyword argument 'service'", 'code': '500', 'title': 'Internal Server Error'}

Jay Pipes (jaypipes)
Changed in tempest:
status: New → Triaged
importance: Undecided → High
assignee: nobody → Jay Pipes (jaypipes)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tempest (master)

Fix proposed to branch: master
Review: https://review.openstack.org/22501

Changed in tempest:
assignee: Jay Pipes (jaypipes) → Christopher Yeoh (cyeoh-0)
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tempest (master)

Reviewed: https://review.openstack.org/22501
Committed: http://github.com/openstack/tempest/commit/10aefa4f3d472b90d67948d2b7f98174afed2e35
Submitter: Jenkins
Branch: master

commit 10aefa4f3d472b90d67948d2b7f98174afed2e35
Author: Chris Yeoh <email address hidden>
Date: Thu Feb 21 11:31:48 2013 +1030

    Handle error in test_create_get_delete_service

    Better handle create_service raising an exception in
    test_create_get_delete_service. If create_service raises an
    exception the test now no longer attempts to delete the service.

    Fixes bug 1060358

    Change-Id: Ie2fb9ee1260bea75397cc6f5ab3e12ad82fd451d

Changed in tempest:
status: In Progress → Fix Released
Sean Dague (sdague)
Changed in tempest:
milestone: none → havana-3
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.