Exemplo n.º 1
0
def test_populate_process_options():
    app = TestApp(ud={"web_thread_count": 3, "handler_thread_count": 2})
    option_manager = TestOptionManager(app)
    populate_process_options(option_manager)
    options = option_manager.options
    # Test correct sections configured
    for name in ["web1", "web2", "handler0", "handler1", "manager0"]:
        assert "server:%s" % name in options
    for name in ["web3", "handler2"]:
        assert "server:%s" % name not in options
Exemplo n.º 2
0
def test_populate_process_options():
    app = TestApp(ud={"web_thread_count": 3, "handler_thread_count": 2})
    option_manager = TestOptionManager(app)
    populate_process_options(option_manager)
    options = option_manager.options
    # Test correct sections configured
    for name in ["web1", "web2", "handler0", "handler1", "manager0"]:
        assert "server:%s" % name in options
    for name in ["web3", "handler2"]:
        assert "server:%s" % name not in options
Exemplo n.º 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)
Exemplo n.º 4
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)
Exemplo n.º 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)