RETIRED, further work has moved to Debian project infrastructure
Go to file
ChangBo Guo(gcb) 1999bb6cac test: make enforce_type=True in CONF.set_override
Current Glance uses method CONF.set_override to change config option's
value with designated value in unit test, but never check if the
designated vaule is valid. Each config option has a type like strOpt,
BoolOpt, etc. StrOpt with parameter choices only allows values in set
of choices. In short word, each config option has limitation for type
and value. In production code, oslo.conf can ensure user's input is
valid, but in unit test, test methods can pass if we use method
CONF.set_override without parameter enforce_type=True even we pass wrong
type or wrong value to config option. This commit makes sure calling
method CONF.set_override with enforce_type=True,

Note: We can't set enforce_type=True by default in oslo.config now, it
may break all project's unit test. We can switch enforce_type=True by
default when all project fix violations like this commit.

Change-Id: I2defdfff3b14828133921e97acfea6b08c8fc20a
Related-Bug: #1517839
2015-11-19 20:45:56 +08:00
doc/source Add tasks info to glance documentation 2015-11-05 10:44:09 +00:00
etc Typo fix 2015-10-20 03:56:47 +00:00
glance test: make enforce_type=True in CONF.set_override 2015-11-19 20:45:56 +08:00
rally-jobs Port rally scenario plugin to new Rally framework 2015-08-27 09:51:11 -07:00
releasenotes add "unreleased" release notes page 2015-11-09 20:32:14 +00:00
tools Change string generation mechanism for info logging 2015-09-30 02:20:37 +03:00
.coveragerc Change ignore-errors to ignore_errors 2015-09-21 14:26:41 +00:00
.gitignore Add reno for release notes management 2015-11-04 18:21:25 +00:00
.gitreview Add .gitreview config file for gerrit. 2011-10-24 11:02:16 -04:00
.mailmap Add a mailmap entry for myself 2014-02-11 12:00:44 +08:00
.testr.conf Switch to testrepository for running tests 2014-01-29 08:30:55 +08:00
babel.cfg Added first step of babel-based translations. 2012-02-28 02:00:37 -08:00
CONTRIBUTING.rst Workflow documentation is now in infra-manual 2014-12-05 03:30:36 +00:00
HACKING.rst Leverage dict comprehension in PEP-0274 2015-05-28 01:46:02 +00:00
LICENSE Add a LICENSE file. 2012-01-03 10:14:01 -05:00
MANIFEST.in Remove old traces of the oslo-incubator 2015-09-09 09:11:05 +02:00
pylintrc Typo in pylintrc file 2015-03-25 11:21:16 +01:00
README.rst Fix rendering of readme document 2015-01-07 11:07:06 +00:00
requirements.txt Merge "Rename semantic-version dep to semantic_version" 2015-11-16 13:49:03 +00:00
run_tests.sh Remove old traces of the oslo-incubator 2015-09-09 09:11:05 +02:00
setup.cfg Remove glance_store from exta requirements. 2015-10-16 14:57:09 +00:00
setup.py Updated from global requirements 2015-09-24 01:01:31 +00:00
test-requirements.txt Updated from global requirements 2015-11-11 17:18:32 +00:00
tox.ini Merge "Python3: fix test_image_data_resource" 2015-11-18 15:50:48 +00:00

Glance

Glance is a project that defines services for discovering, registering, retrieving and storing virtual machine images.

Use the following resources to learn more: