super(AutoScalingTest, self).setUp()
utils.setup_dummy_db()
cfg.CONF.set_default('heat_waitcondition_server_url',
- 'http://_testnoexisthost_:8000/v1/waitcondition')
+ 'http://server.test:8000/v1/waitcondition')
self.fc = fakes.FakeKeystoneClient()
def create_scaling_group(self, t, stack, resource_name):
generic_resource.SignalResource)
cfg.CONF.set_default('heat_waitcondition_server_url',
- 'http://_testnoexisthost_:8000/v1/waitcondition')
+ 'http://server.test:8000/v1/waitcondition')
self.fc = fakes.FakeKeystoneClient()
self.fa = FakeCeilometerClient()
# Import auth_token to have keystone_authtoken settings setup.
importutils.import_module('keystoneclient.middleware.auth_token')
- dummy_url = 'http://_testnoexisthost_:5000/v2.0'
+ dummy_url = 'http://server.test:5000/v2.0'
cfg.CONF.set_override('auth_uri', dummy_url,
group='keystone_authtoken')
cfg.CONF.set_override('admin_user', 'heat',
if method == 'token':
self.mock_ks_v3_client = heat_keystoneclient.kc_v3.Client(
token='abcd1234', project_name='test_tenant',
- auth_url='http://_testnoexisthost_:5000/v3',
- endpoint='http://_testnoexisthost_:5000/v3')
+ auth_url='http://server.test:5000/v3',
+ endpoint='http://server.test:5000/v3')
elif method == 'password':
self.mock_ks_v3_client = heat_keystoneclient.kc_v3.Client(
username='test_username',
password='password',
project_name='test_tenant',
project_id='test_tenant_id',
- auth_url='http://_testnoexisthost_:5000/v3',
- endpoint='http://_testnoexisthost_:5000/v3')
+ auth_url='http://server.test:5000/v3',
+ endpoint='http://server.test:5000/v3')
elif method == 'trust':
self.mock_ks_v3_client = heat_keystoneclient.kc_v3.Client(
username='heat',
password='verybadpass',
project_name='service',
- auth_url='http://_testnoexisthost_:5000/v3',
+ auth_url='http://server.test:5000/v3',
trust_id='atrust123')
self.mock_ks_v3_client.authenticate().AndReturn(auth_ok)
username='test_stack.CfnLBUser')
cfg.CONF.set_default('heat_waitcondition_server_url',
- 'http://_testnoexisthost_:8000/v1/waitcondition')
+ 'http://server.test:8000/v1/waitcondition')
utils.setup_dummy_db()
def create_loadbalancer(self, t, stack, resource_name):
self.fc = fakes.FakeKeystoneClient()
self.man = service.EngineService('a-host', 'a-topic')
cfg.CONF.set_default('heat_waitcondition_server_url',
- 'http://_testnoexisthost_:8000/v1/waitcondition')
+ 'http://server.test:8000/v1/waitcondition')
# Note tests creating a stack should be decorated with @stack_delete_after
# to ensure the stack is properly cleaned up
self.m.StubOutWithMock(nova_utils.cfg, 'CONF')
cnf = nova_utils.cfg.CONF
cnf.instance_user = 'testuser'
- cnf.heat_metadata_server_url = 'http://_testnoexisthost_:123'
- cnf.heat_watch_server_url = 'http://_testnoexisthost_:345'
+ cnf.heat_metadata_server_url = 'http://server.test:123'
+ cnf.heat_watch_server_url = 'http://server.test:345'
cnf.instance_connection_is_secure = False
cnf.instance_connection_https_validate_certificates = False
self.m.ReplayAll()
self.assertTrue("Content-Type: text/part-handler;" in data)
self.assertTrue("Content-Type: text/x-cfninitdata;" in data)
self.assertTrue("Content-Type: text/x-shellscript;" in data)
- self.assertTrue("http://_testnoexisthost_:345" in data)
- self.assertTrue("http://_testnoexisthost_:123" in data)
+ self.assertTrue("http://server.test:345" in data)
+ self.assertTrue("http://server.test:123" in data)
self.assertTrue("[Boto]" in data)
self.assertTrue('testuser' in data)
self.m.VerifyAll()
'X-Container-Read': 'test_tenant:test_username'}
).AndReturn(None)
swiftclient.Connection.get_auth().MultipleTimes().AndReturn(
- ('http://_testnoexisthost_:8080/v_2', None))
+ ('http://server.test:8080/v_2', None))
swiftclient.Connection.delete_container(container_name).AndReturn(None)
self.m.ReplayAll()
ref_id = rsrc.FnGetRefId()
self.assertEqual(container_name, ref_id)
- self.assertEqual('_testnoexisthost_', rsrc.FnGetAtt('DomainName'))
- url = 'http://_testnoexisthost_:8080/v_2/%s' % ref_id
+ self.assertEqual('server.test', rsrc.FnGetAtt('DomainName'))
+ url = 'http://server.test:8080/v_2/%s' % ref_id
self.assertEqual(url, rsrc.FnGetAtt('WebsiteURL'))
generic_resource.GenericResource)
cfg.CONF.set_default('heat_waitcondition_server_url',
- 'http://_testnoexisthost_:8000/v1/waitcondition')
+ 'http://server.test:8000/v1/waitcondition')
self.stack_id = 'STACKABCD1234'
self.fc = fakes.FakeKeystoneClient()
self.assertEqual(rsrc.state, (rsrc.CREATE, rsrc.COMPLETE))
expected_url = "".join([
- 'http://_testnoexisthost_:8000/v1/signal/',
+ 'http://server.test:8000/v1/signal/',
'arn%3Aopenstack%3Aheat%3A%3Atest_tenant%3Astacks%2F',
'test_stack%2FSTACKABCD1234%2Fresources%2F',
'signal_handler?',
'AWSAccessKeyId=4567&',
'SignatureVersion=2&',
'Signature=',
- 'dPUzYOioXbSUJjdl9C%2FXtw1VLfAnJf7uj69ZJ%2BiGNv0%3D'])
+ 'VW4NyvRO4WhQdsQ4rxl5JMUr0AlefHN6OLsRz9oZyls%3D'])
self.assertEqual(expected_url, rsrc.FnGetAtt('AlarmUrl'))
self.m.VerifyAll()
self.assertIsNotNone(load_creds.get('created_at'))
self.assertIsNone(load_creds.get('updated_at'))
self.assertEqual(load_creds.get('auth_url'),
- 'http://_testnoexisthost_:5000/v2.0')
+ 'http://server.test:5000/v2.0')
self.assertIsNone(load_creds.get('trust_id'))
self.assertIsNone(load_creds.get('trustor_user_id'))
'X-Container-Read': None}
).AndReturn(None)
swiftclient.Connection.get_auth().MultipleTimes().AndReturn(
- ('http://_testnoexisthost_:8080/v_2', None))
+ ('http://server.test:8080/v_2', None))
swiftclient.Connection.head_container(
mox.IgnoreArg()).MultipleTimes().AndReturn(headers)
swiftclient.Connection.delete_container(container_name).AndReturn(None)
ref_id = rsrc.FnGetRefId()
self.assertEqual(container_name, ref_id)
- self.assertEqual('_testnoexisthost_', rsrc.FnGetAtt('DomainName'))
- url = 'http://_testnoexisthost_:8080/v_2/%s' % ref_id
+ self.assertEqual('server.test', rsrc.FnGetAtt('DomainName'))
+ url = 'http://server.test:8080/v_2/%s' % ref_id
self.assertEqual(url, rsrc.FnGetAtt('WebsiteURL'))
self.assertEqual('82', rsrc.FnGetAtt('ObjectCount'))
'get_status')
cfg.CONF.set_default('heat_waitcondition_server_url',
- 'http://_testnoexisthost_:8000/v1/waitcondition')
+ 'http://server.test:8000/v1/waitcondition')
self.fc = fakes.FakeKeystoneClient()
stack_id = 'STACK_HUBSID_1234'
t = json.loads(test_template_waitcondition)
- badhandle = ("http://_testnoexisthost_:8000/v1/waitcondition/" +
+ badhandle = ("http://server.test:8000/v1/waitcondition/" +
"arn%3Aopenstack%3Aheat%3A%3Atest_tenant" +
"%3Astacks%2Ftest_stack%2F" +
"bad1" +
stack_id = 'STACKABCD1234'
t = json.loads(test_template_waitcondition)
- badhandle = ("http://_testnoexisthost_:8000/v1/waitcondition/" +
+ badhandle = ("http://server.test:8000/v1/waitcondition/" +
"arn%3Aopenstack%3Aheat%3A%3Atest_tenant" +
"%3Astacks%2FBAD_stack%2F" +
stack_id + "%2Fresources%2FWaitHandle")
stack_id = 'STACKABCD1234'
t = json.loads(test_template_waitcondition)
- badhandle = ("http://_testnoexisthost_:8000/v1/waitcondition/" +
+ badhandle = ("http://server.test:8000/v1/waitcondition/" +
"arn%3Aopenstack%3Aheat%3A%3ABAD_tenant" +
"%3Astacks%2Ftest_stack%2F" +
stack_id + "%2Fresources%2FWaitHandle")
stack_id = 'STACK_HUBR_1234'
t = json.loads(test_template_waitcondition)
- badhandle = ("http://_testnoexisthost_:8000/v1/waitcondition/" +
+ badhandle = ("http://server.test:8000/v1/waitcondition/" +
"arn%3Aopenstack%3Aheat%3A%3Atest_tenant" +
"%3Astacks%2Ftest_stack%2F" +
stack_id + "%2Fresources%2FBADHandle")
self.m.ReplayAll()
stack_id = 'STACKABCD1234'
t = json.loads(test_template_waitcondition)
- badhandle = ("http://_testnoexisthost_:8000/v1/waitcondition/" +
+ badhandle = ("http://server.test:8000/v1/waitcondition/" +
"arn%3Aopenstack%3Aheat%3A%3Atest_tenant" +
"%3Astacks%2Ftest_stack%2F" +
stack_id + "%2Fresources%2FWaitForTheHandle")
def setUp(self):
super(WaitConditionHandleTest, self).setUp()
cfg.CONF.set_default('heat_waitcondition_server_url',
- 'http://_testnoexisthost_:8000/v1/waitcondition')
+ 'http://server.test:8000/v1/waitcondition')
self.fc = fakes.FakeKeystoneClient()
utils.setup_dummy_db()
self.assertEqual(rsrc.state, (rsrc.CREATE, rsrc.COMPLETE))
expected_url = "".join([
- 'http://_testnoexisthost_:8000/v1/waitcondition/',
+ 'http://server.test:8000/v1/waitcondition/',
'arn%3Aopenstack%3Aheat%3A%3Atest_tenant%3Astacks%2F',
'test_stack2%2F', stack_id, '%2Fresources%2F',
'WaitHandle?',
'AWSAccessKeyId=4567&',
'SignatureVersion=2&',
'Signature=',
- 'dGH5JuZW9mOQ%2Fs3aun7vm5ATj0YemC7C8zCHOeG6Fbs%3D'])
+ 'fHyt3XFnHq8%2FSwYaVcHdJka1hz6jdK5mHtgbo8OOKbQ%3D'])
self.assertEqual(unicode(expected_url), rsrc.FnGetRefId())
'password': password,
'roles': roles,
'trust_id': 'atrust123',
- 'auth_url': 'http://_testnoexisthost_:5000/v2.0',
+ 'auth_url': 'http://server.test:5000/v2.0',
'auth_token': 'abcd1234'
})