@@ -17,7 +17,7 @@ func TestImageLoginCmd(t *testing.T) {
1717 "IMAGE_REPO_HOST=foo.bar" ,
1818 "GCLOUD_KEY_JSON=baz" ,
1919 }
20- testString := `echo ' baz' | docker login --username '_json_key' --password-stdin ' https://foo.bar`
20+ testString := `echo " baz" | docker login --username '_json_key' --password-stdin https://foo.bar`
2121 CliExecTest (t , command , environment , testString , false )
2222
2323 // Test all env
@@ -43,7 +43,7 @@ AWS_REGION: 555
4343AKS_TENANT_ID: 666
4444AKS_SP_APP_ID: 777
4545AKS_SP_PASSWORD: 888
46- Command (not executed): echo ' 222' | docker login --username '111' --password-stdin ' https://foo.bar' `
46+ Command (not executed): echo " 222" | docker login --username '111' --password-stdin https://foo.bar`
4747
4848 CliExecTest (t , command , environment , testString , false )
4949
@@ -56,7 +56,7 @@ Command (not executed): echo '222' | docker login --username '111' --password-st
5656 // Test args
5757 command = "ci image login --image-repo-host foo.bar --gcp-key-json baz --debug"
5858 environment = []string {}
59- testString = `echo ' baz' | docker login --username '_json_key' --password-stdin ' https://foo.bar' `
59+ testString = `echo " baz" | docker login --username '_json_key' --password-stdin https://foo.bar`
6060 CliExecTest (t , command , environment , testString , false )
6161
6262 // Test all args
@@ -83,7 +83,7 @@ AWS_REGION: 555
8383AKS_TENANT_ID: 666
8484AKS_SP_APP_ID: 777
8585AKS_SP_PASSWORD: 888
86- Command (not executed): echo ' 222' | docker login --username '111' --password-stdin ' https://foo.bar' `
86+ Command (not executed): echo " 222" | docker login --username '111' --password-stdin https://foo.bar`
8787 CliExecTest (t , command , environment , testString , false )
8888
8989 // Test args+env merge
@@ -92,7 +92,7 @@ Command (not executed): echo '222' | docker login --username '111' --password-st
9292 "IMAGE_REPO_HOST=bar.bar" ,
9393 "GCLOUD_KEY_JSON=baz" ,
9494 }
95- testString = `echo ' baz' | docker login --username '_json_key' --password-stdin ' https://foo.bar' `
95+ testString = `echo " baz" | docker login --username '_json_key' --password-stdin https://foo.bar`
9696 CliExecTest (t , command , environment , testString , false )
9797
9898 // Change dir back to previous
0 commit comments