From b298bbfce0151c4b4b35bb902b0ef417d5c61da7 Mon Sep 17 00:00:00 2001 From: superherointj <5861043+superherointj@users.noreply.github.com> Date: Fri, 12 Jul 2024 10:21:16 -0300 Subject: [PATCH] k3s/nixos/tests: move comments to test (clean-up) --- nixos/tests/k3s/auto-deploy.nix | 1 + nixos/tests/k3s/default.nix | 4 ---- nixos/tests/k3s/etcd.nix | 1 + nixos/tests/k3s/multi-node.nix | 1 + nixos/tests/k3s/single-node.nix | 1 + 5 files changed, 4 insertions(+), 4 deletions(-) diff --git a/nixos/tests/k3s/auto-deploy.nix b/nixos/tests/k3s/auto-deploy.nix index 19be88dc7402..d60aede950e7 100644 --- a/nixos/tests/k3s/auto-deploy.nix +++ b/nixos/tests/k3s/auto-deploy.nix @@ -1,3 +1,4 @@ +# Tests whether container images are imported and auto deploying manifests work import ../make-test-python.nix ( { pkgs, diff --git a/nixos/tests/k3s/default.nix b/nixos/tests/k3s/default.nix index 529cf312be7e..6825ba997fdb 100644 --- a/nixos/tests/k3s/default.nix +++ b/nixos/tests/k3s/default.nix @@ -7,9 +7,7 @@ let allK3s = lib.filterAttrs (n: _: lib.strings.hasPrefix "k3s_" n) pkgs; in { - # Test whether container images are imported and auto deploying manifests work auto-deploy = lib.mapAttrs (_: k3s: import ./auto-deploy.nix { inherit system pkgs k3s; }) allK3s; - # Testing K3s with Etcd backend etcd = lib.mapAttrs ( _: k3s: import ./etcd.nix { @@ -17,8 +15,6 @@ in inherit (pkgs) etcd; } ) allK3s; - # Run a single node k3s cluster and verify a pod can run single-node = lib.mapAttrs (_: k3s: import ./single-node.nix { inherit system pkgs k3s; }) allK3s; - # Run a multi-node k3s cluster and verify pod networking works across nodes multi-node = lib.mapAttrs (_: k3s: import ./multi-node.nix { inherit system pkgs k3s; }) allK3s; } diff --git a/nixos/tests/k3s/etcd.nix b/nixos/tests/k3s/etcd.nix index fa6012afd54c..149185d551d7 100644 --- a/nixos/tests/k3s/etcd.nix +++ b/nixos/tests/k3s/etcd.nix @@ -1,3 +1,4 @@ +# Tests K3s with Etcd backend import ../make-test-python.nix ( { pkgs, diff --git a/nixos/tests/k3s/multi-node.nix b/nixos/tests/k3s/multi-node.nix index 504ac10d96c1..361f4946660d 100644 --- a/nixos/tests/k3s/multi-node.nix +++ b/nixos/tests/k3s/multi-node.nix @@ -1,3 +1,4 @@ +# A test that runs a multi-node k3s cluster and verify pod networking works across nodes import ../make-test-python.nix ( { pkgs, diff --git a/nixos/tests/k3s/single-node.nix b/nixos/tests/k3s/single-node.nix index 220f6086b092..e0bc80e8614f 100644 --- a/nixos/tests/k3s/single-node.nix +++ b/nixos/tests/k3s/single-node.nix @@ -1,3 +1,4 @@ +# A test that runs a single node k3s cluster and verify a pod can run import ../make-test-python.nix ( { pkgs,