3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/nixos/tests/shiori.nix

18 lines
448 B
Nix
Raw Normal View History

2019-09-22 16:54:16 +01:00
import ./make-test.nix ({ lib, ...}:
{
name = "shiori";
meta.maintainers = with lib.maintainers; [ minijackson ];
machine =
{ ... }:
{ services.shiori.enable = true; };
testScript = ''
$machine->waitForUnit('shiori.service');
$machine->waitForOpenPort('8080');
$machine->succeed("curl --fail http://localhost:8080/");
$machine->succeed("curl --fail --location http://localhost:8080/ | grep -qi shiori");
'';
})