def test_mongoconf_configure(self): server = MongoConfigServer() server.my_hostname = 'node1.test.com' server.configure(self.env) self.assertTrue( os.path.exists(server.mongodb_config_file), "The config file for mongoconf instances does not exists")
def setUp(self): self.as_super = super(IntegratedMongoConfTestCase, self) self.as_super.setUp() params.try_interval = 4 params.times_to_try = 10 # Configuring and Installing mongo config dependencies server = MongoConfigServer() server.my_hostname = 'node1.test.com' server.configure(self.env) server.install(self.env)