Files
infra/tests/tests/think-gtcm.nix
kurogeek e605511718 mob next [ci-skip] [ci skip] [skip ci]
lastFile:tests/tests/think-gtcm.nix
2025-11-20 16:40:36 +07:00

24 lines
621 B
Nix

(import ../lib.nix) {
name = "think-gtcm";
nodes = {
# `self` here is set by using specialArgs in `lib.nix`
node1 =
{ self, pkgs, ... }:
{
nixpkgs.overlays = [ self.overlays.packagesOverlay ];
imports = [ self.nixosModules.think-gtcm ];
services.think-greaterchiangmai = {
enable = true;
};
};
};
# This is the test code that will check if our service is running correctly:
testScript = ''
start_all()
node1.wait_for_unit("think-greaterchiangmai")
node1.wait_for_open_port(80)
output = node1.succeed("curl localhost")
'';
}