nixosTests.angie-api: migrate to runTest

Part Of #386873
This commit is contained in:
Martin Weinelt 2025-03-13 23:24:10 +01:00
parent 769a073a37
commit e045203e0e
No known key found for this signature in database
GPG key ID: 87C1E9888F856759
2 changed files with 144 additions and 146 deletions

View file

@ -166,7 +166,7 @@ in {
amazon-init-shell = runTest ./amazon-init-shell.nix; amazon-init-shell = runTest ./amazon-init-shell.nix;
amazon-ssm-agent = runTest ./amazon-ssm-agent.nix; amazon-ssm-agent = runTest ./amazon-ssm-agent.nix;
amd-sev = runTest ./amd-sev.nix; amd-sev = runTest ./amd-sev.nix;
angie-api = handleTest ./angie-api.nix {}; angie-api = runTest ./angie-api.nix;
anki-sync-server = handleTest ./anki-sync-server.nix {}; anki-sync-server = handleTest ./anki-sync-server.nix {};
anuko-time-tracker = handleTest ./anuko-time-tracker.nix {}; anuko-time-tracker = handleTest ./anuko-time-tracker.nix {};
apcupsd = handleTest ./apcupsd.nix {}; apcupsd = handleTest ./apcupsd.nix {};

View file

@ -1,14 +1,13 @@
import ./make-test-python.nix ( { lib, pkgs, ... }:
{ lib, pkgs, ... }: let
let
hosts = '' hosts = ''
192.168.2.101 example.com 192.168.2.101 example.com
192.168.2.101 api.example.com 192.168.2.101 api.example.com
192.168.2.101 backend.example.com 192.168.2.101 backend.example.com
''; '';
in in
{ {
name = "angie-api"; name = "angie-api";
meta.maintainers = with pkgs.lib.maintainers; [ izorkin ]; meta.maintainers = with pkgs.lib.maintainers; [ izorkin ];
@ -166,5 +165,4 @@ import ./make-test-python.nix (
server.shutdown() server.shutdown()
client.shutdown() client.shutdown()
''; '';
} }
)