def setup_method(self, method):
        hostlist, user, password = TestBaseClass.get_hosts()
        config = {'hosts': hostlist}
        if user is None and password is None:
            self.client = aerospike.client(config).connect()
        else:
            self.client = aerospike.client(config).connect(user, password)
        self.client.index_integer_create('test', 'demo', 'age',
                                         'test_demo_age_idx')
        self.client.index_integer_create('test', None, 'age',
                                         'test_null_age_idx')
        for i in range(1, 5):
            key = ('test', 'demo', i)
            rec = {'name': 'name%s' % (str(i)), 'age': i}
            self.client.put(key, rec)
        policy = {}
        self.client.udf_put(u"bin_lua.lua", 0, policy)
Helper method to trigger reboot on the node and finish deploy.
dataset/ETHPy150Open aerospike/aerospike-client-python/test/old_tests/test_query_apply.py/TestQueryApply.setup_method--crossover with--dataset/ETHPy150Open openstack/ironic/ironic/drivers/modules/agent_base_vendor.py/BaseAgentVendor.reboot_and_finish_deploy