make xml_to_json parsing consistent

Bug #1215263 reported by Aditi Raveesh
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tempest
Invalid
Low
Aditi Raveesh

Bug Description

The xml_to_json parsing strips out the namespace from the attributes of a node while constructing the json.
However, the namespace is retained in the key, if it is an attribute of the node in the xml.
We need to keep this consistent across both attributes and child elements in the xml.

For eg.
<flavor name="flavor_namespace:flavor_name">
      <extra_spec_namespace:extra_spec>value</extra_spec_namespace:extra_spec>
</flavor>

gets converted to json in this way:
{"name": "flavor_name", "extra_spec_namespace:extra_spec": "value"}
(Attribute's namespace is stripped off, but child element's namespace is retained)

Aditi Raveesh (aditirav)
Changed in tempest:
assignee: nobody → Aditi Raveesh (aditirav)
Sean Dague (sdague)
Changed in tempest:
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Mauro S M Rodrigues (maurorodrigues) wrote :

the issue was fixed at tempest/services/compute/xml/flavors_client.py

Changed in tempest:
status: Confirmed → Invalid
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.