def test_master(self): """Function: test_master Description: Test with master configuration. Arguments: """ func_call = fetch_mst_rep_cfg self.assertTrue(mysql_clone.cfg_chk(func_call, self.req_rep_cfg["master"]))
def test_slave(self): """Function: test_slave Description: Test with slave configuration. Arguments: """ func_call = fetch_slv_rep_cfg self.assertTrue(mysql_clone.cfg_chk(func_call, self.req_rep_cfg["slave"]))
def test_missing_config(self): """Function: test_missing_config Description: Test with missing configuration options. Arguments: """ func_call = fetch_mst_rep_cfg2 with gen_libs.no_std_out(): self.assertFalse(mysql_clone.cfg_chk(func_call, self.req_rep_cfg["master"]))
def test_no_readonly(self): """Function: test_no_readonly Description: Test with no read_only configuration setting. Arguments: """ func_call = fetch_slv_rep_cfg2 with gen_libs.no_std_out(): self.assertTrue(mysql_clone.cfg_chk(func_call, self.req_rep_cfg["slave"]))
def test_other_error(self): """Function: test_other_error Description: Test with other error then read-only. Arguments: """ func_call = fetch_slv_rep_cfg3 with gen_libs.no_std_out(): self.assertFalse(mysql_clone.cfg_chk(func_call, self.req_rep_cfg["slave"]))