def test_01_guc_minimumvalue(self): """GUCS: MPP-8307: minimum max_connections is 10""" self.gpdbConfig.setParameterMasterOnly("max_connections","10") shell.run("gpstop -ar") # Restarts, TODO: need a utilty to restart GPDB max_connections = self.gpdbConfig.getParameterMasterOnly("max_connections") self.failUnless(max_connections=="10")
def test_02_guc_minimumvalue(self): """GUCS: MPP-8307: invalid max_connections if set less than 10, default to 200""" # cur_maxconnections = self.gpdbConfig.getParameterMasterOnly("max_connections") self.gpdbConfig.setParameterMasterOnly("max_connections","4") shell.run("gpstop -ar") # Restarts, TODO: need a utilty to restart GPDB max_connections = self.gpdbConfig.getParameterMasterOnly("max_connections") self.failUnless(max_connections=="200")