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:
parent
4115b4972d
commit
79a226576e
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue