nixosTests.openldap: port test to python

This commit is contained in:
Jacek Galowicz 2019-12-02 21:41:58 +01:00
parent 15f105d41f
commit 5d91b29e0d

View File

@ -1,4 +1,4 @@
import ./make-test.nix {
import ./make-test-python.nix {
name = "openldap";
machine = { pkgs, ... }: {
@ -24,8 +24,10 @@ import ./make-test.nix {
};
testScript = ''
$machine->waitForUnit('openldap.service');
$machine->succeed('systemctl status openldap.service');
$machine->succeed('ldapsearch -LLL -D "cn=root,dc=example" -w notapassword -b "dc=example"');
machine.wait_for_unit("openldap.service")
machine.succeed(
"systemctl status openldap.service",
'ldapsearch -LLL -D "cn=root,dc=example" -w notapassword -b "dc=example"',
)
'';
}