mirror of
https://github.com/samba-team/samba.git
synced 2025-02-04 17:47:26 +03:00
samba-tool tests: rename 'contact create' to 'contact add'
Signed-off-by: Jule Anger <ja@sernet.de> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz> Autobuild-User(master): Douglas Bagnall <dbagnall@samba.org> Autobuild-Date(master): Thu Oct 1 02:44:09 UTC 2020 on sn-devel-184
This commit is contained in:
parent
3b7cf5f5dd
commit
ab0e5e3c43
@ -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"])
|
||||
|
Loading…
x
Reference in New Issue
Block a user