mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 15:37:24 +00:00
basic regression test of runDockershim
- added basic regression test to ensure an error is raised in the case of an unconfigured runtime, and the case of asking for a docker runtime when compiled dockerless Signed-off-by: Morgan Bauer <mbauer@us.ibm.com>
This commit is contained in:
@@ -1953,6 +1953,13 @@ func TestSyncPodKillPod(t *testing.T) {
|
||||
checkPodStatus(t, kl, pod, v1.PodFailed)
|
||||
}
|
||||
|
||||
func TestPreInitRuntimeService(t *testing.T) {
|
||||
err := PreInitRuntimeService(nil, nil, nil, "", "", "", "", "")
|
||||
if err == nil {
|
||||
t.Fatal("PreInitRuntimeService should fail when not configured with a container runtime")
|
||||
}
|
||||
}
|
||||
|
||||
func waitForVolumeUnmount(
|
||||
volumeManager kubeletvolume.VolumeManager,
|
||||
pod *v1.Pod) error {
|
||||
|
||||
Reference in New Issue
Block a user