X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osm_ro%2Fwim%2Ftests%2Ftest_persistence.py;h=e3e6cf61498975ecd1c7f2c2be8a646e144e410f;hb=fed47b0903b8e5ee93591ef53540432d3ecce796;hp=d09a1163281b68848c3a8abb4dc73179098fbf7d;hpb=0446cd5df24c38f95cea13b995c553e9b2403f21;p=osm%2FRO.git diff --git a/osm_ro/wim/tests/test_persistence.py b/osm_ro/wim/tests/test_persistence.py index d09a1163..e3e6cf61 100644 --- a/osm_ro/wim/tests/test_persistence.py +++ b/osm_ro/wim/tests/test_persistence.py @@ -170,7 +170,7 @@ class TestWimPersistence(TestCaseWithDatabasePerTest): self.assertIsNot(wim, None) # and a array of pairs 'wan' <> 'pop' connections - pairs = chain(*(m['wan_pop_port_mappings'] for m in mappings)) + pairs = chain(*(m['pop_wan_mappings'] for m in mappings)) self.assertEqual(len(list(pairs)), 2 * eg.NUM_WIMS) def test_get_wim_port_mappings_multiple(self): @@ -198,14 +198,14 @@ class TestWimPersistence(TestCaseWithDatabasePerTest): self.assertEqual(mappings[0]['wim_id'], uuid('wim0')) self.assertEqual(mappings[0]['datacenter_id'], uuid('dc0')) - self.assertEqual(len(mappings[0]['wan_pop_port_mappings']), 3) + self.assertEqual(len(mappings[0]['pop_wan_mappings']), 3) # when we retreive the mappings for more then one wim/datacenter # the grouping should still work properly mappings = self.persist.get_wim_port_mappings( wim=['wim0', 'wim1'], datacenter=['dc0', 'dc1']) self.assertEqual(len(mappings), 4) - pairs = chain(*(m['wan_pop_port_mappings'] for m in mappings)) + pairs = chain(*(m['pop_wan_mappings'] for m in mappings)) self.assertEqual(len(list(pairs)), 6) def test_get_actions_in_group(self):