示例#1
0
    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")
示例#2
0
 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)