Jelajahi Sumber

Seperating tests for Travis timeout

almahmoud 7 tahun lalu
induk
melakukan
a2e0cfbd1b
2 mengubah file dengan 13 tambahan dan 2 penghapusan
  1. 12 1
      .travis.yml
  2. 1 1
      cloudbridge/cloud/providers/azure/resources.py

+ 12 - 1
.travis.yml

@@ -64,7 +64,18 @@ install:
     - pip install coveralls
     - pip install coveralls
     - pip install codecov
     - pip install codecov
 script:
 script:
-    - travis_wait 60 tox -e $TOX_ENV
+    - travis_wait 50 tox -e $TOX_ENV -- --tests test.test_block_store_service
+    - travis_wait 50 tox -e $TOX_ENV -- --tests test.test_cloud_factory
+    - travis_wait 50 tox -e $TOX_ENV -- --tests test.test_cloud_helpers
+    - travis_wait 50 tox -e $TOX_ENV -- --tests test.test_compute_service
+    - travis_wait 50 tox -e $TOX_ENV -- --tests test.test_image_service
+    - travis_wait 50 tox -e $TOX_ENV -- --tests test.test_interface
+    - travis_wait 50 tox -e $TOX_ENV -- --tests test.test_network_service
+    - travis_wait 50 tox -e $TOX_ENV -- --tests test.test_object_life_cycle
+    - travis_wait 50 tox -e $TOX_ENV -- --tests test.test_object_store_service
+    - travis_wait 50 tox -e $TOX_ENV -- --tests test.test_region_service
+    - travis_wait 50 tox -e $TOX_ENV -- --tests test.test_security_service
+    - travis_wait 50 tox -e $TOX_ENV -- --tests test.test_vm_types_service
 after_script:
 after_script:
     - |
     - |
       case "$TRAVIS_EVENT_TYPE" in
       case "$TRAVIS_EVENT_TYPE" in

+ 1 - 1
cloudbridge/cloud/providers/azure/resources.py

@@ -305,7 +305,7 @@ class AzureBucketObject(BaseBucketObject):
         self._provider.azure_client.delete_blob(self._container.name,
         self._provider.azure_client.delete_blob(self._container.name,
                                                 self.name)
                                                 self.name)
 
 
-    def generate_url(self, expires_in=0):
+    def generate_url(self, expires_in=3600):
         """
         """
         Generate a URL to this object.
         Generate a URL to this object.
         """
         """