From 2468109a99063b6f5461b25943e55535dde0df75 Mon Sep 17 00:00:00 2001 From: Gregory Haynes Date: Fri, 29 May 2015 22:42:47 +0000 Subject: [PATCH] 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 --- nodepool/tests/fixtures/node.yaml | 1 + nodepool/tests/test_shade_integration.py | 1 + 2 files changed, 2 insertions(+) diff --git a/nodepool/tests/fixtures/node.yaml b/nodepool/tests/fixtures/node.yaml index b35f89768..f2f0e3528 100644 --- a/nodepool/tests/fixtures/node.yaml +++ b/nodepool/tests/fixtures/node.yaml @@ -22,6 +22,7 @@ labels: providers: - name: fake-provider + region-name: fake-region keypair: 'if-present-use-this-keypair' username: 'fake' password: 'fake' diff --git a/nodepool/tests/test_shade_integration.py b/nodepool/tests/test_shade_integration.py index cd984c390..794f3fe64 100644 --- a/nodepool/tests/test_shade_integration.py +++ b/nodepool/tests/test_shade_integration.py @@ -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')