From d30f21800400a1a8b1645f2e4c8082c93d866b47 Mon Sep 17 00:00:00 2001 From: Anuchaithra Date: Fri, 8 Nov 2024 11:50:00 +0530 Subject: [PATCH] [TFA] AttributeError: for 'test_ops' seen, as config was not sent to the function declartion Signed-off-by: Anuchaithra --- rgw/v2/tests/s3_swift/reusable.py | 6 +++--- rgw/v2/tests/s3_swift/reusables/bucket_notification.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/rgw/v2/tests/s3_swift/reusable.py b/rgw/v2/tests/s3_swift/reusable.py index 84e1979ec..97205fc68 100644 --- a/rgw/v2/tests/s3_swift/reusable.py +++ b/rgw/v2/tests/s3_swift/reusable.py @@ -2143,7 +2143,7 @@ def verify_object_sync_on_other_site(rgw_ssh_con, bucket, config, bucket_object= ) cmd_output = json.loads(stdout.read().decode()) if "rgw.main" not in cmd_output["usage"].keys(): - for retry_count in range(20): + for retry_count in range(25): time.sleep(60) _, re_stdout, _ = rgw_ssh_con.exec_command( f"radosgw-admin bucket stats --bucket {bucket.name}" @@ -2160,9 +2160,9 @@ def verify_object_sync_on_other_site(rgw_ssh_con, bucket, config, bucket_object= log.info(f"bucket stats synced for bucket {bucket.name}") break - if (retry_count > 20) and ("rgw.main" not in re_cmd_output["usage"].keys()): + if (retry_count > 25) and ("rgw.main" not in re_cmd_output["usage"].keys()): raise TestExecError( - f"object not synced on bucket {bucket.name} in another site even after 20m" + f"object not synced on bucket {bucket.name} in another site even after 25m" ) cmd_output = re_cmd_output diff --git a/rgw/v2/tests/s3_swift/reusables/bucket_notification.py b/rgw/v2/tests/s3_swift/reusables/bucket_notification.py index cdb8b2776..2f2976af6 100644 --- a/rgw/v2/tests/s3_swift/reusables/bucket_notification.py +++ b/rgw/v2/tests/s3_swift/reusables/bucket_notification.py @@ -463,7 +463,7 @@ def verify(self, bucket_name): # verify all the attributes of the event record. if event not received abort testcase log.info("verify event record attributes") verify = verify_event_record( - event, bucket_name, event_record_path, self.ceph_version_name + event, bucket_name, event_record_path, self.ceph_version_name, self.config ) if verify is False: raise EventRecordDataError(