Fix gate issue of placement unit test

The commit b366634af8 changed the
placement client to add "region_name" to "endpoint filter",
but the unit test has not been changed and started to raise
failures on gate.

This patch fixes the issue.

Change-Id: I6acafaca389261ea76f064092b8c32bcfb4108e1
Related-Bug: #1836917
This commit is contained in:
Tetsuro Nakamura 2019-08-31 13:33:09 +00:00
parent 6610e751e6
commit fedc289059
1 changed files with 3 additions and 1 deletions

View File

@ -35,6 +35,7 @@ class TestPlacementClient(tests.TestCase):
self.cfg.config(os_auth_port='8080')
self.cfg.config(os_auth_prefix='identity')
self.cfg.config(os_auth_version='v3')
self.cfg.config(os_region_name='region_foo')
self.client = placement.BlazarPlacementClient()
def test_client_auth_url(self):
@ -43,7 +44,8 @@ class TestPlacementClient(tests.TestCase):
def _add_default_kwargs(self, kwargs):
kwargs['endpoint_filter'] = {'service_type': 'placement',
'interface': 'public'}
'interface': 'public',
'region_name': 'region_foo'}
kwargs['headers'] = {'accept': 'application/json'}
kwargs['microversion'] = PLACEMENT_MICROVERSION
kwargs['raise_exc'] = False