@@ -24,9 +24,9 @@ func TestRegistryInstallDockerHelperCommand(t *testing.T) {
24
24
Cmd : "scw registry install-docker-helper path={{ .HOME }}" ,
25
25
Check : func (t * testing.T , ctx * core.CheckFuncCtx ) {
26
26
scriptPath := path .Join (ctx .Meta ["HOME" ].(string ), "docker-credential-scw" )
27
- striptContent , err := ioutil .ReadFile (scriptPath )
27
+ scriptContent , err := ioutil .ReadFile (scriptPath )
28
28
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 ))
30
30
stats , err := os .Stat (scriptPath )
31
31
require .NoError (t , err )
32
32
assert .Equal (t , os .FileMode (0755 ), stats .Mode ())
@@ -50,9 +50,9 @@ func TestRegistryInstallDockerHelperCommand(t *testing.T) {
50
50
Cmd : "scw -p profile01 registry install-docker-helper path={{ .HOME }}" ,
51
51
Check : func (t * testing.T , ctx * core.CheckFuncCtx ) {
52
52
scriptPath := path .Join (ctx .Meta ["HOME" ].(string ), "docker-credential-scw" )
53
- striptContent , err := ioutil .ReadFile (scriptPath )
53
+ scriptContent , err := ioutil .ReadFile (scriptPath )
54
54
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 ))
56
56
},
57
57
AfterFunc : nil ,
58
58
TmpHomeDir : true ,
0 commit comments