Update temporary URLs to github URLs

Update URLs that are temporarily used for new unit test files to
their github URLs.

Change-Id: I074a7f4b57ec78c560beef5450f4cb2f684669de
This commit is contained in:
Vahid Hashemian 2015-10-02 08:20:42 -07:00
parent 5524c8910f
commit fef1118419

View File

@ -344,8 +344,10 @@ class ToscaHotTranslationTest(TestCase):
json.dumps(diff, indent=4, separators=(', ', ': ')))
def test_hot_translate_template_by_url_with_local_abspath_import(self):
tosca_file = 'https://ibm.box.com/shared/static/' \
'lrgdktp9vw3991y2hlogmghwwvnok3lu.yaml'
tosca_file = 'https://raw.githubusercontent.com/openstack/' \
'heat-translator/master/translator/tests/data/' \
'tosca_single_instance_wordpress_with_local_abspath' \
'_import.yaml'
hot_file = '../tests/data/hot_output/' \
'hot_single_instance_wordpress.yaml'
params = {'db_name': 'wordpress',
@ -361,13 +363,15 @@ class ToscaHotTranslationTest(TestCase):
tosca_file, hot_file, params)
self.assertEqual(
'Absolute file name /tmp/wordpress.yaml cannot be used for a '
'URL-based input https://ibm.box.com/shared/static/'
'lrgdktp9vw3991y2hlogmghwwvnok3lu.yaml template.',
'URL-based input https://raw.githubusercontent.com/openstack/'
'heat-translator/master/translator/tests/data/tosca_single_'
'instance_wordpress_with_local_abspath_import.yaml template.',
err.__str__())
def test_hot_translate_template_by_url_with_url_import(self):
tosca_url = 'https://ibm.box.com/shared/static/' \
'tocmxe9b9x7to0lj5ph9mx58d47ol77m.yaml'
tosca_url = 'https://raw.githubusercontent.com/openstack/' \
'heat-translator/master/translator/tests/data/' \
'tosca_single_instance_wordpress_with_url_import.yaml'
hot_file = '../tests/data/hot_output/' \
'hot_single_instance_wordpress.yaml'
params = {'db_name': 'wordpress',
@ -408,8 +412,8 @@ class ToscaHotTranslationTest(TestCase):
json.dumps(diff, indent=4, separators=(', ', ': ')))
def test_translate_elk_csar_from_url(self):
tosca_file = 'https://ibm.box.com/shared/static/' \
'k9vtus4jes1epl7vfojbcscgsd80inzv.zip'
tosca_file = 'https://github.com/openstack/heat-translator/raw/' \
'master/translator/tests/data/csar_elk.zip'
hot_file = '../tests/data/hot_output/hot_elk_from_csar.yaml'
params = {'github_url':
'http://github.com/paypal/rest-api-sample-app-nodejs.git',