@@ -24,9 +24,9 @@ func TestRegistryInstallDockerHelperCommand(t *testing.T) {
2424 Cmd : "scw registry install-docker-helper path={{ .HOME }}" ,
2525 Check : func (t * testing.T , ctx * core.CheckFuncCtx ) {
2626 scriptPath := path .Join (ctx .Meta ["HOME" ].(string ), "docker-credential-scw" )
27- striptContent , err := ioutil .ReadFile (scriptPath )
27+ scriptContent , err := ioutil .ReadFile (scriptPath )
2828 require .NoError (t , err )
29- assert .Equal (t , "#!/bin/sh\n scw registry docker-helper \" $@\" \n " , string (striptContent ))
29+ assert .Equal (t , "#!/bin/sh\n scw registry docker-helper \" $@\" \n " , string (scriptContent ))
3030 stats , err := os .Stat (scriptPath )
3131 require .NoError (t , err )
3232 assert .Equal (t , os .FileMode (0755 ), stats .Mode ())
@@ -50,9 +50,9 @@ func TestRegistryInstallDockerHelperCommand(t *testing.T) {
5050 Cmd : "scw -p profile01 registry install-docker-helper path={{ .HOME }}" ,
5151 Check : func (t * testing.T , ctx * core.CheckFuncCtx ) {
5252 scriptPath := path .Join (ctx .Meta ["HOME" ].(string ), "docker-credential-scw" )
53- striptContent , err := ioutil .ReadFile (scriptPath )
53+ scriptContent , err := ioutil .ReadFile (scriptPath )
5454 require .NoError (t , err )
55- assert .Equal (t , "#!/bin/sh\n PROFILE_NAME=\" profile01\" \n if [[ ! -z \" $SCW_PROFILE\" ]]\n then \n \t PROFILE_NAME=\" $SCW_PROFILE\" \n fi\n scw --profile $PROFILE_NAME registry docker-helper \" $@\" \n " , string (striptContent ))
55+ assert .Equal (t , "#!/bin/sh\n PROFILE_NAME=\" profile01\" \n if [[ ! -z \" $SCW_PROFILE\" ]]\n then \n \t PROFILE_NAME=\" $SCW_PROFILE\" \n fi\n scw --profile $PROFILE_NAME registry docker-helper \" $@\" \n " , string (scriptContent ))
5656 },
5757 AfterFunc : nil ,
5858 TmpHomeDir : true ,
0 commit comments