← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1197211] Re: v3 Identity tests do not pass if content type is XML

 

Yep, agreed - I had already told Tahmina to stop work on it.  Marking as
Won't Fix.

** Changed in: keystone
       Status: Confirmed => Won't Fix

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Keystone.
https://bugs.launchpad.net/bugs/1197211

Title:
  v3 Identity tests do not pass if content type is XML

Status in OpenStack Identity (Keystone):
  Won't Fix

Bug description:
  The current v3 identity tests only test json.  They should test xml as
  well, but if you enable this, by creating a test class of:

  class TestAuthXML(TestAuthJSON):
      content_type = 'xml'

  ...then tests start failing, e.g.:

  
  ERROR: Call ``PATCH /domains/{domain_id}`` (set enabled=False).
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "/opt/stack/keystone/tests/test_v3_identity.py", line 109, in test_disable_domain
      self.admin_request(path='/v2.0/tokens', method='POST', body=body)
    File "/opt/stack/keystone/tests/test_v3.py", line 215, in admin_request
      r.result = serializer.from_xml(etree.tostring(r.result))
    File "/opt/stack/keystone/keystone/common/serializer.py", line 58, in from_xml
      return deserializer(xml)
    File "/opt/stack/keystone/keystone/common/serializer.py", line 74, in __call__
      return self.walk_element(dom, True)
    File "/opt/stack/keystone/keystone/common/serializer.py", line 152, in walk_element
      links = child['links']
  KeyError: 'links'

To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1197211/+subscriptions