Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds custom config to verify dedup feature #11055

Merged
merged 1 commit into from
Dec 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
8 changes: 8 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,14 @@ 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
Loading