nixosTests.moodle: migrate to runTest

Part of #386873
This commit is contained in:
Piotr Kwiecinski 2025-04-04 20:49:57 +02:00
parent f8c4e5e70b
commit 92d438cec9
No known key found for this signature in database
GPG key ID: EC0DE1CB9D5258B4
2 changed files with 22 additions and 24 deletions

View file

@ -795,7 +795,7 @@ in
defaults.services.mongodb.package = config.node.pkgs.mongodb-ce; defaults.services.mongodb.package = config.node.pkgs.mongodb-ce;
} }
); );
moodle = handleTest ./moodle.nix { }; moodle = runTest ./moodle.nix;
moonraker = handleTest ./moonraker.nix { }; moonraker = handleTest ./moonraker.nix { };
mopidy = handleTest ./mopidy.nix { }; mopidy = handleTest ./mopidy.nix { };
morph-browser = runTest ./morph-browser.nix; morph-browser = runTest ./morph-browser.nix;

View file

@ -1,6 +1,5 @@
import ./make-test-python.nix ( { lib, ... }:
{ pkgs, lib, ... }: {
{
name = "moodle"; name = "moodle";
meta.maintainers = [ lib.maintainers.aanderse ]; meta.maintainers = [ lib.maintainers.aanderse ];
@ -22,5 +21,4 @@ import ./make-test-python.nix (
machine.wait_for_unit("phpfpm-moodle.service", timeout=1800) machine.wait_for_unit("phpfpm-moodle.service", timeout=1800)
machine.wait_until_succeeds("curl http://localhost/ | grep 'You are not logged in'") machine.wait_until_succeeds("curl http://localhost/ | grep 'You are not logged in'")
''; '';
} }
)