manila/manila/tests
Goutham Pacha Ravi 5b8b7b19fd [RBAC] Return 404 if share is inaccessible
When a user is prevented from listing a non-public
share, the API service would return a 403 Forbidden.
This isn't consistent with the API SIG's guidance
on resources restricted by virtue of RBAC policy since
users with malicious intent may use the signal to
mean that the resource exists.

Depends-On: I27fdd7dfffeb15965b66dbb3f6b1568c11ff9ad4
Change-Id: I7e05dcb343c932cc7fec8d395919053d0a1801ce
Closes-Bug: #1901210
Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
(cherry picked from commit 6303741be2)
(cherry picked from commit 078bc4300a)
(cherry picked from commit dfb4e7ee93)
2022-09-27 05:39:13 +00:00
..
api [RBAC] Return 404 if share is inaccessible 2022-09-27 05:39:13 +00:00
cmd Remove unused model properties and increase unit test coverage 2021-03-23 09:27:48 -03:00
common Handle service client authorization errors 2021-06-24 15:45:04 +00:00
compute Handle service client authorization errors 2021-06-24 15:45:04 +00:00
data Use unittest.mock instead of third party lib 2020-04-17 16:24:27 -07:00
db Optimize the query logic for share network list 2021-09-10 19:23:25 +00:00
hacking remove usage of six library from unit tests 2021-01-28 10:47:40 +08:00
image Handle service client authorization errors 2021-06-24 15:45:04 +00:00
integrated Fix unit tests to use requests 2021-02-15 17:04:33 -08:00
message Use unittest.mock instead of third party lib 2020-04-17 16:24:27 -07:00
monkey_patch_example Removed ignored checks from tox.ini and fixed pep8 issues 2016-02-14 14:56:55 +02:00
network Handle service client authorization errors 2021-06-24 15:45:04 +00:00
scheduler Add Share Affinity/Anti-Affinity Scheduler Filters 2021-09-03 08:58:46 +02:00
share [RBAC] Return 404 if share is inaccessible 2022-09-27 05:39:13 +00:00
share_group Add security service update for in-use share networks 2021-03-12 18:37:45 -03:00
var Renamed cinder to manila. 2013-09-02 09:59:07 +03:00
volume Handle service client authorization errors 2021-06-24 15:45:04 +00:00
wsgi Use unittest.mock instead of third party lib 2020-04-17 16:24:27 -07:00
xenapi Renamed cinder to manila. 2013-09-02 09:59:07 +03:00
__init__.py Removed ignored checks from tox.ini and fixed pep8 issues 2016-02-14 14:56:55 +02:00
conf_fixture.py Advertise v2 API routes without project_id 2021-02-04 23:20:19 -08:00
db_utils.py Add security service update for in-use share networks 2021-03-12 18:37:45 -03:00
declare_conf.py Switch to using oslo_* instead of oslo.* 2015-01-27 09:19:50 +01:00
fake_client_exception_class.py Fix keystone v3 issues for all clients 2016-03-18 14:42:33 +01:00
fake_compute.py Fix error that failed to get image for booting server 2019-12-13 01:31:22 +00:00
fake_driver.py remove usage of six library from unit tests 2021-01-28 10:47:40 +08:00
fake_network.py Replaces uuid.uuid4 with uuidutils.generate_uuid() 2016-11-14 10:51:24 -05:00
fake_notifier.py Disable notifications 2017-07-17 12:45:11 -03:00
fake_service_instance.py Use unittest.mock instead of third party lib 2020-04-17 16:24:27 -07:00
fake_share.py Advertise v2 API routes without project_id 2021-02-04 23:20:19 -08:00
fake_utils.py remove usage of six library from unit tests 2021-01-28 10:47:40 +08:00
fake_volume.py Trivial: Remove unused logging import 2015-12-28 21:44:26 -05:00
fake_zfssa.py Add share manage/unmanage of Oracle ZFSSA driver 2016-07-05 15:58:18 -04:00
policy.yaml [goal] Deprecate the JSON formatted policy file 2020-12-13 00:05:00 +00:00
runtime_conf.py Switch to using oslo_* instead of oslo.* 2015-01-27 09:19:50 +01:00
test_api.py remove usage of six library from unit tests 2021-01-28 10:47:40 +08:00
test_conf.py Removed unnecessary setUp() calls in tests 2017-08-02 12:47:34 +00:00
test_context.py Remove unit test that is not relevant anymore 2017-01-28 12:02:24 +02:00
test_coordination.py Use unittest.mock instead of third party lib 2020-04-17 16:24:27 -07:00
test_exception.py Add config option to set per_share_size_limit. 2021-03-09 11:58:17 +01:00
test_hacking.py disable M325 2020-10-14 14:05:30 +08:00
test_manager.py Use unittest.mock instead of third party lib 2020-04-17 16:24:27 -07:00
test_misc.py Don't translate LOG messages in testsuite 2014-10-28 19:46:09 +01:00
test_network.py Add manage/unmanage of shares in DHSS=True 2019-03-05 16:03:29 -03:00
test_policy.py Disable some policy warnings 2021-03-19 17:53:49 -07:00
test_quota.py Migrate all quota parameters to [quota] section. 2021-07-30 08:47:56 +09:00
test_rpc.py Use unittest.mock instead of third party lib 2020-04-17 16:24:27 -07:00
test_service.py Use unittest.mock instead of third party lib 2020-04-17 16:24:27 -07:00
test_test.py Handle oslo.messaging ping endpoint 2020-09-08 11:20:41 -07:00
test_test_utils.py Remove vim headers 2014-10-06 15:00:27 +02:00
test_utils.py Replace retrying with tenacity 2021-09-01 18:31:38 -07:00
utils.py remove usage of six library from unit tests 2021-01-28 10:47:40 +08:00