← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1544720] [NEW] In response template processing, some values are set to u'' instead of None

 

Public bug reported:

I discovered this bug while refactoring functional tests. This happens
in the current Nova master.

Update the following files:
- nova/tests/functional/api_sample_tests/api_samples/os-extended-server-attributes/v2.16/server-get-resp.json.tpl
- nova/doc/api_samples/os-extended-server-attributes/v2.16/server-get-resp.json

Set the field "OS-EXT-SRV-ATTR:kernel_id" from "null" to a value.
Run functional tests (or just nova/tests/functional/api_sample_tests/test_extended_server_attributes.py) and you'll see that the value you for the response has been replaced with u''.

Not sure if this is in nova itself or just the test framework, more
research needed.

I'm creating this bug to make sure I don't forget to come back and
troubleshoot this issue.

** Affects: nova
     Importance: Medium
     Assignee: Augustina Ragwitz (auggy)
         Status: Confirmed


** Tags: api testing

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1544720

Title:
  In response template processing, some values are set to u'' instead of
  None

Status in OpenStack Compute (nova):
  Confirmed

Bug description:
  I discovered this bug while refactoring functional tests. This happens
  in the current Nova master.

  Update the following files:
  - nova/tests/functional/api_sample_tests/api_samples/os-extended-server-attributes/v2.16/server-get-resp.json.tpl
  - nova/doc/api_samples/os-extended-server-attributes/v2.16/server-get-resp.json

  Set the field "OS-EXT-SRV-ATTR:kernel_id" from "null" to a value.
  Run functional tests (or just nova/tests/functional/api_sample_tests/test_extended_server_attributes.py) and you'll see that the value you for the response has been replaced with u''.

  Not sure if this is in nova itself or just the test framework, more
  research needed.

  I'm creating this bug to make sure I don't forget to come back and
  troubleshoot this issue.

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


Follow ups