Let gofmt 1.10.4 rewrite service_test.go.
NOTE: This differs against what 1.11 would do, but matches our current Travis CI configuration.pull/3210/head
parent
dc6d1bab8d
commit
687b62cfe7
|
@ -258,30 +258,30 @@ func TestOptionallyHttpsFormattedUrlString(t *testing.T) {
|
|||
expectedIsHttpSchemedURL bool
|
||||
}{
|
||||
{
|
||||
description: "no https for http schemed with no https option",
|
||||
bareUrlString: "http://192.168.99.100:30563",
|
||||
https: false,
|
||||
description: "no https for http schemed with no https option",
|
||||
bareUrlString: "http://192.168.99.100:30563",
|
||||
https: false,
|
||||
expectedHttpsFormattedUrlString: "http://192.168.99.100:30563",
|
||||
expectedIsHttpSchemedURL: true,
|
||||
},
|
||||
{
|
||||
description: "no https for non-http schemed with no https option",
|
||||
bareUrlString: "xyz.http.myservice:30563",
|
||||
https: false,
|
||||
description: "no https for non-http schemed with no https option",
|
||||
bareUrlString: "xyz.http.myservice:30563",
|
||||
https: false,
|
||||
expectedHttpsFormattedUrlString: "xyz.http.myservice:30563",
|
||||
expectedIsHttpSchemedURL: false,
|
||||
},
|
||||
{
|
||||
description: "https for http schemed with https option",
|
||||
bareUrlString: "http://192.168.99.100:30563",
|
||||
https: true,
|
||||
description: "https for http schemed with https option",
|
||||
bareUrlString: "http://192.168.99.100:30563",
|
||||
https: true,
|
||||
expectedHttpsFormattedUrlString: "https://192.168.99.100:30563",
|
||||
expectedIsHttpSchemedURL: true,
|
||||
},
|
||||
{
|
||||
description: "no https for non-http schemed with https option and http substring",
|
||||
bareUrlString: "xyz.http.myservice:30563",
|
||||
https: true,
|
||||
description: "no https for non-http schemed with https option and http substring",
|
||||
bareUrlString: "xyz.http.myservice:30563",
|
||||
https: true,
|
||||
expectedHttpsFormattedUrlString: "xyz.http.myservice:30563",
|
||||
expectedIsHttpSchemedURL: false,
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue