Skip to content

test(compat): cover force-delete casing and 257-byte MRF refresh - #165

Merged
cxymds merged 2 commits into
mainfrom
test/3196-3194-compat-regressions
Nov 24, 2026
Merged

cxymds merged 2 commits into
mainfrom
test/3196-3194-compat-regressions

Conversation

@overtrue

Copy link
Copy Markdown
Collaborator

Summary

Adds regression coverage for three compatibility cases tracked under rustfs/backlog#2734:

  • S3C-104 (rustfs/backlog#3196): verifies that DELETE /{bucket} with x-minio-force-delete: True removes a non-empty bucket (204), False preserves a non-empty bucket (409 BucketNotEmpty) and removes an empty bucket (204), and all-caps TRUE stays rejected (400 InvalidArgument) without removing objects.
  • S3C-101 (rustfs/backlog#3193): verifies that PUT /{bucket} carrying x-amz-bucket-namespace: global returns 200 and creates a reachable bucket.
  • admin.mrf-long-root-refresh (rustfs/backlog#3194): adds scripts/mrf_long_root_refresh.py and test_mrf_long_root_refresh.py to verify that a 257-byte root access key can execute POST /rustfs/admin/v4/heal/mrf/responsibilities/actions refresh (200, "state": "refreshed") while acceptUnverifiedRisk continues to reject >256-byte persisted operator actors (400 InvalidRequest).

Verification

  • bash -n rustfs-s3-compat-test.sh
  • python3 -B -m unittest test_mrf_long_root_refresh.py test_validation_migration.py test_check_shell_syntax.py
  • python3 scripts/validation_migration_review.py --require-complete
  • bash test_validation_s3_basic.sh

@cxymds
cxymds merged commit 5644d75 into main Nov 24, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants