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

[release-4.17] Fix guaranteed bucket logs tests #10930

Open
wants to merge 1 commit into
base: release-4.17
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion ocs_ci/ocs/resources/bucket_logging_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ def verify_logs_integrity(self, logs, expected_ops, check_intent=False):
# The http_status field is 102 for intent logs
if check_intent:
for op, obj in expected_ops:
expected_ops_set.append(f"{op}-{obj}-102")
expected_ops_set.add(f"{op}-{obj}-102")

# Parse the logs into a set of strings with the same format
logs_set = {
Expand Down
2 changes: 1 addition & 1 deletion tests/functional/object/mcg/test_bucket_logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ def test_bucket_logs_integrity(
expected_ops = []
for obj_key in obj_keys:
for op in ["PUT", "DELETE", "GET", "HEAD"]:
expected_ops.append((op, f"{source_bucket}/{obj_key}"))
expected_ops.append((op, f"/{source_bucket}/{obj_key}"))

assert blm.verify_logs_integrity(
bucket_logs, expected_ops, check_intent=True
Expand Down
Loading