Skip to content

Commit

Permalink
Skip tests unless enabled.
Browse files Browse the repository at this point in the history
No-Issue

Signed-off-by: James Tanner <tanner.jc@gmail.com>
  • Loading branch information
jctanner committed May 23, 2024
1 parent 5650134 commit d6e77e1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 6 additions & 1 deletion galaxy_ng/tests/integration/dab/test_url_resolution.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
def test_dab_collection_download_url_hostnames(galaxy_client, published):
import os
import pytest


@pytest.mark.skipif(not os.getenv("ENABLE_DAB_TESTS"), reason="Skipping test because ENABLE_DAB_TESTS is not set")
def test_dab_collection_download_url_hostnames(settings, galaxy_client, published):
"""
We want the download url to point at the gateway
"""
Expand Down
3 changes: 2 additions & 1 deletion profiles/dab_jwt/run_integration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ set -x
export HUB_API_ROOT=http://jwtproxy:8080/api/galaxy/
export HUB_ADMIN_PASS=admin
export HUB_USE_MOVE_ENDPOINT=0
export ENABLE_DAB_TESTS=1

$VENVPATH/bin/pytest -v -r sx --color=yes -m "$HUB_TEST_MARKS" "$@" galaxy_ng/tests/integration/dab
$VENVPATH/bin/pytest -v -r sx --color=yes "$@" galaxy_ng/tests/integration/dab
RC=$?

exit $RC

0 comments on commit d6e77e1

Please sign in to comment.