def test_all_nodes_that_receive_with_no_deploys_to(self): expected = ['fake_hostname3', 'fake_hostname4', 'fake_hostname5'] fake_service = 'fake_service3' fake_service_configuration = self.fake_service_configuration actual = service_configuration_lib.all_nodes_that_receive( fake_service, fake_service_configuration) T.assert_equal(expected, actual)
def test_all_nodes_that_receive_is_sorted(self): expected = ['fake_hostname1', 'fake_hostname2', 'fake_hostname3'] fake_service = 'fake_service1' fake_service_configuration = self.fake_service_configuration actual = service_configuration_lib.all_nodes_that_receive( fake_service, fake_service_configuration) T.assert_equal(expected, actual)
def test_all_nodes_that_receive_removes_duplicates(self): expected = [ 'fake_deployed_hostname1', 'fake_deployed_hostname2', 'fake_hostname2', 'fake_hostname3', 'fake_hostname4' ] fake_service = 'fake_service2' fake_service_configuration = self.fake_service_configuration actual = service_configuration_lib.all_nodes_that_receive( fake_service, fake_service_configuration) T.assert_equal(expected, actual)