nova/nova/tests/unit/api
Yikun Jiang 781a963c58 Fix TypeError of _get_project_id when project_id is None
If we get flavors with a domain token or an unscope token,
the project id of this case is None, will raise "TypeError:
'in <string>' requires string as left operand, not NoneType"
in _get_project_id. So, first we need check whether project_id
is None or not.

We can just return '' if project_id is None.

Change-Id: I8477d08a956a5b0262bd473254d9202738b6b65b
Closes-Bug: #1733746
(cherry picked from commit 036a692565)
2017-12-01 17:45:33 +00:00
..
openstack Fix TypeError of _get_project_id when project_id is None 2017-12-01 17:45:33 +00:00
__init__.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
test_auth.py conf: Move api options to a group 2016-11-25 16:32:31 -06:00
test_compute_req_id.py Migrate to oslo request_id middleware - mv 2.46 2017-05-27 10:11:44 +00:00
test_wsgi.py Capture stdout in for test_wsgi:test_debug 2016-09-26 06:45:08 -04:00