mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 07:20:13 +00:00
Fix malformed port in vsphere cloud provider test
The port name previously didn't matter on these tests, but is now
actively being checked in go1.12.8 and higher.
3226f2d492
This commit is contained in:
parent
12dbfcbdf3
commit
f713ec89ed
@ -159,7 +159,7 @@ func TestWithValidThumbprint(t *testing.T) {
|
||||
func TestWithInvalidCaCertPath(t *testing.T) {
|
||||
connection := &vclib.VSphereConnection{
|
||||
Hostname: "should-not-matter",
|
||||
Port: "should-not-matter",
|
||||
Port: "27015", // doesn't matter, but has to be a valid port
|
||||
CACert: "invalid-path",
|
||||
}
|
||||
|
||||
@ -172,7 +172,7 @@ func TestWithInvalidCaCertPath(t *testing.T) {
|
||||
func TestInvalidCaCert(t *testing.T) {
|
||||
connection := &vclib.VSphereConnection{
|
||||
Hostname: "should-not-matter",
|
||||
Port: "should-not-matter",
|
||||
Port: "27015", // doesn't matter, but has to be a valid port
|
||||
CACert: fixtures.InvalidCertPath,
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user