diff options
author | Marek Mahut <marek.mahut@gmail.com> | 2020-05-24 20:39:23 +0200 |
---|---|---|
committer | Marek Mahut <marek.mahut@gmail.com> | 2020-05-26 21:47:31 +0200 |
commit | cd5f6265443ae882dab85e58aec99a4283542116 (patch) | |
tree | 697851b66da62d708d52c51f1652ae6d95a361e4 /nixos | |
parent | fdc48e5c7eecc804ca47e275f9e2f9cfd490e285 (diff) | |
download | nixlib-cd5f6265443ae882dab85e58aec99a4283542116.tar nixlib-cd5f6265443ae882dab85e58aec99a4283542116.tar.gz nixlib-cd5f6265443ae882dab85e58aec99a4283542116.tar.bz2 nixlib-cd5f6265443ae882dab85e58aec99a4283542116.tar.lz nixlib-cd5f6265443ae882dab85e58aec99a4283542116.tar.xz nixlib-cd5f6265443ae882dab85e58aec99a4283542116.tar.zst nixlib-cd5f6265443ae882dab85e58aec99a4283542116.zip |
tests/ergo: init
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/tests/all-tests.nix | 1 | ||||
-rw-r--r-- | nixos/tests/ergo.nix | 18 |
2 files changed, 19 insertions, 0 deletions
diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix index 0acded892c7a..b490a6fe8df7 100644 --- a/nixos/tests/all-tests.nix +++ b/nixos/tests/all-tests.nix @@ -88,6 +88,7 @@ in elk = handleTestOn ["x86_64-linux"] ./elk.nix {}; enlightenment = handleTest ./enlightenment.nix {}; env = handleTest ./env.nix {}; + ergo = handleTest ./ergo.nix {}; etcd = handleTestOn ["x86_64-linux"] ./etcd.nix {}; etcd-cluster = handleTestOn ["x86_64-linux"] ./etcd-cluster.nix {}; fancontrol = handleTest ./fancontrol.nix {}; diff --git a/nixos/tests/ergo.nix b/nixos/tests/ergo.nix new file mode 100644 index 000000000000..8cdbbf62a956 --- /dev/null +++ b/nixos/tests/ergo.nix @@ -0,0 +1,18 @@ +import ./make-test-python.nix ({ pkgs, ... }: { + name = "ergo"; + meta = with pkgs.stdenv.lib.maintainers; { + maintainers = [ mmahut ]; + }; + + nodes = { + machine = { ... }: { + services.ergo.enable = true; + services.ergo.api.keyHash = "324dcf027dd4a30a932c441f365a25e86b173defa4b8e58948253471b81b72cf"; + }; + }; + + testScript = '' + start_all() + machine.wait_for_unit("ergo.service") + ''; +}) |