Fix broken unit tests

DB validations need to make sure that the value is True or False.
'0' was causing the unit tests to fail.

Change-Id: I0af74c88ce4c4e9d117ea5ff3394eec5be27ecf7
(cherry picked from commit 3562fb4305)
This commit is contained in:
Gary Kotton 2018-02-08 22:42:19 +02:00 committed by garyk
parent 4115b4972d
commit 79a226576e
2 changed files with 4 additions and 4 deletions

View File

@ -151,8 +151,8 @@ class TestAutoSchedule(testlib_api.SqlTestCase,
'bgp_speaker': {'name': 'fake_bgp_speaker',
'ip_version': '4',
'local_as': '123',
'advertise_floating_ip_host_routes': '0',
'advertise_tenant_networks': '0',
'advertise_floating_ip_host_routes': False,
'advertise_tenant_networks': False,
'peers': [],
'networks': []}}
i = 1

View File

@ -60,8 +60,8 @@ class TestBgpDrAgentSchedulerBaseTestCase(testlib_api.SqlTestCase):
'name': 'fake_bgp_speaker',
'ip_version': '4',
'local_as': '123',
'advertise_floating_ip_host_routes': '0',
'advertise_tenant_networks': '0',
'advertise_floating_ip_host_routes': False,
'advertise_tenant_networks': False,
'peers': [],
'networks': []}}
cls._save_bgp_speaker(self.ctx, bgp_speaker_body, uuid=bgp_speaker_id)