Test that we are setting region-name properly
We ran into a bug where we were not properly setting region-name. Lets assert we do this. Change-Id: I24426b8e04c8bff79a3f73e1dfcc4c7fbb0039b0
This commit is contained in:
parent
aa74450074
commit
2468109a99
1
nodepool/tests/fixtures/node.yaml
vendored
1
nodepool/tests/fixtures/node.yaml
vendored
@ -22,6 +22,7 @@ labels:
|
||||
|
||||
providers:
|
||||
- name: fake-provider
|
||||
region-name: fake-region
|
||||
keypair: 'if-present-use-this-keypair'
|
||||
username: 'fake'
|
||||
password: 'fake'
|
||||
|
@ -38,6 +38,7 @@ class TestShadeIntegration(tests.IntegrationTestCase):
|
||||
'password': 'fake',
|
||||
'auth_url': 'fake'}
|
||||
self.assertEqual(provider_manager._client.auth, auth_data)
|
||||
self.assertEqual(provider_manager._client.region_name, 'fake-region')
|
||||
|
||||
def test_nodepool_osc_config(self):
|
||||
configfile = self.setup_config('node_osc.yaml')
|
||||
|
Loading…
Reference in New Issue
Block a user