diff options
author | Zane Bitter <zbitter@redhat.com> | 2013-06-05 10:15:56 +0200 |
---|---|---|
committer | Zane Bitter <zbitter@redhat.com> | 2013-06-05 10:15:56 +0200 |
commit | 1c29e67c299b3e53d339b2d2426007847917579a (patch) | |
tree | 2f712d59ffe69291b74727472082dc3c60df5712 /heat/tests/test_nokey.py | |
parent | 25cf26b587a1ad9cec14ec415b479f32193416c3 (diff) | |
download | heat-1c29e67c299b3e53d339b2d2426007847917579a.tar.gz |
Use a physical name matching class in unit tests
This gives us the flexibility to change the format of the physical resource
name.
Change-Id: Ie36453345149291fe04d89b52d7966816e03cda6
Diffstat (limited to 'heat/tests/test_nokey.py')
-rw-r--r-- | heat/tests/test_nokey.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/heat/tests/test_nokey.py b/heat/tests/test_nokey.py index cc90891c4..ca660c73a 100644 --- a/heat/tests/test_nokey.py +++ b/heat/tests/test_nokey.py @@ -18,6 +18,7 @@ from heat.common import template_format from heat.engine import scheduler from heat.openstack.common import uuidutils from heat.tests.common import HeatTestCase +from heat.tests import utils from heat.tests.utils import setup_dummy_db from heat.tests.utils import parse_stack @@ -71,7 +72,7 @@ class nokeyTest(HeatTestCase): self.m.StubOutWithMock(self.fc.servers, 'create') self.fc.servers.create( image=1, flavor=1, key_name=None, - name='%s.%s' % (stack_name, instance.name), + name=utils.PhysName(stack_name, instance.name), security_groups=None, userdata=server_userdata, scheduler_hints=None, meta=None, nics=None, availability_zone=None).AndReturn( |