Project

General

Profile

Actions

Bug #5516

closed

rgw: update bucket relink teuthology test

Added by Anonymous almost 11 years ago. Updated almost 8 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
-
% Done:

0%

Source:
other
Tags:
Backport:
Regression:
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

In teuthology/task/radosgw-admin.py there is a test for relinking a bucket from one user to another. Here is the code block in question:

    # link the bucket to another user
    (err, out) = rgwadmin(ctx, client, ['bucket', 'link', '--uid', user2, '--bucket', bucket_name])
    assert not err

    # try creating an object with the first user which should cause an error
    key = boto.s3.key.Key(bucket)

    try:
        key.set_contents_from_string('three')
    except boto.exception.S3ResponseError:
        denied = True

    assert denied

Yehuda indicated that this test is likely no longer valid and/or needs to be tweaked. Possibilities include only linking to the original owner or adding a new call to re-link between users.

Actions #1

Updated by Yehuda Sadeh almost 11 years ago

  • Subject changed from Update bucket relink test to rgw: update bucket relink teuthology test
Actions #2

Updated by Yehuda Sadeh almost 8 years ago

  • Status changed from New to Resolved
Actions

Also available in: Atom PDF