mirror of
https://github.com/samba-team/samba.git
synced 2025-07-25 00:59:11 +03:00
r26536: More tests for provisioning code.
(This used to be commit 43c8bfeedf
)
This commit is contained in:
committed by
Stefan Metzmacher
parent
595ec370da
commit
86f91db7d5
@ -17,13 +17,22 @@
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
|
||||
import unittest
|
||||
import samba.provision
|
||||
import os
|
||||
from samba.provision import setup_secretsdb
|
||||
import samba.tests
|
||||
from ldb import Dn
|
||||
|
||||
class ProvisionTestCase(unittest.TestCase):
|
||||
setup_dir = "setup"
|
||||
|
||||
class ProvisionTestCase(samba.tests.TestCaseInTempDir):
|
||||
def test_setup_secretsdb(self):
|
||||
raise NotImplementedError(self.test_setup_secretsdb)
|
||||
ldb = setup_secretsdb(os.path.join(self.tempdir, "secrets.ldb"),
|
||||
setup_dir, None, None, None)
|
||||
self.assertEquals("LSA Secrets",
|
||||
ldb.searchone(Dn(ldb, "CN=LSA Secrets"), "CN"))
|
||||
|
||||
|
||||
class Disabled:
|
||||
def test_setup_templatesdb(self):
|
||||
raise NotImplementedError(self.test_setup_templatesdb)
|
||||
|
||||
|
Reference in New Issue
Block a user