original_docstring: 
          This function to verify the data of buckets owned by a user
  
          Data verification happens to all the buckets of a particular user for both versioned and normal buckets
          Parameters:
  
          Returns:
  
          
docstring: This function to verify the data of buckets owned by a user
  Data verification happens to all the buckets of a particular user for both versioned and normal buckets
  Parameters.
  
  
docstring_tokens: This function to verify the data of buckets owned by a user Data verification happens to all the buckets of a particular user for both versioned and normal buckets Parameters .
code: def verify_io(self):
          """
          This function to verify the data of buckets owned by a user
  
          Data verification happens to all the buckets of a particular user for both versioned and normal buckets
          Parameters:
  
          Returns:
  
          """
          log.info("***************Starting Verification*****************")
          data = self.file_op.get_data()
          users = data["users"]
          is_secure = True if utils.is_rgw_secure() else False
          host = socket.gethostbyname(socket.gethostname())
  
          endpoint_proto = "https" if is_secure else "http"
          endpoint_port = utils.get_radosgw_port_no()
          endpoint_url = f"{endpoint_proto}://{host}:{endpoint_port}"
  
          for each_user in users:
              log.info("verifying data for the user: \n")
              log.info("user_id: %s" % each_user["user_id"])
              log.info("access_key: %s" % each_user["access_key"])
              log.info("secret_key: %s" % each_user["secret_key"])
              conn = boto3.resource(
                  "s3",
                  aws_access_key_id=each_user["access_key"],
                  aws_secret_access_key=each_user["secret_key"],
                  endpoint_url=endpoint_url,
                  use_ssl=is_secure,
                  verify=False,
              )
  
              for each_bucket in each_user["bucket"]:
                  log.info("verifying data for bucket: %s" % each_bucket["name"])
                  bucket_from_s3 = conn.Bucket(each_bucket["name"])
                  curr_versioning_status = each_bucket["curr_versioning_status"]
                  log.info("curr_versioning_status: %s" % curr_versioning_status)
                  if not each_bucket["keys"]:
                      log.info("keys are not created")
                  else:
                      no_of_keys = len(each_bucket["keys"])
                      log.info("no_of_keys: %s" % no_of_keys)
                      for each_key in each_bucket["keys"]:
                          versioned_keys = len(each_key["versioning_info"])
                          log.info("versioned_keys: %s" % versioned_keys)
                          if not each_key["versioning_info"]:
                              log.info("not versioned key")
                              verify_key(each_key, bucket_from_s3)
                          else:
                              log.info("versioned key")
                              verify_key_with_version(each_key, bucket_from_s3)
          log.info("verification of data completed")
code_tokens: def verify_io ( self ) : log . info ( "***************Starting Verification*****************" ) data = self . file_op . get_data ( ) users = data [ "users" ] is_secure = True if utils . is_rgw_secure ( ) else False host = socket . gethostbyname ( socket . gethostname ( ) ) endpoint_proto = "https" if is_secure else "http" endpoint_port = utils . get_radosgw_port_no ( ) endpoint_url = f"{endpoint_proto}://{host}:{endpoint_port}" for each_user in users : log . info ( "verifying data for the user: \n" ) log . info ( "user_id: %s" % each_user [ "user_id" ] ) log . info ( "access_key: %s" % each_user [ "access_key" ] ) log . info ( "secret_key: %s" % each_user [ "secret_key" ] ) conn = boto3 . resource ( "s3" , aws_access_key_id = each_user [ "access_key" ] , aws_secret_access_key = each_user [ "secret_key" ] , endpoint_url = endpoint_url , use_ssl = is_secure , verify = False , ) for each_bucket in each_user [ "bucket" ] : log . info ( "verifying data for bucket: %s" % each_bucket [ "name" ] ) bucket_from_s3 = conn . Bucket ( each_bucket [ "name" ] ) curr_versioning_status = each_bucket [ "curr_versioning_status" ] log . info ( "curr_versioning_status: %s" % curr_versioning_status ) if not each_bucket [ "keys" ] : log . info ( "keys are not created" ) else : no_of_keys = len ( each_bucket [ "keys" ] ) log . info ( "no_of_keys: %s" % no_of_keys ) for each_key in each_bucket [ "keys" ] : versioned_keys = len ( each_key [ "versioning_info" ] ) log . info ( "versioned_keys: %s" % versioned_keys ) if not each_key [ "versioning_info" ] : log . info ( "not versioned key" ) verify_key ( each_key , bucket_from_s3 ) else : log . info ( "versioned key" ) verify_key_with_version ( each_key , bucket_from_s3 ) log . info ( "verification of data completed" )
short_docstring: This function to verify the data of buckets owned by a user
  Data verification happens to all the buckets of a particular user for both versioned and normal buckets
  Parameters:
short_docstring_tokens: This function to verify the data of buckets owned by a user Data verification happens to all the buckets of a particular user for both versioned and normal buckets Parameters :
comment: """
          This function to verify the data of buckets owned by a user
  
          Data verification happens to all the buckets of a particular user for both versioned and normal buckets
          Parameters:
  
          Returns:
  
          """