From ab0e5e3c43165747d436269d5706e3736589c395 Mon Sep 17 00:00:00 2001 From: Jule Anger Date: Thu, 27 Aug 2020 09:20:11 +0200 Subject: samba-tool tests: rename 'contact create' to 'contact add' Signed-off-by: Jule Anger Reviewed-by: Douglas Bagnall Reviewed-by: Gary Lockyer Autobuild-User(master): Douglas Bagnall Autobuild-Date(master): Thu Oct 1 02:44:09 UTC 2020 on sn-devel-184 --- python/samba/tests/samba_tool/contact.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'python') diff --git a/python/samba/tests/samba_tool/contact.py b/python/samba/tests/samba_tool/contact.py index d8e0b873674..65f1a6857c9 100644 --- a/python/samba/tests/samba_tool/contact.py +++ b/python/samba/tests/samba_tool/contact.py @@ -70,7 +70,7 @@ class ContactCmdTestCase(SambaToolCmdTest): self.assertCmdSuccess(result, out, err) self.assertNotIn( "ERROR", err, "There shouldn't be any error message") - self.assertIn("Contact '%s' created successfully" % + self.assertIn("Contact '%s' added successfully" % contact["expectedname"], out) found = self._find_contact(contact["expectedname"]) @@ -101,7 +101,7 @@ class ContactCmdTestCase(SambaToolCmdTest): self.assertCmdFail(result, "Succeeded to create existing contact") self.assertIn("already exists", err) - # try to delete all the contacts we just created + # try to delete all the contacts we just added for contact in self.contacts: (result, out, err) = self.runsubcmd("contact", "delete", "%s" % contact["expectedname"]) @@ -123,7 +123,7 @@ class ContactCmdTestCase(SambaToolCmdTest): self.assertCmdSuccess(result, out, err) self.assertEqual(err, "", "There shouldn't be any error message") - self.assertIn("Contact '%s' created successfully" % + self.assertIn("Contact '%s' added successfully" % contact["expectedname"], out) found = self._find_contact(contact["expectedname"]) @@ -133,7 +133,7 @@ class ContactCmdTestCase(SambaToolCmdTest): self.assertEqual("%s" % found.get("description"), contact["description"]) - # try to delete all the contacts we just created, by DN + # try to delete all the contacts we just added, by DN for contact in self.contacts: expecteddn = ldb.Dn(self.samdb, "CN=%s,OU=%s,%s" % @@ -161,7 +161,7 @@ class ContactCmdTestCase(SambaToolCmdTest): self.assertCmdSuccess(result, out, err) self.assertEqual(err, "", "There shouldn't be any error message") - self.assertIn("Contact '%s' created successfully" % + self.assertIn("Contact '%s' added successfully" % contact["expectedname"], out) found = self._find_contact(contact["expectedname"]) -- cgit v1.2.1