1 import ./make-test-python.nix ({ ... }: {
2 name = "consul-template";
4 nodes.machine = { ... }: {
5 services.consul-template.instances.example.settings = {
11 destination = "/example";
20 bind_addr = "127.0.0.1";
26 machine.wait_for_unit("consul.service")
27 machine.wait_for_open_port(8500)
29 machine.wait_for_unit("consul-template-example.service")
31 machine.wait_until_succeeds('consul kv put example example')
33 machine.wait_for_file("/example")
34 machine.succeed('grep "example" /example')