[Urgent] Change override value in unit test

1. What is the problem
After update, oslo.config library now disallows setting ip address
type configuration option to empty string, which fails one of our
unit tests.

2. What is the solution for the problem
Change empty string to None in the failed test.

3. What features need to be implemented to the Tricircle to
realize the solution
No new features.

Change-Id: I81cd0ac426817ad5c6c8a874d78e19242a3c896d
This commit is contained in:
zhiyuan_cai 2017-05-09 11:28:03 +08:00
parent ad5e6940e3
commit 7b662d3484
1 changed files with 1 additions and 1 deletions

View File

@ -571,7 +571,7 @@ class PluginTest(unittest.TestCase):
'host': 'fake_host',
'device': 'compute:None'}}})
cfg.CONF.set_override('l2gw_tunnel_ip', '', 'tricircle')
cfg.CONF.set_override('l2gw_tunnel_ip', None, 'tricircle')
cfg.CONF.set_override('cross_pod_vxlan_mode', 'l2gw', 'client')
self.plugin.update_port(self.context, port_id, update_body)
# l2gw mode, but l2 gateway tunnel ip is not configured