mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
unit tests: add testing for dns account password change
This commit is contained in:
parent
81eb7985e6
commit
f5ea6f4b4c
@ -29,6 +29,7 @@ from samba.upgradehelpers import (get_paths, get_ldbs,
|
|||||||
find_provision_key_parameters, identic_rename,
|
find_provision_key_parameters, identic_rename,
|
||||||
updateOEMInfo, getOEMInfo, update_gpo,
|
updateOEMInfo, getOEMInfo, update_gpo,
|
||||||
delta_update_basesamdb,
|
delta_update_basesamdb,
|
||||||
|
update_dns_account_password,
|
||||||
search_constructed_attrs_stored,
|
search_constructed_attrs_stored,
|
||||||
increment_calculated_keyversion_number)
|
increment_calculated_keyversion_number)
|
||||||
from samba.tests import env_loadparm, TestCaseInTempDir
|
from samba.tests import env_loadparm, TestCaseInTempDir
|
||||||
@ -157,6 +158,9 @@ class UpgradeProvisionWithLdbTestCase(TestCaseInTempDir):
|
|||||||
oem = getOEMInfo(self.ldbs.sam, basedn)
|
oem = getOEMInfo(self.ldbs.sam, basedn)
|
||||||
self.assertNotEquals(oem, "")
|
self.assertNotEquals(oem, "")
|
||||||
|
|
||||||
|
def test_update_dns_account(self):
|
||||||
|
update_dns_account_password(self.ldbs.sam, self.ldbs.secrets, self.names)
|
||||||
|
|
||||||
def test_updateOEMInfo(self):
|
def test_updateOEMInfo(self):
|
||||||
realm = self.lp.get("realm")
|
realm = self.lp.get("realm")
|
||||||
basedn = "DC=%s" % realm.replace(".", ", DC=")
|
basedn = "DC=%s" % realm.replace(".", ", DC=")
|
||||||
|
Loading…
Reference in New Issue
Block a user