Fix tests when CONF.set_override with enforce_type=True
Oslo.config make CONF.set_override with enforce_type=True by default
in Ifa552de0a994e40388cbc9f7dbaa55700ca276b0 and
I5b62427495179edb7672c6e5c508037f8b9d0b84, these changes break Glance's
tests[1], this commit fixes failures:
* Method config will raise ValueError in oslo.config 4.0 , so add it
in expected exception list,
* Oslo.config ensures option 'location_strategy' only allow two values,
so remove invalid test.
Reviewed: https:/ /review. openstack. org/457050 /git.openstack. org/cgit/ openstack/ glance/ commit/ ?id=d1020785dc5 4a997dff6efa3a7 40b5b4b20a9294
Committed: https:/
Submitter: Jenkins
Branch: master
commit d1020785dc54a99 7dff6efa3a740b5 b4b20a9294
Author: ChangBo Guo(gcb) <email address hidden>
Date: Sun Apr 16 14:09:02 2017 +0800
Fix tests when CONF.set_override with enforce_type=True
Oslo.config make CONF.set_override with enforce_type=True by default 0388cbc9f7dbaa5 5700ca276b0 and 179edb7672c6e5c 508037f8b9d0b84 , these changes break Glance's
in Ifa552de0a994e4
I5b62427495
tests[1], this commit fixes failures:
* Method config will raise ValueError in oslo.config 4.0 , so add it
in expected exception list,
* Oslo.config ensures option 'location_strategy' only allow two values,
so remove invalid test.
[1] http:// logs.openstack. org/periodic/ periodic- glance- py35-with- oslo-master/ 290de5d/ testr_results. html.gz
Related-Bug: #1517839
Change-Id: I366042c7a739e7 4c270ae8cc7eca0 47a23ea2dd9