diff options
author | Sascha Grunert <sgrunert@suse.com> | 2020-08-23 16:08:10 +0200 |
---|---|---|
committer | zowoq <59103226+zowoq@users.noreply.github.com> | 2020-08-24 18:34:19 +1000 |
commit | 1c551f977890f4414787d4f42d91e767d8f421ea (patch) | |
tree | 9758c0bf4e0e77e007583abda085ed18fa4a4baa /nixos/tests | |
parent | cedef0c6c7604a387e2eae1e04dd89b7ff320ef1 (diff) | |
download | nixpkgs-1c551f977890f4414787d4f42d91e767d8f421ea.tar nixpkgs-1c551f977890f4414787d4f42d91e767d8f421ea.tar.gz nixpkgs-1c551f977890f4414787d4f42d91e767d8f421ea.tar.bz2 nixpkgs-1c551f977890f4414787d4f42d91e767d8f421ea.tar.lz nixpkgs-1c551f977890f4414787d4f42d91e767d8f421ea.tar.xz nixpkgs-1c551f977890f4414787d4f42d91e767d8f421ea.tar.zst nixpkgs-1c551f977890f4414787d4f42d91e767d8f421ea.zip |
cri-o: add NixOS test via critest
Signed-off-by: Sascha Grunert <sgrunert@suse.com>
Diffstat (limited to 'nixos/tests')
-rw-r--r-- | nixos/tests/all-tests.nix | 1 | ||||
-rw-r--r-- | nixos/tests/cri-o.nix | 19 |
2 files changed, 20 insertions, 0 deletions
diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix index fdfe2cfef29..7b8e1b2b56d 100644 --- a/nixos/tests/all-tests.nix +++ b/nixos/tests/all-tests.nix @@ -72,6 +72,7 @@ in convos = handleTest ./convos.nix {}; corerad = handleTest ./corerad.nix {}; couchdb = handleTest ./couchdb.nix {}; + cri-o = handleTestOn ["x86_64-linux"] ./cri-o.nix {}; deluge = handleTest ./deluge.nix {}; dhparams = handleTest ./dhparams.nix {}; dnscrypt-proxy2 = handleTestOn ["x86_64-linux"] ./dnscrypt-proxy2.nix {}; diff --git a/nixos/tests/cri-o.nix b/nixos/tests/cri-o.nix new file mode 100644 index 00000000000..f13f1bdacb6 --- /dev/null +++ b/nixos/tests/cri-o.nix @@ -0,0 +1,19 @@ +# This test runs CRI-O and verifies via critest +import ./make-test-python.nix ({ pkgs, ... }: { + name = "cri-o"; + maintainers = with pkgs.stdenv.lib.maintainers; teams.podman.members; + + nodes = { + crio = { + virtualisation.cri-o.enable = true; + }; + }; + + testScript = '' + start_all() + crio.wait_for_unit("crio.service") + crio.succeed( + "critest --ginkgo.focus='Runtime info' --runtime-endpoint unix:///var/run/crio/crio.sock" + ) + ''; +}) |