# -*- coding: utf-8 -*-

from acore_server_metadata import api


def test():
    _ = api

    # top level API
    _ = api.exc
    _ = api.settings
    _ = api.Server

    # attribute and method
    _ = api.exc.ServerNotFoundError
    _ = api.exc.ServerNotUniqueError

    _ = api.Server.get_ec2
    _ = api.Server.get_rds
    _ = api.Server.get_server
    _ = api.Server.batch_get_server
    _ = api.Server.is_exists
    _ = api.Server.is_running
    _ = api.Server.is_ec2_exists
    _ = api.Server.is_ec2_running
    _ = api.Server.is_rds_exists
    _ = api.Server.is_rds_running
    _ = api.Server.refresh
    _ = api.Server.run_ec2
    _ = api.Server.run_rds
    _ = api.Server.start_ec2
    _ = api.Server.start_rds
    _ = api.Server.stop_ec2
    _ = api.Server.stop_rds
    _ = api.Server.delete_ec2
    _ = api.Server.delete_rds
    _ = api.Server.update_db_master_password
    _ = api.Server.associate_eip_address
    _ = api.Server.create_db_snapshot
    _ = api.Server.cleanup_db_snapshot


if __name__ == "__main__":
    from acore_server_metadata.tests import run_cov_test

    run_cov_test(__file__, "acore_server_metadata.api", preview=False)
