uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
63
nixos/tests/vikunja.nix
Normal file
63
nixos/tests/vikunja.nix
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
import ./make-test-python.nix ({ pkgs, lib, ... }: {
|
||||
name = "vikunja";
|
||||
|
||||
meta.maintainers = with lib.maintainers; [ leona ];
|
||||
|
||||
nodes = {
|
||||
vikunjaSqlite = { ... }: {
|
||||
services.vikunja = {
|
||||
enable = true;
|
||||
database = {
|
||||
type = "sqlite";
|
||||
};
|
||||
frontendScheme = "http";
|
||||
frontendHostname = "localhost";
|
||||
};
|
||||
services.nginx.enable = true;
|
||||
};
|
||||
vikunjaPostgresql = { pkgs, ... }: {
|
||||
services.vikunja = {
|
||||
enable = true;
|
||||
database = {
|
||||
type = "postgres";
|
||||
user = "vikunja-api";
|
||||
database = "vikunja-api";
|
||||
host = "/run/postgresql";
|
||||
};
|
||||
frontendScheme = "http";
|
||||
frontendHostname = "localhost";
|
||||
};
|
||||
services.postgresql = {
|
||||
enable = true;
|
||||
ensureDatabases = [ "vikunja-api" ];
|
||||
ensureUsers = [
|
||||
{ name = "vikunja-api";
|
||||
ensurePermissions = { "DATABASE \"vikunja-api\"" = "ALL PRIVILEGES"; };
|
||||
}
|
||||
];
|
||||
};
|
||||
services.nginx.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
testScript =
|
||||
''
|
||||
vikunjaSqlite.wait_for_unit("vikunja-api.service")
|
||||
vikunjaSqlite.wait_for_open_port(3456)
|
||||
vikunjaSqlite.succeed("curl --fail http://localhost:3456/api/v1/info")
|
||||
|
||||
vikunjaSqlite.wait_for_unit("nginx.service")
|
||||
vikunjaSqlite.wait_for_open_port(80)
|
||||
vikunjaSqlite.succeed("curl --fail http://localhost/api/v1/info")
|
||||
vikunjaSqlite.succeed("curl --fail http://localhost")
|
||||
|
||||
vikunjaPostgresql.wait_for_unit("vikunja-api.service")
|
||||
vikunjaPostgresql.wait_for_open_port(3456)
|
||||
vikunjaPostgresql.succeed("curl --fail http://localhost:3456/api/v1/info")
|
||||
|
||||
vikunjaPostgresql.wait_for_unit("nginx.service")
|
||||
vikunjaPostgresql.wait_for_open_port(80)
|
||||
vikunjaPostgresql.succeed("curl --fail http://localhost/api/v1/info")
|
||||
vikunjaPostgresql.succeed("curl --fail http://localhost")
|
||||
'';
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue