Skip to content

Commit

Permalink
Adds custom config to verify dedup feature
Browse files Browse the repository at this point in the history
Signed-off-by: Uday Kurundwade <[email protected]>
  • Loading branch information
udaysk23 committed Dec 17, 2024
1 parent 3c94039 commit 125e171
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
1 change: 1 addition & 0 deletions ocs_ci/ocs/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@
STS_DEFAULT_SESSION_TOKEN_EXPIRY_MS = (
CONFIG_JS_PREFIX + "STS_DEFAULT_SESSION_TOKEN_EXPIRY_MS"
)
MIN_CHUNK_AGE_FOR_DEDUP = CONFIG_JS_PREFIX + "MIN_CHUNK_AGE_FOR_DEDUP"

# Resources / Kinds
CEPHFILESYSTEM = "CephFileSystem"
Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -7441,7 +7441,7 @@ def finalizer():
@pytest.fixture(scope="class")
def add_env_vars_to_noobaa_endpoint_class(request, mcg_obj_session):
"""
Class-scoped fixture for adding env vars to the noobaa-core sts
Class-scoped fixture for adding env vars to the noobaa-endpoint sts
"""
return add_env_vars_to_noobaa_endpoint_fixture(request, mcg_obj_session)
Expand Down
12 changes: 12 additions & 0 deletions tests/functional/object/mcg/test_write_to_bucket.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,18 @@ def teardown():
return zip_filename


@pytest.fixture(scope="class", autouse=True)
def reduce_dedup_wait_time(add_env_vars_to_noobaa_endpoint_class):
"""
Reduce the dedup time to 0 sec
"""
add_env_vars_to_noobaa_endpoint_class(
[
(constants.MIN_CHUNK_AGE_FOR_DEDUP, 0)
]
)


@mcg
@red_squad
@runs_on_provider
Expand Down

0 comments on commit 125e171

Please sign in to comment.