test.py: add --run-internet-dependent-tests

Later, we will add upgrade tests, which need to download the previous
release of Scylla from the internet.

Internet access is a major dependency, so we want to make those tests
opt-in for now.

(cherry picked from commit d3cb873532)
This commit is contained in:
Michał Chojnowski
2025-03-17 23:30:08 +01:00
committed by Michał Chojnowski
parent 06d6718f3b
commit 1446b4e0ef
3 changed files with 6 additions and 0 deletions

View File

@@ -65,6 +65,8 @@ def pytest_addoption(parser):
help='username for authentication')
parser.addoption('--auth_password', action='store', default=None,
help='password for authentication')
parser.addoption('--skip-internet-dependent-tests', action='store_true',
help='Skip tests which depend on artifacts from the internet')
parser.addoption('--artifacts_dir_url', action='store', type=str, default=None, dest='artifacts_dir_url',
help='Provide the URL to artifacts directory to generate the link to failed tests directory '
'with logs')

View File

@@ -48,6 +48,8 @@ class TopologyTest(PythonTest):
async with get_cluster_manager(self.uname, self.suite.clusters, str(self.suite.log_dir)) as manager:
self.args.insert(0, "--tmpdir={}".format(options.tmpdir))
self.args.insert(0, "--manager-api={}".format(manager.sock_path))
if options.skip_internet_dependent_tests:
self.args.insert(0, "--skip-internet-dependent-tests")
if options.artifacts_dir_url:
self.args.insert(0, "--artifacts_dir_url={}".format(options.artifacts_dir_url))