From cfa65c56a6e530625acc55cd2b780d228dc4f0e1 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Thu, 21 Jan 2021 23:53:37 +0100 Subject: [PATCH] Test examples/traefik --- tests/arion-test/default.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tests/arion-test/default.nix b/tests/arion-test/default.nix index ad4eebc..5aeb65f 100644 --- a/tests/arion-test/default.nix +++ b/tests/arion-test/default.nix @@ -33,6 +33,7 @@ in (preEval [ ../../examples/minimal/arion-compose.nix ]).config.out.dockerComposeYaml (preEval [ ../../examples/full-nixos/arion-compose.nix ]).config.out.dockerComposeYaml (preEval [ ../../examples/nixos-unit/arion-compose.nix ]).config.out.dockerComposeYaml + (preEval [ ../../examples/traefik/arion-compose.nix ]).config.out.dockerComposeYaml pkgs.stdenv ]; @@ -92,5 +93,19 @@ in "cd work && NIX_PATH=nixpkgs='${pkgs.path}' arion down" ) machine.wait_until_fails("curl localhost:8000") + + # Tests + # - examples/traefik + # - labels + with subtest("traefik"): + machine.succeed( + "rm -rf work && cp -frT ${../../examples/traefik} work && cd work && NIX_PATH=nixpkgs='${pkgs.path}' arion up -d" + ) + machine.wait_until_succeeds("curl nix-docs.localhost") + machine.succeed( + "cd work && NIX_PATH=nixpkgs='${pkgs.path}' arion down" + ) + machine.wait_until_fails("curl nix-docs.localhost") + ''; }