diff options
author | Douglas Bagnall <douglas.bagnall@catalyst.net.nz> | 2017-10-25 12:13:57 +1300 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2017-10-26 01:32:14 +0200 |
commit | 7cf3bbcc5ce9f22e0140fab051b1fe850cf0161d (patch) | |
tree | b8d1d8a89610c72a9983a5f40740ba16587ab58a /source4/dsdb | |
parent | 625e65d9f354059d0b44ca7df329d862d93378c4 (diff) | |
download | samba-7cf3bbcc5ce9f22e0140fab051b1fe850cf0161d.tar.gz |
linked attribute tests: ensure duplicate deletes fail
We can't remove the same thing twice in the same message.
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/dsdb')
-rw-r--r-- | source4/dsdb/tests/python/linked_attributes.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/dsdb/tests/python/linked_attributes.py b/source4/dsdb/tests/python/linked_attributes.py index 705c9d5c0db..f0c260564bf 100644 --- a/source4/dsdb/tests/python/linked_attributes.py +++ b/source4/dsdb/tests/python/linked_attributes.py @@ -306,6 +306,11 @@ class LATests(samba.tests.TestCase): self.remove_linked_attribute(g1, []) self.assert_forward_links(g1, []) + # removing a duplicate link in the same message should fail + self.add_linked_attribute(g2, [u1, u2]) + self.assertRaises(ldb.LdbError, + self.remove_linked_attribute,g2, [u1, u1]) + def _test_la_links_delete_link_reveal(self): u1, u2 = self.add_objects(2, 'user', 'u_del_link_reveal') g1, g2 = self.add_objects(2, 'group', 'g_del_link_reveal') |