Read or write object with rights tests broken
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tempest |
Fix Released
|
Low
|
Unassigned |
Bug Description
Description
===========
I ran the DefCore tests with the latest tempest.
But got error when executed the `test_read_
Steps to reproduce
==================
* Clone the latest tempest
* Config the tempest config file and account.yml
* Execute `./refstack-client test -c tempest.conf -v --test-list "https:/
Expected result
===============
All cases success.
Actual result
=============
Error with `test_read_
Environment
===========
# git log
commit e8192e4b5d22a57
Merge: f496885 f9ded35
Author: Jenkins <email address hidden>
Date: Thu Feb 2 19:53:02 2017 +0000
Merge "Fix date-time format checking in response schema"
Logs
===========
tempest.
-------
Captured traceback:
~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "tempest/
resp, _ = self.os_
File "tempest/
resp, body = self.get(url, headers=headers)
File "tempest/
return self.request('GET', url, extra_headers, headers)
File "tempest/
File "tempest/
raise exceptions.
tempest.
Details: <html><
tempest.
-------
Captured traceback:
~~~~~~~~~~~~~~~~~~~
Traceback (most recent call last):
File "tempest/
File "tempest/
resp, body = self.put(url, data, headers)
File "tempest/
return self.request('PUT', url, extra_headers, headers, body, chunked)
File "tempest/
File "tempest/
raise exceptions.
tempest.
Details: <html><
description: | updated |
summary: |
- Read object with rights broken + Read or write object with rights broken |
summary: |
- Read or write object with rights broken + Read or write object with rights tests broken |
Changed in tempest: | |
importance: | Undecided → Low |
Changed in tempest: | |
assignee: | Eric Xie (eric-xie) → nobody |
status: | In Progress → New |
In https:/ /docs.openstack .org/developer/ swift/overview_ acl.html name>:< user-name) must no longer be used because with the introduction of domains in Keystone, names are not globally unique. You should use user and project ids instead.'
'Note Keystone project (tenant) or user names (i.e., <project-
But in tempest/ api/object_ storage/ test_container_ acl.py, use the name not id. object_ with_rights( self): roles_operator_ alt.credentials .tenant_ name roles_operator_ alt.credentials .username
cont_headers = {'X-Container- Read': tenant_name + ':' + username} roles_operator. container_ client. \
update_ container_ metadata(
self. container_ name, metadata= cont_headers,
metadata_ prefix= '')
def test_read_
# attempt to read object using authorized user
# update X-Container-Read metadata ACL
tenant_name = self.os_
username = self.os_
resp_meta, body = self.os_