mob next [ci-skip] [ci skip] [skip ci]

lastFile:tests/lib.nix
This commit is contained in:
2025-11-24 09:35:49 +07:00
parent bfeea4156b
commit 1cd2643691
11 changed files with 384 additions and 1 deletions

View File

@@ -0,0 +1,23 @@
(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("phpfpm-think-greaterchiangmai")
node1.wait_for_open_port(80)
output = node1.succeed("curl localhost")
'';
}