1import ./make-test-python.nix ({ pkgs, lib, ...} : {
2 name = "envoy";
3 meta = with pkgs.lib.maintainers; {
4 maintainers = [ cameronnemo ];
5 };
6
7 nodes.machine = { pkgs, ... }: {
8 services.envoy.enable = true;
9 services.envoy.settings = {
10 admin = {
11 access_log_path = "/dev/null";
12 address = {
13 socket_address = {
14 protocol = "TCP";
15 address = "127.0.0.1";
16 port_value = 9901;
17 };
18 };
19 };
20 static_resources = {
21 listeners = [];
22 clusters = [];
23 };
24 };
25 };
26
27 testScript = ''
28 machine.start()
29 machine.wait_for_unit("envoy.service")
30 machine.wait_for_open_port(9901)
31 machine.wait_until_succeeds("curl -fsS localhost:9901/ready")
32 '';
33})