10 Commits

Author SHA1 Message Date
Tim Burke
e973e15cfa Get func tests passing with a minimal proxy pipeline
I've now got 54 pass, 676 skipped with

   pipeline = proxy-logging memcache tempauth proxy-logging proxy-server

Could probably even ditch logging, but that'd get a bit painful to
debug.

Change-Id: I86bcd7a2373cf1e7213cb716888307306b7bb50d
2020-09-18 13:05:41 -07:00
Tim Burke
2e4c8a924e py3: port RBAC func tests
Yes, it really is just the import.

Change-Id: Id7e2891b6600af102176eaa2e87f81b528adde8d
2019-08-05 14:47:51 -07:00
Zuul
9bf1360f88 Merge "Replacing six.iter/dict.iter usages" 2018-09-27 08:43:30 +00:00
Steve Kowalik
5a06e3da3b No longer import nose
Since Python 2.7, unittest in the standard library has included mulitple
facilities for skipping tests by decorators as well as an exception.
Switch to that directly, rather than importing nose.

Change-Id: I4009033473ea24f0d0faed3670db844f40051f30
2017-11-07 15:39:25 +11:00
yanghuichan
e9d0a7acab Replacing six.iter/dict.iter usages
Replacing six.iter usages substituting .items(), and
.values() in place of six.iteritems/dict.iteritems,
and six.itervalues/itervalues respectively.

1.As mentioned in [1], we should avoid using six.iteritems
to achieve iterators. We can use dict.items instead, as it
will return iterators in PY3 as well. And dict.items/keys
will more readable.
2.In py2, the performance about listshould be negligible,
see the link [2].

[1] https://wiki.openstack.org/wiki/Python3#Common patterns
[2] http://lists.openstack.org/pipermail/openstack-dev/2015-June/066391.html

Change-Id: I53e3ed77c8279ac48f738e396672794300de440d
2017-08-07 16:41:49 +08:00
Cao Xuan Hoang
a67bb2e249 Removes unnecessary utf-8 encoding
The following file(s) added utf-8 encoding but never used. So we can
remove them at all.

test/functional/test_access_control.py
test/unit/common/middleware/crypto/test_keymaster.py
test/unit/obj/test_diskfile.py

Change-Id: I00adc968872ebe9f9c0619a4e393e048c7c1a91e
2016-12-22 10:49:56 +07:00
Hisashi Osanai
88b14a0f80 Add functional test for access control (RBAC INFO) with Keystone
This patch adds test cases for info requests to accounts, containers
and objects using various combinations of users/projects, roles and/or
service tokens.

Change-Id: Iece57b03a73b3cdf9762573678755f361e9b803e
2016-07-11 21:59:37 +00:00
Hisashi Osanai
5448a55e37 Add functional test for access control (container ACL) with Keystone
This patch adds test cases for requests to containers and objects using
various combinations of users/projects, roles in order to check container
ACL and referrer behavior.

Co-Authored-By: Keisuke Yamamoto <keisuk.yamamoto@jp.fujitsu.com>
Change-Id: I435655bc56e5088ba50a96a879a45c7e264e0d8d
2016-07-11 21:51:49 +00:00
Christian Schwede
7aaca02917 Add comments to role-based access control functional tests
Change-Id: Ic18c8a2abc33e2f175f948991af0189935b8702f
2016-02-15 20:08:43 +01:00
Hisashi Osanai
09b188f03c Add functional test for access control (RBAC) with Keystone
This patch adds test cases for PUT, DELETE, GET, HEAD, POST and OPTIONS
requests to accounts, containers and objects using various combinations
of users/projects, roles and/or service tokens.

Change-Id: Iea8141ac74ad949a3ae7fa47fda3135d0f2612f6
2016-01-19 01:08:36 +00:00