Update go dependencies
This commit is contained in:
parent
a858c549d9
commit
f3bde94d68
643 changed files with 14296 additions and 19354 deletions
8
vendor/k8s.io/kubernetes/pkg/volume/plugins_test.go
generated
vendored
8
vendor/k8s.io/kubernetes/pkg/volume/plugins_test.go
generated
vendored
|
|
@ -24,8 +24,6 @@ import (
|
|||
"k8s.io/apimachinery/pkg/types"
|
||||
)
|
||||
|
||||
const testPluginName = "kubernetes.io/testPlugin"
|
||||
|
||||
func TestSpecSourceConverters(t *testing.T) {
|
||||
v := &v1.Volume{
|
||||
Name: "foo",
|
||||
|
|
@ -64,7 +62,7 @@ func (plugin *testPlugins) Init(host VolumeHost) error {
|
|||
}
|
||||
|
||||
func (plugin *testPlugins) GetPluginName() string {
|
||||
return testPluginName
|
||||
return "testPlugin"
|
||||
}
|
||||
|
||||
func (plugin *testPlugins) GetVolumeName(spec *Spec) (string, error) {
|
||||
|
|
@ -108,11 +106,11 @@ func TestVolumePluginMgrFunc(t *testing.T) {
|
|||
var prober DynamicPluginProber = nil // TODO (#51147) inject mock
|
||||
vpm.InitPlugins(newTestPlugin(), prober, nil)
|
||||
|
||||
plug, err := vpm.FindPluginByName(testPluginName)
|
||||
plug, err := vpm.FindPluginByName("testPlugin")
|
||||
if err != nil {
|
||||
t.Errorf("Can't find the plugin by name")
|
||||
}
|
||||
if plug.GetPluginName() != testPluginName {
|
||||
if plug.GetPluginName() != "testPlugin" {
|
||||
t.Errorf("Wrong name: %s", plug.GetPluginName())
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue