Skip to content

Commit 7a8bbf6

Browse files
committed
lint
1 parent 123b830 commit 7a8bbf6

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

internal/namespaces/container/v1beta1/custom_container_test.go

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,16 @@ func Test_UpdateContainer(t *testing.T) {
122122
),
123123
),
124124
core.BeforeFuncCombine(
125-
testhelpers.StoreImageInMeta("RegistryImageNginx28", "RegistryNamespace", "nginx-1-28-0-alpine"),
126-
testhelpers.StoreImageInMeta("RegistryImageNginx29", "RegistryNamespace", "nginx-1-29-2-alpine"),
125+
testhelpers.StoreImageInMeta(
126+
"RegistryImageNginx28",
127+
"RegistryNamespace",
128+
"nginx-1-28-0-alpine",
129+
),
130+
testhelpers.StoreImageInMeta(
131+
"RegistryImageNginx29",
132+
"RegistryNamespace",
133+
"nginx-1-29-2-alpine",
134+
),
127135
),
128136
createNamespace("ContainerNamespace"),
129137
createContainerWithImage("Container", "RegistryImageNginx28"),

internal/testhelpers/helpers_registry.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ func StoreImageInMeta(metaKey, namespaceMetaKey, imageName string) core.BeforeFu
2525
return func(ctx *core.BeforeFuncCtx) error {
2626
namespaceID := ctx.Meta.Render(fmt.Sprintf("{{ .%s.ID }}", namespaceMetaKey))
2727

28-
return core.ExecStoreBeforeCmd(metaKey, fmt.Sprintf("scw registry image list namespace-id=%s name=%s", namespaceID, imageName))(ctx)
28+
return core.ExecStoreBeforeCmd(
29+
metaKey,
30+
fmt.Sprintf("scw registry image list namespace-id=%s name=%s", namespaceID, imageName),
31+
)(
32+
ctx,
33+
)
2934
}
3035
}

0 commit comments

Comments
 (0)