···
1
-
import ./make-test-python.nix (
5
-
meta = with pkgs.lib.maintainers; {
6
-
maintainers = [ cameronnemo ];
1
+
{ envoyPackage, lib, ... }:
3
+
name = envoyPackage.pname;
12
-
services.envoy.enable = true;
13
-
services.envoy.settings = {
15
-
access_log_path = "/dev/null";
19
-
address = "127.0.0.1";
24
-
static_resources = {
5
+
meta = with lib.maintainers; {
6
+
maintainers = [ cameronnemo ];
10
+
services.envoy.enable = true;
11
+
services.envoy.package = envoyPackage;
12
+
services.envoy.settings = {
14
+
access_log_path = "/dev/null";
18
+
address = "127.0.0.1";
30
-
withoutConfigValidation.configuration =
34
-
requireValidConfig = false;
35
-
settings.admin.access_log_path = lib.mkForce "/var/log/envoy/access.log";
23
+
static_resources = {
29
+
withoutConfigValidation.configuration =
33
+
requireValidConfig = false;
34
+
settings.admin.access_log_path = lib.mkForce "/var/log/envoy/access.log";
44
-
specialisations = "${nodes.machine.system.build.toplevel}/specialisation";
43
+
specialisations = "${nodes.machine.system.build.toplevel}/specialisation";
49
-
with subtest("envoy.service starts and responds with ready"):
50
-
machine.wait_for_unit("envoy.service")
51
-
machine.wait_for_open_port(80)
52
-
machine.wait_until_succeeds("curl -fsS localhost:80/ready")
48
+
with subtest("envoy.service starts and responds with ready"):
49
+
machine.wait_for_unit("envoy.service")
50
+
machine.wait_for_open_port(80)
51
+
machine.wait_until_succeeds("curl -fsS localhost:80/ready")
54
-
with subtest("envoy.service works with config path not available at eval time"):
55
-
machine.succeed('${specialisations}/withoutConfigValidation/bin/switch-to-configuration test')
56
-
machine.wait_for_unit("envoy.service")
57
-
machine.wait_for_open_port(80)
58
-
machine.wait_until_succeeds("curl -fsS localhost:80/ready")
59
-
machine.succeed('test -f /var/log/envoy/access.log')
53
+
with subtest("envoy.service works with config path not available at eval time"):
54
+
machine.succeed('${specialisations}/withoutConfigValidation/bin/switch-to-configuration test')
55
+
machine.wait_for_unit("envoy.service")
56
+
machine.wait_for_open_port(80)
57
+
machine.wait_until_succeeds("curl -fsS localhost:80/ready")
58
+
machine.succeed('test -f /var/log/envoy/access.log')