mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01:00
5356420466
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \ -e 's!with lib.maintainers; \[ *\];![ ];!' \ -e 's!with maintainers; \[ *\];![ ];!'
31 lines
667 B
Nix
31 lines
667 B
Nix
import ./make-test-python.nix ({ pkgs, lib, ... }:
|
|
let
|
|
certs = import ./common/acme/server/snakeoil-certs.nix;
|
|
domain = certs.domain;
|
|
|
|
user = "testuser";
|
|
pass = "hunter2";
|
|
in
|
|
{
|
|
name = "soju";
|
|
meta.maintainers = [ ];
|
|
|
|
nodes.machine = { ... }: {
|
|
services.soju = {
|
|
enable = true;
|
|
adminSocket.enable = true;
|
|
hostName = domain;
|
|
tlsCertificate = certs.${domain}.cert;
|
|
tlsCertificateKey = certs.${domain}.key;
|
|
};
|
|
};
|
|
|
|
testScript = ''
|
|
start_all()
|
|
|
|
machine.wait_for_unit("soju")
|
|
machine.wait_for_file("/run/soju/admin")
|
|
|
|
machine.succeed("sojuctl user create -username ${user} -password ${pass}")
|
|
'';
|
|
})
|