summaryrefslogtreecommitdiff
path: root/nova/tests/virt/test_configdrive.py
Commit message (Collapse)AuthorAgeFilesLines
* move all tests to nova/tests/unitSean Dague2014-11-121-30/+0
| | | | | | | | | | As part of the split of functional and unit tests we need to isolate the unit tests into a separate directory for having multiple test targets in a sane way. Part of bp:functional-tests-for-nova Change-Id: Id42ba373c1bda6a312b673ab2b489ca56da8c628
* Use oslo.utilsDavanum Srinivas2014-10-061-1/+2
| | | | | | | | | | oslo.utils library now provides the functionality previously in oslo-incubator's excutils, importutils, network_utils, strutils timeutils, units etc. Some modules already moved to oslo.utils will still be around since other code in nova/openstack/common/ are using it and will be removed in a subsequent commit. Change-Id: Idc716342535fdfa680963e0e073ddb46f5f1eb34
* Test force_config_drive as a boolean as last resortDavanum Srinivas2014-06-171-0/+29
The force_config_drive help clearly states that only possible option is 'always' but folks are setting it to 'True'/'False' etc and expecting it to work. So let's enable that as well. In the worst case scenario mentioned in the bug, it was set to 'False' and since the check for force_config_drive took any string as true, we were enabling the flag to true. With the change in this review, we force a conversion of the string to true. Additional check for the flag to be set as 'always' is treated as true as well. The test case checks for all the variations Closes-Bug: #1319180 DocImpact Change-Id: Ifa6348fa7dfd9de063eb13d30e3ddf94fa530b57