Skip to content

Commit 21b8494

Browse files
authored
chore: fix typos (#1462)
1 parent 2dccc34 commit 21b8494

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

internal/namespaces/registry/v1/custom_docker_helper_test.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -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\nscw registry docker-helper \"$@\"\n", string(striptContent))
29+
assert.Equal(t, "#!/bin/sh\nscw 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\nPROFILE_NAME=\"profile01\"\nif [[ ! -z \"$SCW_PROFILE\" ]]\nthen \n\tPROFILE_NAME=\"$SCW_PROFILE\"\nfi\nscw --profile $PROFILE_NAME registry docker-helper \"$@\"\n", string(striptContent))
55+
assert.Equal(t, "#!/bin/sh\nPROFILE_NAME=\"profile01\"\nif [[ ! -z \"$SCW_PROFILE\" ]]\nthen \n\tPROFILE_NAME=\"$SCW_PROFILE\"\nfi\nscw --profile $PROFILE_NAME registry docker-helper \"$@\"\n", string(scriptContent))
5656
},
5757
AfterFunc: nil,
5858
TmpHomeDir: true,

0 commit comments

Comments
 (0)