Commit Graph

9 Commits

Author SHA1 Message Date
Casey Bodley
ce45875d80
Merge pull request #23145 from cbodley/wip-qa-rgw-admin-rest
qa/rgw: add radosgw-admin-rest task to singleton suite

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
2018-08-01 13:52:40 -04:00
Casey Bodley
b696c8493c qa/rgw: fix 'policy show' tests in radosgw_admin_rest task
'policy show' returns a json-encoded representation of
RGWAccessControlPolicy, while key.get_xml_acl() returns
RGWAccessControlPolicy_S3 encoded as xml. so even with '&format=xml',
the strings won't match

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2018-07-27 14:29:48 -04:00
Casey Bodley
638fa1de42 qa/rgw: add bucket-id param to 'bucket link' admin api test
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2018-07-27 14:29:47 -04:00
Casey Bodley
3b795cc2c3 qa/rgw: radosgw_admin_rest task tolerates empty responses
result.json() throws a 'JSONDecodeError: Expecting value: line 1 column 1'
for requests that return no body, such as 'user rm' 'key rm' 'subuser
rm', 'bucket unlink', etc

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2018-07-27 14:29:47 -04:00
Casey Bodley
975f34f2f6 qa/rgw: radosgw_admin_rest task uses rgw.role_endpoints for connections
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2018-07-27 14:29:47 -04:00
Casey Bodley
2f37710ce7 qa/rgw: radosgw_admin_rest task uses util.rgw.rgwadmin()
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2018-07-27 14:29:47 -04:00
yuliyang
30bd588300 qa: add test for https://github.com/ceph/ceph/pull/22790
Signed-off-by: yuliyang <yuliyang@cmss.chinamobile.com>
2018-07-20 22:22:37 +08:00
Volker Theile
c6792a8be2 rgw: Do not modify email if argument is not set
The RGW Admin OPS API overwrites the users email either it is not set via argument, e.g. when executing /{admin}/user?uid=test5&suspended=true.

Signed-off-by: Volker Theile <vtheile@suse.com>
2018-05-16 15:49:57 +02:00
Sage Weil
c01f2ee0e2 move ceph-qa-suite dirs into qa/ 2016-12-14 11:29:55 -06:00