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
41
nixos/tests/pgmanage.nix
Normal file
41
nixos/tests/pgmanage.nix
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
import ./make-test-python.nix ({ pkgs, ... } :
|
||||
let
|
||||
role = "test";
|
||||
password = "secret";
|
||||
conn = "local";
|
||||
in
|
||||
{
|
||||
name = "pgmanage";
|
||||
meta = with pkgs.lib.maintainers; {
|
||||
maintainers = [ basvandijk ];
|
||||
};
|
||||
nodes = {
|
||||
one = { config, pkgs, ... }: {
|
||||
services = {
|
||||
postgresql = {
|
||||
enable = true;
|
||||
initialScript = pkgs.writeText "pg-init-script" ''
|
||||
CREATE ROLE ${role} SUPERUSER LOGIN PASSWORD '${password}';
|
||||
'';
|
||||
};
|
||||
pgmanage = {
|
||||
enable = true;
|
||||
connections = {
|
||||
${conn} = "hostaddr=127.0.0.1 port=${toString config.services.postgresql.port} dbname=postgres";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
testScript = ''
|
||||
start_all()
|
||||
one.wait_for_unit("default.target")
|
||||
one.require_unit_state("pgmanage.service", "active")
|
||||
|
||||
# Test if we can log in.
|
||||
one.wait_until_succeeds(
|
||||
"curl 'http://localhost:8080/pgmanage/auth' --data 'action=login&connname=${conn}&username=${role}&password=${password}' --fail"
|
||||
)
|
||||
'';
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue