mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2024-12-14 11:58:02 +00:00
tests: only run s3 snapshot test if bucket not empty
This commit is contained in:
parent
64991f09f4
commit
06de542923
1 changed files with 2 additions and 1 deletions
|
@ -309,7 +309,8 @@ async def test_info_persistence_field(async_client):
|
|||
# If DRAGONFLY_S3_BUCKET is configured, AWS credentials must also be
|
||||
# configured.
|
||||
@pytest.mark.skipif(
|
||||
"DRAGONFLY_S3_BUCKET" not in os.environ, reason="AWS S3 snapshots bucket is not configured"
|
||||
"DRAGONFLY_S3_BUCKET" not in os.environ or os.environ["DRAGONFLY_S3_BUCKET"] == "",
|
||||
reason="AWS S3 snapshots bucket is not configured",
|
||||
)
|
||||
@dfly_args({**BASIC_ARGS, "dir": "s3://{DRAGONFLY_S3_BUCKET}{DRAGONFLY_TMP}", "dbfilename": ""})
|
||||
async def test_s3_snapshot(async_client, tmp_dir):
|
||||
|
|
Loading…
Reference in a new issue