#@<> Cluster: validating members
testutil.deploy_sandbox(__mysql_sandbox_port1, 'root', {'report_host': hostname})
testutil.snapshot_sandbox_conf(__mysql_sandbox_port1)


shell.connect({'scheme': 'mysql', 'host': localhost, 'port': __mysql_sandbox_port1, 'user': 'root', 'password': 'root'})

cluster = dba.create_cluster('devCluster')

validate_members(cluster, [
    'add_instance',
    'describe',
    'dissolve',
    'execute',
    'disconnect',
    'force_quorum_using_partition_of',
    'get_cluster_set',
    'get_name',
    'help',
    'list_routers',
    'name',
    'rejoin_instance',
    'remove_router_metadata',
    'remove_instance',
    'rescan',
    'reset_recovery_accounts_password',
    'reset_replication_accounts_password',
    'options',
    'setup_admin_account',
    'setup_router_account',
    'status',
    'set_primary_instance',
    'set_option',
    'set_instance_option',
    'switch_to_multi_primary_mode',
    'switch_to_single_primary_mode',
    'create_cluster_set',
    'fence_all_traffic',
    'fence_writes',
    'unfence_writes',
    'add_replica_instance',
    'set_routing_option',
    'router_options',
    'create_routing_guideline',
    'get_routing_guideline',
    'routing_guidelines',
    'remove_routing_guideline',
    'import_routing_guideline'
    ])

cluster.disconnect()
session.close()

testutil.destroy_sandbox(__mysql_sandbox_port1)
