Exemple #1
0
 def test_agent_with_options(self):
     command = "flume-ng agent --name a1 --conf-file path/to/file --conf path/to/dir " \
               "--plugins-path path/to/plugins1,path/to/plugins2,path/to/plugins3 -X4=test"
     flume = Flume.agent(agent="a1",
                         conf_file="path/to/file",
                         executor=mock_executor(expected_command=command))
     flume.with_jvm_X_option(value="test", name=4).load_configs_from_dir("path/to/dir")
     flume.load_plugins_from_dirs(pathes=["path/to/plugins1,path/to/plugins2", "path/to/plugins3"])
     flume.run()
Exemple #2
0
 def test_agent_with_options(self):
     command = "flume-ng agent --name a1 --conf-file path/to/file --conf path/to/dir " \
               "--plugins-path path/to/plugins1,path/to/plugins2,path/to/plugins3 -X4=test"
     flume = Flume.agent(agent="a1",
                         conf_file="path/to/file",
                         executor=mock_executor(expected_command=command))
     flume.with_jvm_X_option(value="test",
                             name=4).load_configs_from_dir("path/to/dir")
     flume.load_plugins_from_dirs(
         pathes=["path/to/plugins1,path/to/plugins2", "path/to/plugins3"])
     flume.run()
Exemple #3
0
 def test_agent_failed(self):
     command = "flume-ng agent --name a1"
     flume = Flume.agent(agent="a1",
                         executor=mock_executor(expected_command=command))
     flume.run()
Exemple #4
0
 def test_agent(self):
     command = "flume-ng agent --name a1 --conf-file path/to/file"
     flume = Flume.agent(agent="a1",
                         conf_file="path/to/file",
                         executor=mock_executor(expected_command=command))
     flume.run()
Exemple #5
0
 def run(self):
     Flume.agent(agent="a1",
                 conf_file=os.path.join(os.path.dirname(__file__),
                                        'resources/flume/flume.conf')).run()
Exemple #6
0
 def test_agent_failed(self):
     command = "flume-ng agent --name a1"
     flume = Flume.agent(agent="a1",
                         executor=mock_executor(expected_command=command))
     flume.run()
Exemple #7
0
 def test_agent(self):
     command = "flume-ng agent --name a1 --conf-file path/to/file"
     flume = Flume.agent(agent="a1",
                         conf_file="path/to/file",
                         executor=mock_executor(expected_command=command))
     flume.run()