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:
Gregory Haynes 2015-05-29 22:42:47 +00:00
parent aa74450074
commit 2468109a99
2 changed files with 2 additions and 0 deletions

View File

@ -22,6 +22,7 @@ labels:
providers:
- name: fake-provider
region-name: fake-region
keypair: 'if-present-use-this-keypair'
username: 'fake'
password: 'fake'

View File

@ -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')