Unverified Commit a5887009 authored by Kubernetes Prow Robot's avatar Kubernetes Prow Robot Committed by GitHub

Merge pull request #68275 from tanshanshan/fixtypo-0905-2

nits in e2e test
parents 1cd6ccb3 33046e3a
...@@ -19,10 +19,11 @@ package vsphere ...@@ -19,10 +19,11 @@ package vsphere
import ( import (
"errors" "errors"
"fmt" "fmt"
"gopkg.in/gcfg.v1"
"io" "io"
"k8s.io/kubernetes/test/e2e/framework"
"os" "os"
"gopkg.in/gcfg.v1"
"k8s.io/kubernetes/test/e2e/framework"
) )
const ( const (
...@@ -147,7 +148,7 @@ func populateInstanceMap(cfg *ConfigFile) (map[string]*VSphere, error) { ...@@ -147,7 +148,7 @@ func populateInstanceMap(cfg *ConfigFile) (map[string]*VSphere, error) {
vcConfig.Password = cfg.Global.Password vcConfig.Password = cfg.Global.Password
} }
if vcConfig.Username == "" { if vcConfig.Username == "" {
msg := fmt.Sprintf("vcConfig.User is empty for vc %s!", vcServer) msg := fmt.Sprintf("vcConfig.Username is empty for vc %s!", vcServer)
framework.Logf(msg) framework.Logf(msg)
return nil, errors.New(msg) return nil, errors.New(msg)
} }
......
...@@ -105,9 +105,8 @@ var _ = utils.SIGDescribe("PersistentVolumes [Feature:LabelSelector]", func() { ...@@ -105,9 +105,8 @@ var _ = utils.SIGDescribe("PersistentVolumes [Feature:LabelSelector]", func() {
}) })
func testSetupVSpherePVClabelselector(c clientset.Interface, nodeInfo *NodeInfo, ns string, ssdlabels map[string]string, vvollabels map[string]string) (volumePath string, pv_ssd *v1.PersistentVolume, pvc_ssd *v1.PersistentVolumeClaim, pvc_vvol *v1.PersistentVolumeClaim, err error) { func testSetupVSpherePVClabelselector(c clientset.Interface, nodeInfo *NodeInfo, ns string, ssdlabels map[string]string, vvollabels map[string]string) (volumePath string, pv_ssd *v1.PersistentVolume, pvc_ssd *v1.PersistentVolumeClaim, pvc_vvol *v1.PersistentVolumeClaim, err error) {
volumePath = ""
By("creating vmdk") By("creating vmdk")
Expect(err).NotTo(HaveOccurred()) volumePath = ""
volumePath, err = nodeInfo.VSphere.CreateVolume(&VolumeOptions{}, nodeInfo.DataCenterRef) volumePath, err = nodeInfo.VSphere.CreateVolume(&VolumeOptions{}, nodeInfo.DataCenterRef)
if err != nil { if err != nil {
return return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment