mirror of
https://github.com/lxstinthesky/matrix.git
synced 2025-11-02 00:42:48 +00:00
25 lines
489 B
Nix
25 lines
489 B
Nix
{ pkgs ? import <nixpkgs> {} }:
|
|
|
|
pkgs.nixosTest {
|
|
name = "matrix-login-test";
|
|
|
|
nodes = {
|
|
machine = { config, pkgs, ... }: {
|
|
imports = [
|
|
../configuration.nix
|
|
];
|
|
|
|
# Test configuration
|
|
virtualisation.memorySize = 2048;
|
|
};
|
|
};
|
|
|
|
testScript = ''
|
|
start_all()
|
|
machine.wait_for_unit("multi-user.target")
|
|
|
|
with subtest("SSH service test"):
|
|
machine.wait_for_unit("sshd.service")
|
|
machine.wait_for_open_port(22)
|
|
'';
|
|
} |