This job view page is being replaced by Spyglass soon. Check out the new job view.
PRdvonthenen: Fix failing go test in connection_test.go
ResultFAILURE
Tests 0 failed / 0 succeeded
Started2019-11-06 17:52
Elapsed1m48s
Revisionf8c7d5d947e956c4a35adcd2da59a1cb702ffae5
Refs 273

No Test Failures!


Error lines from build-log.txt

... skipping 487 lines ...
ok  	k8s.io/cloud-provider-vsphere/pkg/cli	0.323s
=== RUN   TestInstance
--- PASS: TestInstance (0.13s)
=== RUN   TestInvalidInstance
--- PASS: TestInvalidInstance (0.10s)
=== RUN   TestRegUnregNode
2019/11/06 17:54:01 http: TLS handshake error from 127.0.0.1:53076: write tcp 127.0.0.1:45515->127.0.0.1:53076: use of closed network connection
--- PASS: TestRegUnregNode (0.11s)
=== RUN   TestDiscoverNodeByName
--- PASS: TestDiscoverNodeByName (0.16s)
=== RUN   TestExport
--- PASS: TestExport (0.12s)
=== RUN   TestReturnIPsFromSpecificFamily
... skipping 37 lines ...
    vsphere_test.go:480: Executing Testcase: SecretName and SecretNamespace with Username missing in new configuration
    vsphere_test.go:480: Executing Testcase: virtual centers with a thumbprint
    vsphere_test.go:480: Executing Testcase: Multiple virtual centers with different thumbprints
    vsphere_test.go:480: Executing Testcase: Multiple virtual centers use the global CA cert
=== RUN   TestZones
--- PASS: TestZones (0.36s)
    zones_test.go:215: no tags: expected error=vSphere region category k8s-region does not match any tags for mo: HostSystem:host-20
    zones_test.go:215: no zone tag: expected error=vSphere zone category k8s-zone does not match any tags for mo: HostSystem:host-20
    zones_test.go:221: zone=cloudprovider.Zone{FailureDomain:"k8s-zone-US-CA1", Region:"k8s-region-US"}
    zones_test.go:215: host tags removed: expected error=vSphere region category k8s-region does not match any tags for mo: HostSystem:host-20
    zones_test.go:221: zone=cloudprovider.Zone{FailureDomain:"k8s-zone-US-CA1", Region:"k8s-region-US"}
PASS
ok  	k8s.io/cloud-provider-vsphere/pkg/cloudprovider/vsphere	1.351s
=== RUN   TestGRPCServerNodes
--- PASS: TestGRPCServerNodes (0.02s)
=== RUN   TestGRPCServerVersion
... skipping 14 lines ...
ok  	k8s.io/cloud-provider-vsphere/pkg/common/config	0.024s
# k8s.io/cloud-provider-vsphere/pkg/common/vclib_test [k8s.io/cloud-provider-vsphere/pkg/common/vclib.test]
pkg/common/vclib/connection_test.go:177:3: mixture of field:value and value initializers
=== RUN   TestListAllVcPairs
--- PASS: TestListAllVcPairs (0.09s)
=== RUN   TestWhichVCandDCByNodeIdByUUID
2019/11/06 17:54:09 http: TLS handshake error from 127.0.0.1:57956: read tcp 127.0.0.1:39099->127.0.0.1:57956: use of closed network connection
2019/11/06 17:54:09 http: TLS handshake error from 127.0.0.1:57958: read tcp 127.0.0.1:39099->127.0.0.1:57958: use of closed network connection
--- PASS: TestWhichVCandDCByNodeIdByUUID (0.08s)
=== RUN   TestWhichVCandDCByNodeIdByName
--- PASS: TestWhichVCandDCByNodeIdByName (0.05s)
=== RUN   TestWhichVCandDCByFCDId
--- PASS: TestWhichVCandDCByFCDId (0.11s)
=== RUN   TestWhichVCandDCByZoneSingleDC
... skipping 11 lines ...
    credentialmanager_test.go:225: Retrieving credentials for server 0.0.0.0
    credentialmanager_test.go:239: Deleting secret: &Secret{ObjectMeta:k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta{Name:vsconf,GenerateName:,Namespace:kube-system,SelfLink:,UID:,ResourceVersion:,Generation:0,CreationTimestamp:0001-01-01 00:00:00 +0000 UTC,DeletionTimestamp:<nil>,DeletionGracePeriodSeconds:nil,Labels:map[string]string{},Annotations:map[string]string{},OwnerReferences:[],Finalizers:[],ClusterName:,Initializers:nil,ManagedFields:[],},Data:map[string][]byte{0.0.0.0.password: [112 97 115 115 119 111 114 100],0.0.0.0.username: [117 115 101 114],},Type:,StringData:map[string]string{},}
    credentialmanager_test.go:225: Retrieving credentials for server 0.0.0.0
    credentialmanager_test.go:212: Executing Testcase: Add secret and get credentials
    credentialmanager_test.go:217: Adding secret: &Secret{ObjectMeta:k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta{Name:vsconf,GenerateName:,Namespace:kube-system,SelfLink:,UID:,ResourceVersion:,Generation:0,CreationTimestamp:0001-01-01 00:00:00 +0000 UTC,DeletionTimestamp:<nil>,DeletionGracePeriodSeconds:nil,Labels:map[string]string{},Annotations:map[string]string{},OwnerReferences:[],Finalizers:[],ClusterName:,Initializers:nil,ManagedFields:[],},Data:map[string][]byte{0.0.0.0.password: [112 97 115 115 119 111 114 100],0.0.0.0.username: [117 115 101 114],},Type:,StringData:map[string]string{},}
    credentialmanager_test.go:225: Retrieving credentials for server 0.0.0.0
    credentialmanager_test.go:212: Executing Testcase: Getcredentials should fail by not adding at secret at first time
    credentialmanager_test.go:225: Retrieving credentials for server 0.0.0.0
    credentialmanager_test.go:212: Executing Testcase: GetCredential should fail to get credentials from empty secrets
    credentialmanager_test.go:217: Adding secret: &Secret{ObjectMeta:k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta{Name:vsconf,GenerateName:,Namespace:kube-system,SelfLink:,UID:,ResourceVersion:,Generation:0,CreationTimestamp:0001-01-01 00:00:00 +0000 UTC,DeletionTimestamp:<nil>,DeletionGracePeriodSeconds:nil,Labels:map[string]string{},Annotations:map[string]string{},OwnerReferences:[],Finalizers:[],ClusterName:,Initializers:nil,ManagedFields:[],},Data:map[string][]byte{},Type:,StringData:map[string]string{},}
    credentialmanager_test.go:225: Retrieving credentials for server 0.0.0.0
    credentialmanager_test.go:212: Executing Testcase: GetCredential should fail to get credentials for invalid server
    credentialmanager_test.go:217: Adding secret: &Secret{ObjectMeta:k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta{Name:vsconf,GenerateName:,Namespace:kube-system,SelfLink:,UID:,ResourceVersion:,Generation:0,CreationTimestamp:0001-01-01 00:00:00 +0000 UTC,DeletionTimestamp:<nil>,DeletionGracePeriodSeconds:nil,Labels:map[string]string{},Annotations:map[string]string{},OwnerReferences:[],Finalizers:[],ClusterName:,Initializers:nil,ManagedFields:[],},Data:map[string][]byte{0.0.0.0.password: [112 97 115 115 119 111 114 100],0.0.0.0.username: [117 115 101 114],},Type:,StringData:map[string]string{},}
    credentialmanager_test.go:225: Retrieving credentials for server 1.1.1.1
    credentialmanager_test.go:212: Executing Testcase: GetCredential for multi-vc
    credentialmanager_test.go:217: Adding secret: &Secret{ObjectMeta:k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta{Name:vsconf,GenerateName:,Namespace:kube-system,SelfLink:,UID:,ResourceVersion:,Generation:0,CreationTimestamp:0001-01-01 00:00:00 +0000 UTC,DeletionTimestamp:<nil>,DeletionGracePeriodSeconds:nil,Labels:map[string]string{},Annotations:map[string]string{},OwnerReferences:[],Finalizers:[],ClusterName:,Initializers:nil,ManagedFields:[],},Data:map[string][]byte{0.0.0.0.password: [112 97 115 115 119 111 114 100],0.0.0.0.username: [117 115 101 114],0.0.1.1.password: [112 97 115 115 119 111 114 100 49],0.0.1.1.username: [117 115 101 114 49],},Type:,StringData:map[string]string{},}
    credentialmanager_test.go:225: Retrieving credentials for server 0.0.1.1
=== RUN   TestParseSecretConfig
... skipping 2 lines ...
    credentialmanager_test.go:328: Executing Testcase: Invalid username key with valid password key
    credentialmanager_test.go:328: Executing Testcase: Missing username
    credentialmanager_test.go:328: Executing Testcase: Missing password
    credentialmanager_test.go:328: Executing Testcase: IP with unknown key
PASS
ok  	k8s.io/cloud-provider-vsphere/pkg/common/credentialmanager	0.037s
FAIL	k8s.io/cloud-provider-vsphere/pkg/common/vclib [build failed]
make: *** [Makefile:209: unit-test] Error 2