#@<> 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',
    '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',
    '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',
    'routing_options',
    'set_routing_option',
    'router_options'
    ])

cluster.disconnect()
session.close()

testutil.destroy_sandbox(__mysql_sandbox_port1)
