Esempio n. 1
0
    def test_simple(self):
        core = self.get_core()
        core.load_configs(['config/phantom.conf'])
        core.load_plugins()
        core.plugins_configure()
        core.plugins_prepare_test()

        foo = PhantomConfig(core)
        foo.read_config()
        foo.compose_config()
Esempio n. 2
0
 def test_simple(self):
     core = self.get_core()
     core.load_configs(['config/phantom.conf'])
     core.load_plugins()
     core.plugins_configure()
     core.plugins_prepare_test()
     
     foo = PhantomConfig(core)
     foo.read_config()
     config = foo.compose_config()
     conf_str = open(config).read()
     logging.info(conf_str)
     self.assertEquals(conf_str.count("io_benchmark_t"), 1)
Esempio n. 3
0
    def test_simple(self):
        core = self.get_core()
        core.load_configs(['config/phantom.conf'])
        core.load_plugins()
        core.plugins_configure()
        core.plugins_prepare_test()

        foo = PhantomConfig(core)
        foo.read_config()
        config = foo.compose_config()
        conf_str = open(config).read()
        logging.info(conf_str)
        self.assertEquals(conf_str.count("io_benchmark_t"), 1)
Esempio n. 4
0
 def test_double(self):
     core = self.get_core()
     core.load_configs(['config/phantom_double.conf'])
     core.load_plugins()
     core.plugins_configure()
     core.plugins_prepare_test()
     
     foo = PhantomConfig(core)
     foo.read_config()
     config = foo.compose_config()
     info=foo.get_info()
     logging.info(info.steps)
     self.assertEquals(len(info.steps), 450)
     
     conf_str = open(config).read()
     logging.info(conf_str)
     self.assertEquals(conf_str.count("io_benchmark_t"), 3)
     self.assertEquals(conf_str.count("benchmark_io "), 2)
     self.assertEquals(conf_str.count("benchmark_io1 "), 2)
     self.assertEquals(conf_str.count("benchmark_io2 "), 2)
Esempio n. 5
0
    def test_simple(self):
        core = self.get_core()
        core.load_configs(['config/phantom.conf'])
        core.load_plugins()
        core.plugins_configure()
        core.plugins_prepare_test()

        foo = PhantomConfig(core)
        foo.read_config()
        foo.compose_config()
Esempio n. 6
0
    def test_double(self):
        core = self.get_core()
        core.load_configs(['config/phantom_double.conf'])
        core.load_plugins()
        core.plugins_configure()
        core.plugins_prepare_test()

        foo = PhantomConfig(core)
        foo.read_config()
        config = foo.compose_config()
        info = foo.get_info()
        logging.info(info.steps)
        self.assertEquals(len(info.steps), 450)

        conf_str = open(config).read()
        logging.info(conf_str)
        self.assertEquals(conf_str.count("io_benchmark_t"), 3)
        self.assertEquals(conf_str.count("benchmark_io "), 2)
        self.assertEquals(conf_str.count("benchmark_io1 "), 2)
        self.assertEquals(conf_str.count("benchmark_io2 "), 2)