From fef111841941e499143256f5767e06ac0e715e06 Mon Sep 17 00:00:00 2001 From: Vahid Hashemian Date: Fri, 2 Oct 2015 08:20:42 -0700 Subject: [PATCH] Update temporary URLs to github URLs Update URLs that are temporarily used for new unit test files to their github URLs. Change-Id: I074a7f4b57ec78c560beef5450f4cb2f684669de --- .../tests/test_tosca_hot_translation.py | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/translator/tests/test_tosca_hot_translation.py b/translator/tests/test_tosca_hot_translation.py index 3b3d8908..55e70638 100644 --- a/translator/tests/test_tosca_hot_translation.py +++ b/translator/tests/test_tosca_hot_translation.py @@ -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',