···
83
-
machine.wait_for_unit("k3s")
84
-
machine.succeed("kubectl cluster-info")
85
-
machine.fail("sudo -u noprivs kubectl cluster-info")
86
-
machine.succeed("k3s check-config")
88
-
"${pauseImage} | ctr image import -"
82
+
machine.wait_for_unit("k3s")
83
+
machine.succeed("kubectl cluster-info")
84
+
machine.fail("sudo -u noprivs kubectl cluster-info")
85
+
machine.succeed("k3s check-config")
87
+
"${pauseImage} | ctr image import -"
91
-
# Also wait for our service account to show up; it takes a sec
92
-
machine.wait_until_succeeds("kubectl get serviceaccount default")
93
-
machine.succeed("kubectl apply -f ${testPodYaml}")
94
-
machine.succeed("kubectl wait --for 'condition=Ready' pod/test")
95
-
machine.succeed("kubectl delete -f ${testPodYaml}")
90
+
# Also wait for our service account to show up; it takes a sec
91
+
machine.wait_until_succeeds("kubectl get serviceaccount default")
92
+
machine.succeed("kubectl apply -f ${testPodYaml}")
93
+
machine.succeed("kubectl wait --for 'condition=Ready' pod/test")
94
+
machine.succeed("kubectl delete -f ${testPodYaml}")
97
-
# regression test for #176445
98
-
machine.fail("journalctl -o cat -u k3s.service | grep 'ipset utility not found'")
96
+
# regression test for #176445
97
+
machine.fail("journalctl -o cat -u k3s.service | grep 'ipset utility not found'")
100
-
with subtest("Run k3s-killall"):
101
-
# Call the killall script with a clean path to assert that
102
-
# all required commands are wrapped
103
-
output = machine.succeed("PATH= ${k3s}/bin/k3s-killall.sh 2>&1 | tee /dev/stderr")
104
-
assert "command not found" not in output, "killall script contains unknown command"
99
+
with subtest("Run k3s-killall"):
100
+
# Call the killall script with a clean path to assert that
101
+
# all required commands are wrapped
102
+
output = machine.succeed("PATH= ${k3s}/bin/k3s-killall.sh 2>&1 | tee /dev/stderr")
103
+
assert "command not found" not in output, "killall script contains unknown command"
106
-
# Check that killall cleaned up properly
107
-
machine.fail("systemctl is-active k3s.service")
108
-
machine.fail("systemctl list-units | grep containerd")
109
-
machine.fail("ip link show | awk -F': ' '{print $2}' | grep -e flannel -e cni0")
110
-
machine.fail("ip netns show | grep cni-")
105
+
# Check that killall cleaned up properly
106
+
machine.fail("systemctl is-active k3s.service")
107
+
machine.fail("systemctl list-units | grep containerd")
108
+
machine.fail("ip link show | awk -F': ' '{print $2}' | grep -e flannel -e cni0")
109
+
machine.fail("ip netns show | grep cni-")
meta.maintainers = lib.teams.k3s.members;