diff --git a/pkg/volume/awsebs/aws_ebs_test.go b/pkg/volume/awsebs/aws_ebs_test.go index a74a70039d3..1de3c53ab27 100644 --- a/pkg/volume/awsebs/aws_ebs_test.go +++ b/pkg/volume/awsebs/aws_ebs_test.go @@ -50,7 +50,7 @@ func TestCanSupport(t *testing.T) { plug, err := plugMgr.FindPluginByName("kubernetes.io/aws-ebs") if err != nil { - t.Errorf("Can't find the plugin by name") + t.Fatal("Can't find the plugin by name") } if plug.GetPluginName() != "kubernetes.io/aws-ebs" { t.Errorf("Wrong name: %s", plug.GetPluginName()) @@ -460,7 +460,7 @@ func TestUnsupportedVolumeHost(t *testing.T) { plug, err := plugMgr.FindPluginByName("kubernetes.io/aws-ebs") if err != nil { - t.Errorf("Can't find the plugin by name") + t.Fatal("Can't find the plugin by name") } _, err = plug.ConstructVolumeSpec("", "") diff --git a/pkg/volume/azure_file/azure_file_test.go b/pkg/volume/azure_file/azure_file_test.go index 231fdf44f62..8e16d1752f2 100644 --- a/pkg/volume/azure_file/azure_file_test.go +++ b/pkg/volume/azure_file/azure_file_test.go @@ -51,7 +51,7 @@ func TestCanSupport(t *testing.T) { plug, err := plugMgr.FindPluginByName("kubernetes.io/azure-file") if err != nil { - t.Errorf("Can't find the plugin by name") + t.Fatal("Can't find the plugin by name") } if plug.GetPluginName() != "kubernetes.io/azure-file" { t.Errorf("Wrong name: %s", plug.GetPluginName()) diff --git a/pkg/volume/azuredd/azure_dd_test.go b/pkg/volume/azuredd/azure_dd_test.go index 4896739a546..c9ad23d4c11 100644 --- a/pkg/volume/azuredd/azure_dd_test.go +++ b/pkg/volume/azuredd/azure_dd_test.go @@ -41,7 +41,7 @@ func TestCanSupport(t *testing.T) { plug, err := plugMgr.FindPluginByName(azureDataDiskPluginName) if err != nil { - t.Errorf("Can't find the plugin by name") + t.Fatal("Can't find the plugin by name") } if plug.GetPluginName() != azureDataDiskPluginName { t.Errorf("Wrong name: %s", plug.GetPluginName()) @@ -98,7 +98,7 @@ func TestUnsupportedVolumeHost(t *testing.T) { plug, err := plugMgr.FindPluginByName(azureDataDiskPluginName) if err != nil { - t.Errorf("Can't find the plugin by name") + t.Fatal("Can't find the plugin by name") } _, err = plug.ConstructVolumeSpec("", "") diff --git a/pkg/volume/cephfs/cephfs_test.go b/pkg/volume/cephfs/cephfs_test.go index 83d2d0599c0..9c671842f59 100644 --- a/pkg/volume/cephfs/cephfs_test.go +++ b/pkg/volume/cephfs/cephfs_test.go @@ -40,7 +40,7 @@ func TestCanSupport(t *testing.T) { plugMgr.InitPlugins(ProbeVolumePlugins(), nil /* prober */, volumetest.NewFakeVolumeHost(t, tmpDir, nil, nil)) plug, err := plugMgr.FindPluginByName("kubernetes.io/cephfs") if err != nil { - t.Errorf("Can't find the plugin by name") + t.Fatal("Can't find the plugin by name") } if plug.GetPluginName() != "kubernetes.io/cephfs" { t.Errorf("Wrong name: %s", plug.GetPluginName()) @@ -240,7 +240,7 @@ func TestGetAccessModes(t *testing.T) { plug, err := plugMgr.FindPersistentPluginByName("kubernetes.io/cephfs") if err != nil { - t.Errorf("Can't find the plugin by name") + t.Fatal("Can't find the plugin by name") } modes := plug.GetAccessModes() for _, v := range modes { diff --git a/pkg/volume/cinder/cinder_test.go b/pkg/volume/cinder/cinder_test.go index 169933907d7..c72c76ee4dc 100644 --- a/pkg/volume/cinder/cinder_test.go +++ b/pkg/volume/cinder/cinder_test.go @@ -47,7 +47,7 @@ func TestCanSupport(t *testing.T) { plug, err := plugMgr.FindPluginByName("kubernetes.io/cinder") if err != nil { - t.Errorf("Can't find the plugin by name") + t.Fatal("Can't find the plugin by name") } if plug.GetPluginName() != "kubernetes.io/cinder" { t.Errorf("Wrong name: %s", plug.GetPluginName()) @@ -354,7 +354,7 @@ func TestUnsupportedVolumeHost(t *testing.T) { plug, err := plugMgr.FindPluginByName("kubernetes.io/cinder") if err != nil { - t.Errorf("Can't find the plugin by name") + t.Fatal("Can't find the plugin by name") } _, err = plug.ConstructVolumeSpec("", "") diff --git a/pkg/volume/configmap/configmap_test.go b/pkg/volume/configmap/configmap_test.go index e03d39d1a25..89c6ec01e38 100644 --- a/pkg/volume/configmap/configmap_test.go +++ b/pkg/volume/configmap/configmap_test.go @@ -308,7 +308,7 @@ func TestCanSupport(t *testing.T) { plugin, err := pluginMgr.FindPluginByName(configMapPluginName) if err != nil { - t.Errorf("Can't find the plugin by name") + t.Fatal("Can't find the plugin by name") } if plugin.GetPluginName() != configMapPluginName { t.Errorf("Wrong name: %s", plugin.GetPluginName()) @@ -340,7 +340,7 @@ func TestPlugin(t *testing.T) { plugin, err := pluginMgr.FindPluginByName(configMapPluginName) if err != nil { - t.Errorf("Can't find the plugin by name") + t.Fatal("Can't find the plugin by name") } pod := &v1.Pod{ObjectMeta: metav1.ObjectMeta{Namespace: testNamespace, UID: testPodUID}} @@ -406,7 +406,7 @@ func TestPluginReboot(t *testing.T) { plugin, err := pluginMgr.FindPluginByName(configMapPluginName) if err != nil { - t.Errorf("Can't find the plugin by name") + t.Fatal("Can't find the plugin by name") } pod := &v1.Pod{ObjectMeta: metav1.ObjectMeta{Namespace: testNamespace, UID: testPodUID}} @@ -464,7 +464,7 @@ func TestPluginOptional(t *testing.T) { plugin, err := pluginMgr.FindPluginByName(configMapPluginName) if err != nil { - t.Errorf("Can't find the plugin by name") + t.Fatal("Can't find the plugin by name") } pod := &v1.Pod{ObjectMeta: metav1.ObjectMeta{Namespace: testNamespace, UID: testPodUID}} @@ -563,7 +563,7 @@ func TestPluginKeysOptional(t *testing.T) { plugin, err := pluginMgr.FindPluginByName(configMapPluginName) if err != nil { - t.Errorf("Can't find the plugin by name") + t.Fatal("Can't find the plugin by name") } pod := &v1.Pod{ObjectMeta: metav1.ObjectMeta{Namespace: testNamespace, UID: testPodUID}} @@ -643,7 +643,7 @@ func TestInvalidConfigMapSetup(t *testing.T) { plugin, err := pluginMgr.FindPluginByName(configMapPluginName) if err != nil { - t.Errorf("Can't find the plugin by name") + t.Fatal("Can't find the plugin by name") } pod := &v1.Pod{ObjectMeta: metav1.ObjectMeta{Namespace: testNamespace, UID: testPodUID}} diff --git a/pkg/volume/downwardapi/downwardapi_test.go b/pkg/volume/downwardapi/downwardapi_test.go index 647ebe3ff56..915f835c3b6 100644 --- a/pkg/volume/downwardapi/downwardapi_test.go +++ b/pkg/volume/downwardapi/downwardapi_test.go @@ -58,7 +58,7 @@ func TestCanSupport(t *testing.T) { plugin, err := pluginMgr.FindPluginByName(downwardAPIPluginName) if err != nil { - t.Errorf("Can't find the plugin by name") + t.Fatal("Can't find the plugin by name") } if plugin.GetPluginName() != downwardAPIPluginName { t.Errorf("Wrong name: %s", plugin.GetPluginName()) @@ -229,7 +229,7 @@ func newDownwardAPITest(t *testing.T, name string, volumeFiles, podLabels, podAn pluginMgr.InitPlugins(ProbeVolumePlugins(), nil /* prober */, host) plugin, err := pluginMgr.FindPluginByName(downwardAPIPluginName) if err != nil { - t.Errorf("Can't find the plugin by name") + t.Fatal("Can't find the plugin by name") } volumeSpec := &v1.Volume{ diff --git a/pkg/volume/emptydir/empty_dir_test.go b/pkg/volume/emptydir/empty_dir_test.go index e62b54b7b5a..2f243040399 100644 --- a/pkg/volume/emptydir/empty_dir_test.go +++ b/pkg/volume/emptydir/empty_dir_test.go @@ -46,7 +46,7 @@ func makePluginUnderTest(t *testing.T, plugName, basePath string) volume.VolumeP plug, err := plugMgr.FindPluginByName(plugName) if err != nil { - t.Errorf("Can't find the plugin by name") + t.Fatal("Can't find the plugin by name") } return plug } diff --git a/pkg/volume/fc/fc_test.go b/pkg/volume/fc/fc_test.go index 1467f065a8d..e95af37fbf5 100644 --- a/pkg/volume/fc/fc_test.go +++ b/pkg/volume/fc/fc_test.go @@ -48,7 +48,7 @@ func TestCanSupport(t *testing.T) { plug, err := plugMgr.FindPluginByName("kubernetes.io/fc") if err != nil { - t.Errorf("Can't find the plugin by name") + t.Fatal("Can't find the plugin by name") } if plug.GetPluginName() != "kubernetes.io/fc" { t.Errorf("Wrong name: %s", plug.GetPluginName()) diff --git a/pkg/volume/gcepd/gce_pd_test.go b/pkg/volume/gcepd/gce_pd_test.go index 54e40ee5471..e5be6f9c278 100644 --- a/pkg/volume/gcepd/gce_pd_test.go +++ b/pkg/volume/gcepd/gce_pd_test.go @@ -49,7 +49,7 @@ func TestCanSupport(t *testing.T) { plug, err := plugMgr.FindPluginByName("kubernetes.io/gce-pd") if err != nil { - t.Errorf("Can't find the plugin by name") + t.Fatal("Can't find the plugin by name") } if plug.GetPluginName() != "kubernetes.io/gce-pd" { t.Errorf("Wrong name: %s", plug.GetPluginName()) @@ -356,7 +356,7 @@ func TestUnsupportedVolumeHost(t *testing.T) { plug, err := plugMgr.FindPluginByName("kubernetes.io/gce-pd") if err != nil { - t.Errorf("Can't find the plugin by name") + t.Fatal("Can't find the plugin by name") } _, err = plug.ConstructVolumeSpec("", "") diff --git a/pkg/volume/git_repo/git_repo_test.go b/pkg/volume/git_repo/git_repo_test.go index 0ff265ac68a..3b855239dc3 100644 --- a/pkg/volume/git_repo/git_repo_test.go +++ b/pkg/volume/git_repo/git_repo_test.go @@ -51,7 +51,7 @@ func TestCanSupport(t *testing.T) { plug, err := plugMgr.FindPluginByName("kubernetes.io/git-repo") if err != nil { - t.Errorf("Can't find the plugin by name") + t.Fatal("Can't find the plugin by name") } if plug.GetPluginName() != "kubernetes.io/git-repo" { t.Errorf("Wrong name: %s", plug.GetPluginName()) diff --git a/pkg/volume/glusterfs/glusterfs_test.go b/pkg/volume/glusterfs/glusterfs_test.go index f6a535dfac5..43ca2b14002 100644 --- a/pkg/volume/glusterfs/glusterfs_test.go +++ b/pkg/volume/glusterfs/glusterfs_test.go @@ -47,7 +47,7 @@ func TestCanSupport(t *testing.T) { plugMgr.InitPlugins(ProbeVolumePlugins(), nil /* prober */, volumetest.NewFakeVolumeHost(t, tmpDir, nil, nil)) plug, err := plugMgr.FindPluginByName("kubernetes.io/glusterfs") if err != nil { - t.Errorf("Can't find the plugin by name") + t.Fatal("Can't find the plugin by name") } if plug.GetPluginName() != "kubernetes.io/glusterfs" { t.Errorf("Wrong name: %s", plug.GetPluginName()) diff --git a/pkg/volume/iscsi/iscsi_test.go b/pkg/volume/iscsi/iscsi_test.go index 23168b1c007..f4b34454b0b 100644 --- a/pkg/volume/iscsi/iscsi_test.go +++ b/pkg/volume/iscsi/iscsi_test.go @@ -46,7 +46,7 @@ func TestCanSupport(t *testing.T) { plug, err := plugMgr.FindPluginByName("kubernetes.io/iscsi") if err != nil { - t.Errorf("Can't find the plugin by name") + t.Fatal("Can't find the plugin by name") } if plug.GetPluginName() != "kubernetes.io/iscsi" { t.Errorf("Wrong name: %s", plug.GetPluginName()) diff --git a/pkg/volume/nfs/nfs_test.go b/pkg/volume/nfs/nfs_test.go index d9d8cccb022..b07a00589bc 100644 --- a/pkg/volume/nfs/nfs_test.go +++ b/pkg/volume/nfs/nfs_test.go @@ -43,7 +43,7 @@ func TestCanSupport(t *testing.T) { plugMgr.InitPlugins(ProbeVolumePlugins(volume.VolumeConfig{}), nil /* prober */, volumetest.NewFakeVolumeHost(t, tmpDir, nil, nil)) plug, err := plugMgr.FindPluginByName("kubernetes.io/nfs") if err != nil { - t.Errorf("Can't find the plugin by name") + t.Fatal("Can't find the plugin by name") } if plug.GetPluginName() != "kubernetes.io/nfs" { t.Errorf("Wrong name: %s", plug.GetPluginName()) diff --git a/pkg/volume/plugins_test.go b/pkg/volume/plugins_test.go index 012ca83c1f2..510f204ca1b 100644 --- a/pkg/volume/plugins_test.go +++ b/pkg/volume/plugins_test.go @@ -110,7 +110,7 @@ func TestVolumePluginMgrFunc(t *testing.T) { plug, err := vpm.FindPluginByName(testPluginName) if err != nil { - t.Errorf("Can't find the plugin by name") + t.Fatal("Can't find the plugin by name") } if plug.GetPluginName() != testPluginName { t.Errorf("Wrong name: %s", plug.GetPluginName()) diff --git a/pkg/volume/portworx/portworx_test.go b/pkg/volume/portworx/portworx_test.go index f3d7a9fd7a5..a175a7c8847 100644 --- a/pkg/volume/portworx/portworx_test.go +++ b/pkg/volume/portworx/portworx_test.go @@ -47,7 +47,7 @@ func TestCanSupport(t *testing.T) { plug, err := plugMgr.FindPluginByName("kubernetes.io/portworx-volume") if err != nil { - t.Errorf("Can't find the plugin by name") + t.Fatal("Can't find the plugin by name") } if plug.GetPluginName() != "kubernetes.io/portworx-volume" { t.Errorf("Wrong name: %s", plug.GetPluginName()) diff --git a/pkg/volume/projected/projected_test.go b/pkg/volume/projected/projected_test.go index 0ad230ad7c5..f88f3456cca 100644 --- a/pkg/volume/projected/projected_test.go +++ b/pkg/volume/projected/projected_test.go @@ -890,7 +890,7 @@ func TestCanSupport(t *testing.T) { plugin, err := pluginMgr.FindPluginByName(projectedPluginName) if err != nil { - t.Errorf("Can't find the plugin by name") + t.Fatal("Can't find the plugin by name") } if plugin.GetPluginName() != projectedPluginName { t.Errorf("Wrong name: %s", plugin.GetPluginName()) @@ -921,7 +921,7 @@ func TestPlugin(t *testing.T) { plugin, err := pluginMgr.FindPluginByName(projectedPluginName) if err != nil { - t.Errorf("Can't find the plugin by name") + t.Fatal("Can't find the plugin by name") } pod := &v1.Pod{ObjectMeta: metav1.ObjectMeta{Namespace: testNamespace, UID: testPodUID}} @@ -986,7 +986,7 @@ func TestInvalidPathProjected(t *testing.T) { plugin, err := pluginMgr.FindPluginByName(projectedPluginName) if err != nil { - t.Errorf("Can't find the plugin by name") + t.Fatal("Can't find the plugin by name") } pod := &v1.Pod{ObjectMeta: metav1.ObjectMeta{Namespace: testNamespace, UID: testPodUID}} @@ -1036,7 +1036,7 @@ func TestPluginReboot(t *testing.T) { plugin, err := pluginMgr.FindPluginByName(projectedPluginName) if err != nil { - t.Errorf("Can't find the plugin by name") + t.Fatal("Can't find the plugin by name") } pod := &v1.Pod{ObjectMeta: metav1.ObjectMeta{Namespace: testNamespace, UID: testPodUID}} @@ -1090,7 +1090,7 @@ func TestPluginOptional(t *testing.T) { plugin, err := pluginMgr.FindPluginByName(projectedPluginName) if err != nil { - t.Errorf("Can't find the plugin by name") + t.Fatal("Can't find the plugin by name") } pod := &v1.Pod{ObjectMeta: metav1.ObjectMeta{Namespace: testNamespace, UID: testPodUID}} @@ -1188,7 +1188,7 @@ func TestPluginOptionalKeys(t *testing.T) { plugin, err := pluginMgr.FindPluginByName(projectedPluginName) if err != nil { - t.Errorf("Can't find the plugin by name") + t.Fatal("Can't find the plugin by name") } pod := &v1.Pod{ObjectMeta: metav1.ObjectMeta{Namespace: testNamespace, UID: testPodUID}} diff --git a/pkg/volume/quobyte/quobyte_test.go b/pkg/volume/quobyte/quobyte_test.go index d32879345f4..3842373ce34 100644 --- a/pkg/volume/quobyte/quobyte_test.go +++ b/pkg/volume/quobyte/quobyte_test.go @@ -43,7 +43,7 @@ func TestCanSupport(t *testing.T) { plugMgr.InitPlugins(ProbeVolumePlugins(), nil /* prober */, volumetest.NewFakeVolumeHost(t, tmpDir, nil, nil)) plug, err := plugMgr.FindPluginByName("kubernetes.io/quobyte") if err != nil { - t.Errorf("Can't find the plugin by name") + t.Fatal("Can't find the plugin by name") } if plug.GetPluginName() != "kubernetes.io/quobyte" { t.Errorf("Wrong name: %s", plug.GetPluginName()) diff --git a/pkg/volume/rbd/rbd_test.go b/pkg/volume/rbd/rbd_test.go index 4d934eae305..99377f7853f 100644 --- a/pkg/volume/rbd/rbd_test.go +++ b/pkg/volume/rbd/rbd_test.go @@ -106,7 +106,7 @@ func TestCanSupport(t *testing.T) { plug, err := plugMgr.FindPluginByName("kubernetes.io/rbd") if err != nil { - t.Errorf("Can't find the plugin by name") + t.Fatal("Can't find the plugin by name") } if plug.GetPluginName() != "kubernetes.io/rbd" { t.Errorf("Wrong name: %s", plug.GetPluginName()) @@ -252,7 +252,7 @@ func doTestPlugin(t *testing.T, c *testcase) { plugMgr.InitPlugins(ProbeVolumePlugins(), nil /* prober */, fakeVolumeHost) plug, err := plugMgr.FindPluginByName("kubernetes.io/rbd") if err != nil { - t.Errorf("Can't find the plugin by name") + t.Fatal("Can't find the plugin by name") } fakeMounter := fakeVolumeHost.GetMounter(plug.GetPluginName()).(*mount.FakeMounter) fakeNodeName := types.NodeName("localhost") @@ -604,7 +604,7 @@ func TestConstructVolumeSpec(t *testing.T) { plugMgr.InitPlugins(ProbeVolumePlugins(), nil /* prober */, fakeVolumeHost) plug, err := plugMgr.FindPluginByName("kubernetes.io/rbd") if err != nil { - t.Errorf("Can't find the plugin by name") + t.Fatal("Can't find the plugin by name") } fakeMounter := fakeVolumeHost.GetMounter(plug.GetPluginName()).(*mount.FakeMounter) @@ -753,7 +753,7 @@ func TestUnsupportedVolumeHost(t *testing.T) { plug, err := plugMgr.FindPluginByName("kubernetes.io/rbd") if err != nil { - t.Errorf("Can't find the plugin by name") + t.Fatal("Can't find the plugin by name") } _, err = plug.ConstructVolumeSpec("", "") diff --git a/pkg/volume/secret/secret_test.go b/pkg/volume/secret/secret_test.go index 7d60d7b7d6c..be7b65f6816 100644 --- a/pkg/volume/secret/secret_test.go +++ b/pkg/volume/secret/secret_test.go @@ -279,7 +279,7 @@ func TestCanSupport(t *testing.T) { plugin, err := pluginMgr.FindPluginByName(secretPluginName) if err != nil { - t.Errorf("Can't find the plugin by name") + t.Fatal("Can't find the plugin by name") } if plugin.GetPluginName() != secretPluginName { t.Errorf("Wrong name: %s", plugin.GetPluginName()) @@ -310,7 +310,7 @@ func TestPlugin(t *testing.T) { plugin, err := pluginMgr.FindPluginByName(secretPluginName) if err != nil { - t.Errorf("Can't find the plugin by name") + t.Fatal("Can't find the plugin by name") } pod := &v1.Pod{ObjectMeta: metav1.ObjectMeta{Namespace: testNamespace, UID: testPodUID}} @@ -384,7 +384,7 @@ func TestInvalidPathSecret(t *testing.T) { plugin, err := pluginMgr.FindPluginByName(secretPluginName) if err != nil { - t.Errorf("Can't find the plugin by name") + t.Fatal("Can't find the plugin by name") } pod := &v1.Pod{ObjectMeta: metav1.ObjectMeta{Namespace: testNamespace, UID: testPodUID}} @@ -434,7 +434,7 @@ func TestPluginReboot(t *testing.T) { plugin, err := pluginMgr.FindPluginByName(secretPluginName) if err != nil { - t.Errorf("Can't find the plugin by name") + t.Fatal("Can't find the plugin by name") } pod := &v1.Pod{ObjectMeta: metav1.ObjectMeta{Namespace: testNamespace, UID: testPodUID}} @@ -488,7 +488,7 @@ func TestPluginOptional(t *testing.T) { plugin, err := pluginMgr.FindPluginByName(secretPluginName) if err != nil { - t.Errorf("Can't find the plugin by name") + t.Fatal("Can't find the plugin by name") } pod := &v1.Pod{ObjectMeta: metav1.ObjectMeta{Namespace: testNamespace, UID: testPodUID}} @@ -586,7 +586,7 @@ func TestPluginOptionalKeys(t *testing.T) { plugin, err := pluginMgr.FindPluginByName(secretPluginName) if err != nil { - t.Errorf("Can't find the plugin by name") + t.Fatal("Can't find the plugin by name") } pod := &v1.Pod{ObjectMeta: metav1.ObjectMeta{Namespace: testNamespace, UID: testPodUID}} diff --git a/pkg/volume/storageos/storageos_test.go b/pkg/volume/storageos/storageos_test.go index 604b5c8b1da..5efb509b519 100644 --- a/pkg/volume/storageos/storageos_test.go +++ b/pkg/volume/storageos/storageos_test.go @@ -46,7 +46,7 @@ func TestCanSupport(t *testing.T) { plug, err := plugMgr.FindPluginByName("kubernetes.io/storageos") if err != nil { - t.Errorf("Can't find the plugin by name") + t.Fatal("Can't find the plugin by name") } if plug.GetPluginName() != "kubernetes.io/storageos" { t.Errorf("Wrong name: %s", plug.GetPluginName()) diff --git a/pkg/volume/vsphere_volume/vsphere_volume_test.go b/pkg/volume/vsphere_volume/vsphere_volume_test.go index a4cbff6b74d..be93cfb076d 100644 --- a/pkg/volume/vsphere_volume/vsphere_volume_test.go +++ b/pkg/volume/vsphere_volume/vsphere_volume_test.go @@ -47,7 +47,7 @@ func TestCanSupport(t *testing.T) { plug, err := plugMgr.FindPluginByName("kubernetes.io/vsphere-volume") if err != nil { - t.Errorf("Can't find the plugin by name") + t.Fatal("Can't find the plugin by name") } if plug.GetPluginName() != "kubernetes.io/vsphere-volume" { t.Errorf("Wrong name: %s", plug.GetPluginName()) @@ -248,7 +248,7 @@ func TestUnsupportedVolumeHost(t *testing.T) { plug, err := plugMgr.FindPluginByName("kubernetes.io/vsphere-volume") if err != nil { - t.Errorf("Can't find the plugin by name") + t.Fatal("Can't find the plugin by name") } _, err = plug.ConstructVolumeSpec("", "")