cloudkitty/cloudkitty
Chaozhe.Chen f9b52a93bb Test: make enforce_type=True in CONF.set_override
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, 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 and fixes violations.

Change-Id: Ibf5570b74947b071b96aa7ca4a682affb137d065
Related-Bug: #1517839
2016-01-11 17:48:39 +08:00
..
api Load wsgi app(api) with paste.deploy 2016-01-02 13:42:13 +08:00
backend Sync oslo modules 2015-06-09 08:52:06 +02:00
billing Sync oslo modules 2015-06-09 08:52:06 +02:00
cli Remove useless LOG definitions 2015-10-28 06:45:05 +09:00
collector Remove unnecessary parameter 2015-12-02 16:34:57 +08:00
common Merge "Added support for Keystone AuthPlugins" 2015-10-22 04:23:09 +00:00
db Remove useless LOG definitions 2015-10-28 06:45:05 +09:00
rating remove rating no match case 2016-01-02 01:30:44 +08:00
storage Fixed _NO_DATA_ insertion even when data was present 2015-11-27 05:47:27 +00:00
tenant_fetcher Fix error when using keystone v3 2015-11-18 17:38:17 +08:00
tests Test: make enforce_type=True in CONF.set_override 2016-01-11 17:48:39 +08:00
transformer Added more resources to ceilometer collector 2015-05-11 19:34:55 +02:00
writer Renaming billing to rating 2015-04-08 16:07:25 +02:00
__init__.py Removed version information from setup.cfg 2015-10-19 17:27:02 +02:00
config.py Moving to Liberty cycle (0.5) 2015-08-28 16:51:03 +02:00
extension_manager.py Renaming billing to rating 2015-04-08 16:07:25 +02:00
i18n.py Moving to Liberty cycle (0.5) 2015-08-28 16:51:03 +02:00
orchestrator.py remove unused method in orchestrator 2015-12-21 23:46:51 +08:00
rpc.py Sync oslo modules 2015-06-09 08:52:06 +02:00
service.py Remove useless LOG definitions 2015-10-28 06:45:05 +09:00
state.py Fixed bug while loading empty metadata 2014-11-07 17:11:43 +01:00
utils.py Added gabbi API tests 2015-09-17 08:50:13 +02:00
write_orchestrator.py Moving to Liberty cycle (0.5) 2015-08-28 16:51:03 +02:00