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
Reviewed: https:/ /review. openstack. org/365569 /git.openstack. org/cgit/ openstack/ karbor/ commit/ ?id=97ac0819756 fe0a37efeaa3252 1f0964f5e1f5ac
Committed: https:/
Submitter: Jenkins
Branch: master
commit 97ac0819756fe0a 37efeaa32521f09 64f5e1f5ac
Author: Ji-Wei <email address hidden>
Date: Mon Sep 5 20:28:10 2016 +0800
test: make enforce_type=True in CONF.set_override
Each config option has limitation for type and value. type=True even we pass wrong type or wrong
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_
value to config option. This commit makes sure calling
method CONF.set_override with enforce_type=True
Change-Id: I2ec6f354e43ccb e5e9f0e3907d558 673ac88c860
Closes-Bug: #1517839