def test_nothing_explictly_requested(self):
        """Implicitly start services based on the config.*.launch property.
        """
        services = sorted(get_services_to_run([]))
        expected = [SERVICES['librarian']]

        # Mailman may or may not be asked to run.
        if config.mailman.launch:
            expected.append(SERVICES['mailman'])

        # Likewise, the GoogleWebService may or may not be asked to
        # run.
        if config.google_test_service.launch:
            expected.append(SERVICES['google-webservice'])

        # RabbitMQ may or may not be asked to run.
        if config.rabbitmq.launch:
            expected.append(SERVICES['rabbitmq'])

        # TxLongPoll may or may not be asked to run.
        if config.txlongpoll.launch:
            expected.append(SERVICES['txlongpoll'])

        expected = sorted(expected)
        self.assertEqual(expected, services)
    def test_nothing_explictly_requested(self):
        """Implicitly start services based on the config.*.launch property.
        """
        services = sorted(get_services_to_run([]))
        expected = [SERVICES['librarian']]

        # Mailman may or may not be asked to run.
        if config.mailman.launch:
            expected.append(SERVICES['mailman'])

        # Likewise, the GoogleWebService may or may not be asked to
        # run.
        if config.google_test_service.launch:
            expected.append(SERVICES['google-webservice'])

        # RabbitMQ may or may not be asked to run.
        if config.rabbitmq.launch:
            expected.append(SERVICES['rabbitmq'])

        # TxLongPoll may or may not be asked to run.
        if config.txlongpoll.launch:
            expected.append(SERVICES['txlongpoll'])

        expected = sorted(expected)
        self.assertEqual(expected, services)
Example #3
0
    def test_nothing_explicitly_requested(self):
        """Implicitly start services based on the config.*.launch property.
        """
        services = sorted(get_services_to_run([]))
        expected = [SERVICES['librarian']]

        # Mailman may or may not be asked to run.
        if config.mailman.launch:
            expected.append(SERVICES['mailman'])

        # Likewise, the search test services may or may not be asked to
        # run.
        if config.bing_test_service.launch:
            expected.append(SERVICES['bing-webservice'])

        # RabbitMQ may or may not be asked to run.
        if config.rabbitmq.launch:
            expected.append(SERVICES['rabbitmq'])

        expected = sorted(expected)
        self.assertEqual(expected, services)
Example #4
0
 def test_explicit_request_overrides(self):
     """Only start those services which are explicitly requested,
     ignoring the configuration properties.
     """
     services = get_services_to_run(['sftp'])
     self.assertEqual([SERVICES['sftp']], services)
 def test_explicit_request_overrides(self):
     """Only start those services which are explictly requested, ignoring
     the configuration properties.
     """
     services = get_services_to_run(['sftp'])
     self.assertEqual([SERVICES['sftp']], services)