forked from clan/clan-core
30 lines
673 B
Nix
30 lines
673 B
Nix
(import ../lib/container-test.nix) (
|
|
{ pkgs, ... }:
|
|
{
|
|
name = "secrets";
|
|
|
|
nodes.machine =
|
|
{ self, ... }:
|
|
{
|
|
imports = [
|
|
self.clanModules.deltachat
|
|
self.nixosModules.clanCore
|
|
{
|
|
clan.core.machineName = "machine";
|
|
clan.core.clanDir = ./.;
|
|
}
|
|
];
|
|
};
|
|
testScript = ''
|
|
start_all()
|
|
machine.wait_for_unit("maddy")
|
|
# imap
|
|
machine.succeed("${pkgs.netcat}/bin/nc -z -v ::1 143")
|
|
# smtp submission
|
|
machine.succeed("${pkgs.netcat}/bin/nc -z -v ::1 587")
|
|
# smtp
|
|
machine.succeed("${pkgs.netcat}/bin/nc -z -v ::1 25")
|
|
'';
|
|
}
|
|
)
|