Casey Bodley
66e8f000c9
sts: remove test_get_session_token_permanent_creds_denied
...
Fixes: https://tracker.ceph.com/issues/69001
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2024-11-22 08:41:08 -05:00
Yuval Lifshitz
3437cda73d
better error handling in the STS tests
...
also, give more accurate instruction on how to run the tests
Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
2023-02-13 17:28:23 +02:00
Casey Bodley
4c75fba0de
nose: remove nose attrs and imports
...
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2023-01-21 22:40:33 -05:00
Casey Bodley
f5d0bc9be3
pytest: replace nose eq() with assert ==
...
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2023-01-21 22:40:33 -05:00
Casey Bodley
7e7e8d5a42
pytest: replace nose SkipTest with pytest.skip()
...
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2023-01-21 22:40:33 -05:00
Casey Bodley
4864dbc340
pytest: add custom marks for each nose @attr
...
and register them in pytest.ini
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2023-01-21 22:40:33 -05:00
Casey Bodley
672a123348
pytest: add global configfile and autouse teardown fixtures
...
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2023-01-21 22:40:33 -05:00
Soumya Koduri
bacab3cadf
Tag testcases failing on dbstore with 'fails_on_dbstore' attr
...
To be able to successfully run s3tests on dbstore backend in teuthology,
mark all the s3-tests currently failing on it with 'fails_on_dbstore' attr
Signed-off-by: Soumya Koduri <skoduri@redhat.com>
2022-04-27 15:44:40 +05:30
Kalpesh Pandya
c03fd082cc
test_sts: Changing code for proper cleanup
...
This solves: https://tracker.ceph.com/issues/53090
The solution is: We need to delete the role_policy and
user_policy attached user which was causing the failure.
Signed-off-by: Kalpesh Pandya <kapandya@redhat.com>
2022-01-18 11:55:06 +05:30
Pritha Srivastava
71266fede9
rgw/sts: test to use role tag as iam:ResourceTag in
...
role's trust policy.
Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
2021-08-30 14:25:08 +05:30
Pritha Srivastava
5dcc3dd689
rgw/sts: test for s3:ResourceTag in role's permission policy
...
Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
2021-08-30 14:25:02 +05:30
Pritha Srivastava
bf43a4a10a
rgw/sts: adding test for aws:TagKeys that can be used in the
...
condition element of the role's trust policy and the role's
permission policy.
Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
2021-08-30 14:21:38 +05:30
Pritha Srivastava
86fecf83b9
rgw/sts: adding test for aws:PrincipalTag in role permission
...
policy.
Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
2021-08-30 14:21:38 +05:30
Pritha Srivastava
64068d7bf9
rgw/sts: adding test to check for aws:RequestTag
...
in the condition element of a role's trust policy.
Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
2021-08-30 14:21:27 +05:30
Pritha Srivastava
d466b7bd09
rgw/sts: adding tests for testing assumerolewithwebidentity
...
using 'sub' and 'azp' fields in the web token.
Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
2021-08-30 14:19:37 +05:30
Matt Benjamin
41ebef2540
Merge pull request #397 from TRYTOBE8TME/wip-new-sts-tests
...
sts: Addition of new STS tests
2021-07-29 12:43:34 -04:00
Kalpesh Pandya
245a93326e
rgw/sts: Addition of new STS tests for testing
...
session policies alongwith role's permission policy
and bucket policy.
Signed-off-by: Kalpesh Pandya <kapandya@redhat.com>
Signed-off-by: Pritha Srivastava <prsrivas@redhat.com>
2021-07-16 13:34:23 +05:30
Casey Bodley
7276bee050
sts: test role policy around nonexistent objects
...
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2021-04-07 11:41:30 -04:00
root
f4a052dfcf
Webidentity Test addition to test_sts.py
...
Signed-off-by: Kalpesh Pandya <kapandya@redhat.com>
Few main changes/additions:
1. Webidentity test addition to test_sts.py.
2. A function named check_webidentity() added to __init__.py in order to check for section presence.
3. Few lines shifted from setup() to get_iam_client() to make them execute only when sts-tests run.
4. Documentation update (for sts section)
5. Changes in s3tests.conf.SAMPLE regarding sts sections
2020-10-31 00:15:42 +05:30
root
daf9062a22
STS issue fix ( https://tracker.ceph.com/issues/47588 )
...
This is the fix for the issue reported (https://tracker.ceph.com/issues/47588 ). The issue was with the argument which was passed to the function. After removing that argument (as it's already an optional argument) the issue is fixed.
Signed-off-by: Kalpesh Pandya <kapandya@redhat.com>
2020-10-06 02:02:44 +05:30
root
8dbe896f89
STS Tests Files and modification in __init__.py
...
Signed-off-by: Kalpesh Pandya <kapandya@redhat.com>
2020-08-12 13:30:22 +05:30