1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 11:40:45 +00:00
nixpkgs/nixos/tests/workout-tracker.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
652 B
Nix
Raw Normal View History

2024-03-16 08:56:22 +00:00
import ./make-test-python.nix (
{ lib, pkgs, ... }:
{
name = "workout-tracker";
meta.maintainers = with lib.maintainers; [ bhankas ];
nodes.machine =
{ config, ... }:
{
virtualisation.memorySize = 2048;
services.workout-tracker.enable = true;
};
testScript = ''
start_all()
machine.wait_for_unit("workout-tracker.service")
# wait for workout-tracker to fully come up
with subtest("workout-tracker service starts"):
machine.wait_until_succeeds(
"curl -sSfL http://localhost:8080/ > /dev/null",
timeout=30
)
'';
}
)