nixos/roundcube: port test to python
This commit is contained in:
parent
6868807c2f
commit
71824d769c
|
@ -1,4 +1,4 @@
|
||||||
import ./make-test.nix ({ pkgs, ...} : {
|
import ./make-test-python.nix ({ pkgs, ...} : {
|
||||||
name = "roundcube";
|
name = "roundcube";
|
||||||
meta = with pkgs.stdenv.lib.maintainers; {
|
meta = with pkgs.stdenv.lib.maintainers; {
|
||||||
maintainers = [ globin ];
|
maintainers = [ globin ];
|
||||||
|
@ -21,10 +21,10 @@ import ./make-test.nix ({ pkgs, ...} : {
|
||||||
};
|
};
|
||||||
|
|
||||||
testScript = ''
|
testScript = ''
|
||||||
$roundcube->start;
|
roundcube.start
|
||||||
$roundcube->waitForUnit("postgresql.service");
|
roundcube.wait_for_unit("postgresql.service")
|
||||||
$roundcube->waitForUnit("phpfpm-roundcube.service");
|
roundcube.wait_for_unit("phpfpm-roundcube.service")
|
||||||
$roundcube->waitForUnit("nginx.service");
|
roundcube.wait_for_unit("nginx.service")
|
||||||
$roundcube->succeed("curl -sSfL http://roundcube/ | grep 'Keep me logged in'");
|
roundcube.succeed("curl -sSfL http://roundcube/ | grep 'Keep me logged in'")
|
||||||
'';
|
'';
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue