Annotate more tests as requiring Github to be online.

This commit is contained in:
John Chilton
2021-10-05 21:51:06 -04:00
parent cfd99b4cfc
commit 9ccdc7e852
3 changed files with 9 additions and 0 deletions
+3
View File
@@ -8,6 +8,7 @@ from galaxy_test.base.populators import (
DatasetCollectionPopulator,
DatasetPopulator,
LibraryPopulator,
skip_if_github_down,
)
from ._framework import ApiTestCase
@@ -252,6 +253,7 @@ class LibrariesApiTestCase(ApiTestCase):
self._assert_status_code_is(create_response, 400)
assert create_response.json() == "Requested extension 'xxx' unknown, cannot upload dataset."
@skip_if_github_down
def test_fetch_failed_validation(self):
# Exception handling is really rough here - we should be creating a dataset in error instead
# of just failing the job like this.
@@ -282,6 +284,7 @@ class LibrariesApiTestCase(ApiTestCase):
dataset = self.library_populator.get_library_contents_with_path(library["id"], "/4.bed")
assert dataset["state"] == "error", dataset
@skip_if_github_down
def test_fetch_url_archive_to_folder(self):
history_id, library, destination = self._setup_fetch_to_folder("single_url")
targets = [{
+2
View File
@@ -14,6 +14,7 @@ from galaxy_test.base.populators import (
DatasetCollectionPopulator,
DatasetPopulator,
LibraryPopulator,
skip_if_github_down,
skip_without_tool,
stage_rules_example,
uses_test_history,
@@ -229,6 +230,7 @@ class ToolsTestCase(ApiTestCase, TestsTools):
assert xref["value"] == "bwa"
@skip_without_tool("test_data_source")
@skip_if_github_down
def test_data_source_ok_request(self):
with self.dataset_populator.test_history() as history_id:
payload = self.dataset_populator.run_tool_payload(
+4
View File
@@ -11,6 +11,7 @@ from galaxy_test.base.constants import (
)
from galaxy_test.base.populators import (
DatasetPopulator,
skip_if_github_down,
skip_if_site_down,
skip_without_datatype,
stage_inputs,
@@ -292,6 +293,7 @@ class ToolsUploadTestCase(ApiTestCase):
assert details["genome_build"] == "hg19"
@uses_test_history(require_new=False)
@skip_if_github_down
def test_upload_multiple_mixed_success(self, history_id):
destination = {"type": "hdas"}
targets = [{
@@ -323,6 +325,7 @@ class ToolsUploadTestCase(ApiTestCase):
assert output1["state"] == "error"
@uses_test_history(require_new=False)
@skip_if_github_down
def test_fetch_bam_file_from_url_with_extension_set(self, history_id):
destination = {"type": "hdas"}
targets = [{
@@ -345,6 +348,7 @@ class ToolsUploadTestCase(ApiTestCase):
self.dataset_populator.get_history_dataset_details(history_id, dataset=outputs[0], assert_ok=True)
@uses_test_history(require_new=False)
@skip_if_github_down
def test_fetch_html_from_url(self, history_id):
destination = {"type": "hdas"}
targets = [{