Example #1
0
    def test_inbound_deps_should_return_needing_service(self):
        self.bar_service.needed_by = ['service://foobar42/bazservice']

        self.assertEqual(
            inbound_deps_on_same_host(self.bar_service, self.components), ['service://foobar42/bazservice'])
Example #2
0
    def test_should_compute_inbound_deps_recursively(self):
        self.ack_service.needed_by = ['service://foobar42/bazservice']
        self.baz_service.needed_by = ['service://foobar42/barservice']

        self.assertEqual(inbound_deps_on_same_host(self.ack_service, self.components), [
                         'service://foobar42/bazservice', 'service://foobar42/barservice'])
Example #3
0
    def test_inbound_deps_should_return_empty_list_when_service_is_not_needed(self):

        self.assertEqual(inbound_deps_on_same_host(
            self.bar_service, self.components), [])