bug 1092 fixing deletion of items referenced by several projects
It is only deletes if it the last project referencing it.
Depends on this change at common: https://osm.etsi.org/gerrit/9134
Change-Id: Id167c0ae3309212b97f59d47a9f3cee7f53fd263
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
diff --git a/osm_nbi/tests/test_admin_topics.py b/osm_nbi/tests/test_admin_topics.py
index dce8710..a26d576 100755
--- a/osm_nbi/tests/test_admin_topics.py
+++ b/osm_nbi/tests/test_admin_topics.py
@@ -734,8 +734,8 @@
self.assertEqual(self.db.set_one.call_args[0][1]["_id"], cid, "Wrong CIM identifier")
self.assertEqual(self.db.set_one.call_args[1]["update_dict"], None,
"Wrong read-only projects update")
- self.assertEqual(self.db.set_one.call_args[1]["pull"], {"_admin.projects_read." + test_pid: None,
- "_admin.projects_write." + test_pid: None},
+ self.assertEqual(self.db.set_one.call_args[1]["pull_list"],
+ {"_admin.projects_read": (test_pid,), "_admin.projects_write": (test_pid,)},
"Wrong read/write projects update")
self.topic._send_msg.assert_not_called()
with self.subTest(i=2):