diff --git a/test/functional/test_toolbox_pytest.py b/test/functional/test_toolbox_pytest.py index b6b999de4ed..19b598a940c 100644 --- a/test/functional/test_toolbox_pytest.py +++ b/test/functional/test_toolbox_pytest.py @@ -12,6 +12,7 @@ from galaxy.tool_util.verify.interactor import ( UseLegacyApiT, ) from galaxy_test.api._framework import ApiTestCase +from galaxy_test.driver import integration_util from galaxy_test.driver.driver_util import GalaxyTestDriver SKIPTEST = os.path.join(os.path.dirname(__file__), "known_broken_tools.txt") @@ -64,6 +65,12 @@ class TestFrameworkTools(ApiTestCase): conda_auto_init = True conda_auto_install = True + @classmethod + def handle_galaxy_config_kwds(cls, config): + """Configure vault for credential testing.""" + super().handle_galaxy_config_kwds(config) + config["vault_config_file"] = integration_util.VAULT_CONF + @pytest.mark.parametrize("testcase", cases(), ids=idfn) def test_tool(self, testcase: ToolTest): use_legacy_api = os.environ.get("GALAXY_TEST_USE_LEGACY_TOOL_API", DEFAULT_USE_LEGACY_API) diff --git a/test/functional/tools/credentials_test.xml b/test/functional/tools/credentials_test.xml new file mode 100644 index 00000000000..759bbf8e350 --- /dev/null +++ b/test/functional/tools/credentials_test.xml @@ -0,0 +1,52 @@ + + Test tool for validating credential injection + + + + + + + '$output' && + echo "Password length: \${#TEST_PASSWORD}" >> '$output' + ]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/functional/tools/sample_tool_conf.xml b/test/functional/tools/sample_tool_conf.xml index 78bcb42ae6f..bcb548f3a89 100644 --- a/test/functional/tools/sample_tool_conf.xml +++ b/test/functional/tools/sample_tool_conf.xml @@ -334,6 +334,7 @@ +