nixosTests.openldap: port test to python

gstqt5
Jacek Galowicz 2019-12-02 21:41:58 +01:00
parent 15f105d41f
commit 5d91b29e0d
1 changed files with 6 additions and 4 deletions

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"',
)
'';
}