Beispiel #1
0
def test_populate_dynamic_options():
    test_connection = "mysql:///dbserver/galaxy"
    test_runner = "pbs:///test1"
    ud = {"galaxy_universe_database_connection": test_connection,
          "galaxy_tool_runner_cooltool1": test_runner}
    app = TestApp(ud=ud)
    option_manager = TestOptionManager(app)
    populate_dynamic_options(option_manager)
    options = option_manager.options
    assert options["galaxy:tool_runners"]["cooltool1"] == test_runner
    assert options["app:main"]["database_connection"] == test_connection
Beispiel #2
0
    def update_galaxy_config(self):
        """
        Update Galaxy application configuration.

        Optionally set Galaxy to use multiple processes, then populate dynamic
        options (i.e., arbitrary options coming from user data), adjust system
        paths and set admin users.
        """
        if self.multiple_processes():
            populate_process_options(self.option_manager)
        populate_dynamic_options(self.option_manager)
        populate_galaxy_paths(self.option_manager)
        populate_admin_users(self.option_manager)
Beispiel #3
0
    def update_galaxy_config(self):
        """
        Update Galaxy application configuration.

        Optionally set Galaxy to use multiple processes, then populate dynamic
        options (i.e., arbitrary options coming from user data), adjust system
        paths and set admin users.
        """
        if self.multiple_processes():
            populate_process_options(self.option_manager)
        populate_dynamic_options(self.option_manager)
        populate_galaxy_paths(self.option_manager)
        populate_admin_users(self.option_manager)
Beispiel #4
0
def test_populate_dynamic_options():
    test_connection = "mysql:///dbserver/galaxy"
    test_runner = "pbs:///test1"
    ud = {
        "galaxy_universe_database_connection": test_connection,
        "galaxy_tool_runner_cooltool1": test_runner
    }
    app = TestApp(ud=ud)
    option_manager = TestOptionManager(app)
    populate_dynamic_options(option_manager)
    options = option_manager.options
    assert options["galaxy:tool_runners"]["cooltool1"] == test_runner
    assert options["app:main"]["database_connection"] == test_connection
Beispiel #5
0
 def update_galaxy_config(self):
     if self._multiple_processes():
         populate_process_options(self.option_manager)
     populate_dynamic_options(self.option_manager)
     populate_galaxy_paths(self.option_manager)
     populate_admin_users(self.option_manager)