Skip to content

Commit

Permalink
rgw/logging: basic set of tests for bucket logging
Browse files Browse the repository at this point in the history
Signed-off-by: Yuval Lifshitz <[email protected]>
  • Loading branch information
yuvalif committed Sep 10, 2024
1 parent f61129e commit 0a60c07
Show file tree
Hide file tree
Showing 3 changed files with 754 additions and 18 deletions.
14 changes: 14 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,17 @@ You can filter tests based on their attributes::

S3TEST_CONF=your.conf tox -- s3tests_boto3/functional/test_iam.py -m 'not fails_on_rgw'

========================
Bucket logging tests
========================

Ceph has extensions for the bucket logging S3 API. For the tests to cover these extensions, the following file: `examples/rgw/boto3/service-2.sdk-extras.json` from the Ceph repo,
should be copied to the: `~/.aws/models/s3/2006-03-01/` directory on the machine where the tests are run.
If the file is not present, the tests will still run, but the extension tests will be skipped. In this case, the bucket logging object roll time must be decreased manually from its default of
300 seconds to 5 seconds::

vstart.sh -o rgw_bucket_log_object_roll_time=5

Then the tests can be run with::

S3TEST_CONF=your.conf tox -- -m 'bucket_logging'
1 change: 1 addition & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ markers =
auth_common
bucket_policy
bucket_encryption
bucket_logging
checksum
cloud_transition
encryption
Expand Down
Loading

0 comments on commit 0a60c07

Please sign in to comment.