Matt Benjamin
61804bcf91
fix test_lifecycle_expiration_header_{put,head}
...
Primarily fixes the expiration header() verifier function
check_lifecycle_expiration_header, but also cleans up
prefix handling in setup_lifecycle_expiration().
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2020-10-01 11:29:52 -04:00
Matt Benjamin
ea9f07a2bf
fix and remark on test_lifecycle_expiration_days0
...
1. fix a python3-related KeyError exception
2. note here: AWS documentation includes examples of "Days 0"
in use, but boto3 will not accept them--this is why the days0
test currently sets Days 1
3. delay increased to 30s, to avoid occasional failures due to
jitter
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2020-10-01 11:29:45 -04:00
root
7d14452035
STS Tests Files and modification in __init__.py
...
Signed-off-by: Kalpesh Pandya <kapandya@redhat.com>
2020-09-16 01:40:33 -04:00
gal salomon
6ea6cb6467
add filter for s3select tests
...
Signed-off-by: gal salomon <gal.salomon@gmail.com>
(cherry picked from commit fce9a52ef4
)
2020-07-07 07:38:41 -04:00
gal salomon
10c801a2e0
fix comments;remove non-used imports;enable test for projection;using get_client()
...
(cherry picked from commit 72e251ed69
)
2020-06-25 13:42:23 -04:00
gal salomon
9d670846a3
adding radom-generated tests, one for where clause , the second for prjection. random arithmetical expression is generated and used for building s3-select query; result is compared to python-engine
...
(cherry picked from commit fb39ac4829
)
2020-06-25 13:42:23 -04:00
gal salomon
bb801b8625
python linter; replace assert with assert_equal; add complex query test(sum,count,where); add test-schema ;
...
(cherry picked from commit e006dd4753
)
2020-06-25 13:42:23 -04:00
gal salomon
652619f46f
using config parameters
...
(cherry picked from commit 1a9d3677f7
)
2020-06-25 13:42:23 -04:00
gal salomon
b1ddeee6eb
add tests to validate csv-header-info functionalities is correct
...
(cherry picked from commit 5dc8bc75ab
)
2020-06-25 13:42:23 -04:00
gal salomon
ca9cb5cc2c
adding test cases for processing CSV objects with different CSV definitions; validate null,escape-rules and quotes are processed correctly
...
(cherry picked from commit 94b1986228
)
2020-06-25 13:42:23 -04:00
gal salomon
e010c4cfec
adding utcnow test
...
(cherry picked from commit 4c7c279f70
)
2020-06-25 13:42:23 -04:00
gal salomon
edea887e9c
adding tests for date-time functionalities
...
(cherry picked from commit 5925f0fb3f
)
2020-06-25 13:42:23 -04:00
gal salomon
cd4f7e1a7a
add complex expression tests; for nested function calls; and different where-clause which create the same group of values
...
(cherry picked from commit c1bce6ac70
)
2020-06-25 13:42:23 -04:00
gal salomon
048f9297a1
adding test for detection of cyclic reference to alias
...
(cherry picked from commit d543619e71
)
2020-06-25 13:42:23 -04:00
gal salomon
8bd6158054
adding aggregation tests
...
(cherry picked from commit f42872fd53
)
2020-06-25 13:42:23 -04:00
gal salomon
aca68a9d39
adding alias test case
...
(cherry picked from commit 74daf86fe5
)
2020-06-25 13:42:23 -04:00
gal salomon
537431c686
commit first tests for s3select and initial framework
...
(cherry picked from commit dac38694ef
)
2020-06-25 13:42:23 -04:00
Matt Benjamin
8ca96c4519
fix/restore test_lifecycle_expiration checks
...
Commit bf956df71e
adding
listobvjectsv2 tests inadvertently changed the v1
test_lifecycle_expiration test, which it had copied to
create a v2 version. Revert this.
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2020-05-26 11:07:53 -04:00
Kefu Chai
34040769ff
bootstrap,requirements.txt: bump up setuptools and requests
...
Fixes: https://tracker.ceph.com/issues/45691
Signed-off-by: Kefu Chai <kchai@redhat.com>
2020-05-26 09:08:26 -04:00
Casey Bodley
8ebb504159
bootstrap: remove deprecated virtualenv options
...
this fails on Ubuntu 20.04:
> virtualenv: error: unrecognized arguments: --no-site-packages --distribute
according to `virtualenv -h`:
> --no-site-packages DEPRECATED. Retained only for backward compatibility.
> Not having access to global site-packages is now the
> default behavior.
> --distribute DEPRECATED. Retained only for backward compatibility.
> This option has no effect.
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit a0c15c80ad
)
2020-05-21 11:09:26 -04:00
Abhishek L
9092d1ac61
Merge pull request #343 from theanalyst/ceph-master-public-buckets-qa
...
Ceph master public buckets backport
Reviewed-By: Casey Bodley <cbodley@redhat.com>
2020-03-30 15:25:57 +02:00
Abhishek Lekshmanan
7b3df700cc
fix ignore public acls with py3 compatible code
...
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit 4d675235dd
)
2020-03-26 16:28:12 +01:00
Abhishek Lekshmanan
4fc133b1b5
add tests for ignore public acls
...
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit 3b1571ace6
)
2020-03-26 16:28:12 +01:00
Abhishek Lekshmanan
0a495efc8c
add test for block public policy
...
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit b4516725f2
)
2020-03-26 16:28:12 +01:00
Abhishek Lekshmanan
a48cf75391
use empty bodies for canned acl tests with BlockPublicAccess
...
This should be a temporary workaround until #42208 is fixed
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit d02c1819f6
)
2020-03-26 16:28:12 +01:00
Abhishek Lekshmanan
a20e0d47f2
remove redundant get_client calls
...
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit 4996430709
)
2020-03-26 16:28:12 +01:00
Abhishek Lekshmanan
19947bd541
add ability to get svc client for s3config set of apis
...
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit 6d3f574a8e
)
2020-03-26 16:26:39 +01:00
Abhishek Lekshmanan
94168194fd
add tests for public access configuration
...
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit 1ad38530e0
)
2020-03-26 16:26:19 +01:00
Abhishek Lekshmanan
0e3084c995
add a few test cases for public bucket policies
...
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit 3f9d31c6c7
)
2020-03-26 16:24:14 +01:00
Abhishek Lekshmanan
1d39198872
boto3: add bucket policy status checks for public ACLs
...
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit 02b1d50ca7
)
2020-03-26 16:23:46 +01:00
Ali Maredia
11f75ea7c5
Merge pull request #340 from theanalyst/bootstrap-suse
...
bootstrap: add support for *suse distributions
2020-01-17 10:02:25 -05:00
Abhishek Lekshmanan
fb6520ac11
bootstrap: add support for *suse distributions
...
Also reformatted the bootstrap script to parse /etc/os-release instead, so that
more distro/pkg manager support could be added at a later point in time and
fixed the error message
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
2020-01-15 20:34:46 +01:00
Casey Bodley
13452bd25f
Merge pull request #337 from ceph/wip-python-3-port
...
Wip python 3 port
2020-01-15 08:48:54 -05:00
Ali Maredia
024e74c469
remove all non-functional tests and infra
...
Signed-off-by: Ali Maredia <amaredia@redhat.com>
2020-01-14 12:20:07 -05:00
Adam C. Emerson
be9935ba1a
Port functional tests from python 2 to python 3
...
Add fails_on_rgw to tests not passing. Some
tests from the master branch do not pass on the
rgw yet. Others waiting on rgw tracker issues to
be resolved.
Signed-off-by: Ali Maredia <amaredia@redhat.com>
2020-01-14 12:20:05 -05:00
Abhishek L
c9c84faf48
Merge pull request #314 from theanalyst/iam/user-policy-basic
...
iam: add a very basic user policy smoke test
Reviewed-By: Casey Bodley <cbodley@redhat.com>
Reviewed-By: Pritha Srivastava <prsivas@redhat.com>
Reviewed-By: Yuval Lifshitz <yuvalif@yahoo.com>
2019-12-20 18:30:21 +01:00
Abhishek L
aa453fa5c3
Merge pull request #311 from theanalyst/encoding-type
...
list-objects: add basic tests for encoding
Reviewed-By: Casey Bodley <cbodley@redhat.com>
2019-12-20 18:28:23 +01:00
Abhishek Lekshmanan
045ad2f46e
iam: explicitly set a region for the iam client
...
Avoids region not defined errors
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
2019-12-20 18:17:58 +01:00
Abhishek Lekshmanan
48be90a64e
iam: add a very basic user policy smoke test
...
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
2019-12-20 18:17:55 +01:00
Ali Maredia
92f056532b
Merge pull request #331 from yehudasa/wip-which
...
bootstrap: different packages for 'which'
2019-12-11 10:29:21 -05:00
Ali Maredia
fc195db725
Merge pull request #321 from romayalon/tags-order-fix
...
test_put_obj_with_tags
2019-12-10 13:04:08 -05:00
Yehuda Sadeh
f7f5eeccb0
bootstrap: different packages for 'which'
...
Either debianutils or which.
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2019-12-09 14:20:55 +02:00
Ali Maredia
506e8e5d4a
Merge pull request #330 from yehudasa/wip-bash
...
bootstrap: switch to bash
2019-12-08 14:04:39 -05:00
Yehuda Sadeh
e7fbcee0d5
bootstrap: switch to bash
...
Use of declare that is bash specific was introduced in:
d44c923405e22ea8b6cc1ab4316be3cc07f29b5
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2019-12-07 11:23:03 +02:00
Casey Bodley
361f4f9a66
Merge pull request #326 from ceph/wip-bootstrap-fix
...
Minor fix to Centos 8 bootstrap changes
2019-11-25 11:49:25 -05:00
Ali Maredia
dd44c92340
Merge pull request #156 from gaul/read-unreadable-object
...
Test reading an unreadable object
2019-11-25 00:22:44 -05:00
Ali Maredia
42cdf6e026
Merge pull request #278 from gaul/x-rgw
...
Ignore missing x-rgw-* headers
2019-11-25 00:09:54 -05:00
Ali Maredia
6b814189e0
Minor fix to Centos 8 bootstrap changes
...
Signed-off-by: Ali Maredia <amaredia@redhat.com>
2019-11-24 18:04:42 -05:00
Andrew Gaul
b787b79d81
Ignore missing x-rgw-* headers
...
Continue to require them in test_bucket_head_extended. Only Ceph
supports these headers.
Signed-off-by: Andrew Gaul <andrew@gaul.org>
2019-11-24 22:02:19 +09:00
Andrew Gaul
2160a6a403
Test reading an unreadable object
...
Signed-off-by: Andrew Gaul <andrew@gaul.org>
2019-11-24 21:48:36 +09:00