@@ -112,6 +112,17 @@ func TestVolumePluginMgrFunc(t *testing.T) {
|
||||
if plug.GetPluginName() != "testPlugin" {
|
||||
t.Errorf("Wrong name: %s", plug.GetPluginName())
|
||||
}
|
||||
|
||||
plug, err = vpm.FindPluginBySpec(nil)
|
||||
if err == nil {
|
||||
t.Errorf("Should return error if volume spec is nil")
|
||||
}
|
||||
|
||||
volumeSpec := &Spec{}
|
||||
plug, err = vpm.FindPluginBySpec(volumeSpec)
|
||||
if err != nil {
|
||||
t.Errorf("Should return test plugin if volume spec is not nil")
|
||||
}
|
||||
}
|
||||
|
||||
func Test_ValidatePodTemplate(t *testing.T) {
|
||||
|
Reference in New Issue
Block a user