Esempio n. 1
0
def db_cleanup_with_retry(
    db_name,
    db_host,
    db_port,
    username=None,
    password=None,
    ssl=False,
    ssl_keyfile=None,
    ssl_certfile=None,
    ssl_cert_reqs=None,
    ssl_ca_certs=None,
    authentication_mechanism=None,
    ssl_match_hostname=True,
):
    """
    This method is a retry version of db_cleanup.
    """
    return db_func_with_retry(
        db_cleanup_func,
        db_name,
        db_host,
        db_port,
        username=username,
        password=password,
        ssl=ssl,
        ssl_keyfile=ssl_keyfile,
        ssl_certfile=ssl_certfile,
        ssl_cert_reqs=ssl_cert_reqs,
        ssl_ca_certs=ssl_ca_certs,
        authentication_mechanism=authentication_mechanism,
        ssl_match_hostname=ssl_match_hostname,
    )
Esempio n. 2
0
def db_cleanup_with_retry(db_name, db_host, db_port, username=None, password=None,
                          ssl=False, ssl_keyfile=None,
                          ssl_certfile=None, ssl_cert_reqs=None, ssl_ca_certs=None,
                          ssl_match_hostname=True):
    """
    This method is a retry version of db_cleanup.
    """
    return db_func_with_retry(db_cleanup_func,
                              db_name, db_host, db_port,
                              username=username, password=password,
                              ssl=ssl, ssl_keyfile=ssl_keyfile,
                              ssl_certfile=ssl_certfile, ssl_cert_reqs=ssl_cert_reqs,
                              ssl_ca_certs=ssl_ca_certs,
                              ssl_match_hostname=ssl_match_hostname)