summary refs log tree commit diff
path: root/nixos/tests/cri-o.nix
blob: d3a8713d6a9b3f7eb8505655965d9c70caf2769a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# This test runs CRI-O and verifies via critest
import ./make-test-python.nix ({ pkgs, ... }: {
  name = "cri-o";
  meta.maintainers = with pkgs.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"
    )
  '';
})