1 # This test runs simple etcd node
3 import ./make-test-python.nix ({ pkgs, ... } : {
6 meta = with pkgs.lib.maintainers; {
7 maintainers = [ offline ];
12 services.etcd.enable = true;
17 with subtest("should start etcd node"):
19 node.wait_for_unit("etcd.service")
21 with subtest("should write and read some values to etcd"):
22 node.succeed("etcdctl set /foo/bar 'Hello world'")
23 node.succeed("etcdctl get /foo/bar | grep 'Hello world'")