Skip to content

Commit

Permalink
#33 Added configurable idle time for a SaaS database
Browse files Browse the repository at this point in the history
  • Loading branch information
ahsimb committed Jul 30, 2024
1 parent 6772697 commit 26dc587
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion pytest-saas/exasol/pytest_saas/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,15 @@ def pytest_addoption(parser):
)
parser.addoption(
"--project-short-tag",
default='2',
help="""Short tag aka. "abbreviation" for your current project.
See docstring in project_short_tag.py for more details.
pytest plugin for exasol-saas-api will include this short tag into
the names of created database instances.""",
)
parser.addoption(
"--idle-time",
action="store_true",
default="2",
help="""
The SaaS cluster would normally stop after a certain period of inactivity.
The default period is 2 hours. For some tests, this period is too short.
Expand Down
2 changes: 1 addition & 1 deletion pytest-saas/test/integration/pytest_saas_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def _env(**kwargs):
def test_no_cli_args(request):
assert not request.config.getoption("--keep-saas-database")
assert request.config.getoption("--saas-database-id") is None
assert reqeust.config.getoption("--idle-time") == "2"
assert request.config.getoption("--idle-time") == "2"
"""),
_cli_args(),
),
Expand Down

0 comments on commit 26dc587

Please sign in to comment.