Skip to content

Commit 25339fd

Browse files
authored
Merge pull request #692 from SaiSuriya30/haproxy4
4 files haproxy changes
2 parents 2463c44 + 8f29083 commit 25339fd

20 files changed

+60
-10
lines changed

rgw/v2/tests/s3_swift/configs/test_Mbuckets_with_Nobjects_compression.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# upload type: non multipart
22
# script: test_Mbuckets_with_Nobjects.py
33
config:
4+
haproxy: true
45
user_count: 1
56
bucket_count: 2
67
objects_count: 100

rgw/v2/tests/s3_swift/configs/test_Mbuckets_with_Nobjects_compression_snappy.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# upload type: non multipart
22
# script: test_Mbuckets_with_Nobjects.py
33
config:
4+
haproxy: true
45
user_count: 1
56
bucket_count: 2
67
objects_count: 100

rgw/v2/tests/s3_swift/configs/test_Mbuckets_with_Nobjects_compression_zstd.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# upload type: non multipart
22
# script: test_Mbuckets_with_Nobjects.py
33
config:
4+
haproxy: true
45
user_count: 1
56
bucket_count: 2
67
objects_count: 100

rgw/v2/tests/s3_swift/configs/test_Mbuckets_with_Nobjects_download.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# upload type: non multipart
22
# script: test_Mbuckets_with_Nobjects.py
33
config:
4+
haproxy: true
45
user_count: 1
56
bucket_count: 2
67
objects_count: 100

rgw/v2/tests/s3_swift/configs/test_Mbuckets_with_Nobjects_etag.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
config:
2+
haproxy: true
23
user_count: 1
34
bucket_count: 2
45
objects_count: 1

rgw/v2/tests/s3_swift/configs/test_bucket_listing_flat_ordered.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
config:
2+
haproxy: true
23
user_count: 1
34
bucket_count: 2
45
objects_count: 100

rgw/v2/tests/s3_swift/configs/test_bucket_radoslist.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
config:
2+
haproxy: true
23
user_count: 1
34
bucket_count: 2
45
objects_count: 100

rgw/v2/tests/s3_swift/configs/test_dynamic_resharding_with_version_without_bucket_delete.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# test case id: CEPH-83571740
22
config:
3+
haproxy: true
34
objects_count: 100
45
objects_size_range:
56
min: 15

rgw/v2/tests/s3_swift/configs/test_dynamic_resharding_without_bucket_delete.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
config:
2+
haproxy: true
23
objects_count: 100
34
objects_size_range:
45
min: 15

rgw/v2/tests/s3_swift/configs/test_lc_transition_multiple_rules.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#test_bucket_lifecycle_object_expiration_transition.py
22
config:
3+
haproxy: true
34
user_count: 1
45
bucket_count: 1
56
objects_count: 10

rgw/v2/tests/s3_swift/configs/test_manual_resharding_without_bucket_delete.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
config:
2+
haproxy: true
23
objects_count: 100
34
objects_size_range:
45
min: 15

rgw/v2/tests/s3_swift/multisite_configs/test_dynamic_resharding_with_version_without_bucket_delete.yaml

-1
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# test case id: CEPH-83571740
2+
config:
3+
objects_count: 100
4+
objects_size_range:
5+
min: 15
6+
max: 20
7+
sharding_type: dynamic
8+
max_objects_per_shard: 5
9+
version_count: 4
10+
test_ops:
11+
enable_verison: true
12+
delete_bucket_object: false

rgw/v2/tests/s3_swift/multisite_configs/test_dynamic_resharding_without_bucket_delete.yaml

-1
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
config:
2+
objects_count: 100
3+
objects_size_range:
4+
min: 15
5+
max: 20
6+
sharding_type: dynamic
7+
max_objects_per_shard: 5
8+
test_ops:
9+
delete_bucket_object: false

rgw/v2/tests/s3_swift/multisite_configs/test_manual_resharding_without_bucket_delete.yaml

-1
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
config:
2+
objects_count: 100
3+
objects_size_range:
4+
min: 15
5+
max: 20
6+
sharding_type: manual
7+
shards: 97
8+
test_ops:
9+
delete_bucket_object: false

rgw/v2/tests/s3_swift/test_bucket_listing.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def test_exec(config, ssh_con):
7474

7575
for each_user in all_users_info:
7676
# authenticate
77-
auth = Auth(each_user, ssh_con, ssl=config.ssl)
77+
auth = Auth(each_user, ssh_con, ssl=config.ssl, haproxy=config.haproxy)
7878
if config.use_aws4 is True:
7979
rgw_conn = auth.do_auth(**{"signature_version": "s3v4"})
8080
else:

rgw/v2/tests/s3_swift/test_dynamic_bucket_resharding.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def test_exec(config, ssh_con):
8383
config.user_count = 1
8484
user_info = s3lib.create_users(config.user_count)
8585
user_info = user_info[0]
86-
auth = Auth(user_info, ssh_con, ssl=config.ssl)
86+
auth = Auth(user_info, ssh_con, ssl=config.ssl, haproxy=config.haproxy)
8787
rgw_conn = auth.do_auth()
8888
verification = True
8989
if config.test_with_bucket_index_shards:
@@ -310,7 +310,7 @@ def test_exec(config, ssh_con):
310310
log.info("Create new user and change bucket ownership")
311311
new_user = s3lib.create_users(1)
312312
new_user = new_user[0]
313-
new_auth = Auth(new_user, ssh_con, ssl=config.ssl)
313+
new_auth = Auth(new_user, ssh_con, ssl=config.ssl, haproxy=config.haproxy)
314314
new_conn = new_auth.do_auth()
315315
new_name = new_user["user_id"]
316316
out = reusable.unlink_bucket(user_info["user_id"], bucket_name)
@@ -545,7 +545,9 @@ def test_exec(config, ssh_con):
545545
log.info(f"Bucket list output from secondary: {bucket_list_sec}")
546546

547547
# List objects from sec site using boto3 rgw client
548-
other_site_auth = Auth(user_info, sec_site_ssh_con, ssl=config.ssl)
548+
other_site_auth = Auth(
549+
user_info, sec_site_ssh_con, ssl=config.ssl, haproxy=config.haproxy
550+
)
549551
sec_site_rgw_conn = other_site_auth.do_auth_using_client()
550552
resp = sec_site_rgw_conn.list_objects(Bucket=bucket.name)
551553
log.info(f"List objects output using rgw client from sec site: {resp}")

rgw/v2/tests/s3cmd/configs/test_get_s3cmd.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# polarion_id: CEPH-83575477
22
# script: test_s3cmd.py
33
config:
4+
haproxy: true
45
user_count: 1
56
bucket_count: 2
67
objects_count: 100

rgw/v2/tests/s3cmd/configs/test_rgw_log_details.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# Bugs: 2188557
33
# Polarian: CEPH-83575470
44
config:
5+
haproxy: true
56
user_count: 1
67
bucket_count: 2
78
objects_count: 100

rgw/v2/tests/s3cmd/multisite_configs/test_rgw_log_details.yaml

-1
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# script: test_rgw_ops_log.py
2+
# Bugs: 2188557
3+
# Polarian: CEPH-83575470
4+
config:
5+
user_count: 1
6+
bucket_count: 2
7+
objects_count: 100
8+
test_ops:
9+
rgw_log_detail: true

rgw/v2/tests/s3cmd/test_s3cmd.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def test_exec(config, ssh_con):
128128
)
129129
user_info = resource_op.create_users(no_of_users_to_create=1)
130130
s3_auth.do_auth(user_info[0], ip_and_port)
131-
auth = Auth(user_info[0], ssh_con, ssl=config.ssl)
131+
auth = Auth(user_info[0], ssh_con, ssl=config.ssl, haproxy=config.haproxy)
132132
rgw_conn = auth.do_auth()
133133
bucket_name = utils.gen_bucket_name_from_userid(
134134
user_info[0]["user_id"], rand_no=1
@@ -179,7 +179,7 @@ def test_exec(config, ssh_con):
179179
)
180180
user_info = resource_op.create_users(no_of_users_to_create=1)
181181
s3_auth.do_auth(user_info[0], ip_and_port)
182-
auth = Auth(user_info[0], ssh_con, ssl=config.ssl)
182+
auth = Auth(user_info[0], ssh_con, ssl=config.ssl, haproxy=config.haproxy)
183183
rgw_conn = auth.do_auth()
184184
rgw_conn2 = auth.do_auth_using_client()
185185
bucket_name = utils.gen_bucket_name_from_userid(

0 commit comments

Comments
 (0)