@@ -64,7 +64,7 @@ func TestPullDeckhousePlatform_MkdirError(t *testing.T) {
6464 tagsToMirror := []string {"v1.0.0" }
6565 client := mock .NewRegistryClientMock (t )
6666
67- err := PullDeckhousePlatform (pullParams , tagsToMirror , client )
67+ err := PullDeckhousePlatform (pullParams , [] string {}, tagsToMirror , client )
6868 require .Error (t , err )
6969 require .Contains (t , err .Error (), "Create OCI Image Layouts" )
7070}
@@ -77,7 +77,7 @@ func TestPullDeckhousePlatform_ResolveTagsError(t *testing.T) {
7777 tagsToMirror := []string {"v1.0.0" }
7878 client := mock .NewRegistryClientMock (t )
7979
80- err := PullDeckhousePlatform (pullParams , tagsToMirror , client )
80+ err := PullDeckhousePlatform (pullParams , [] string {}, tagsToMirror , client )
8181 require .Error (t , err )
8282 require .Contains (t , err .Error (), "Resolve images tags to digests" )
8383}
@@ -125,7 +125,7 @@ func TestPullDeckhousePlatform_PackError(t *testing.T) {
125125 tagsToMirror := []string {"v1.0.0" }
126126 client := mock .NewRegistryClientMock (t )
127127
128- err := PullDeckhousePlatform (pullParams , tagsToMirror , client )
128+ err := PullDeckhousePlatform (pullParams , [] string {}, tagsToMirror , client )
129129 require .Error (t , err )
130130 // The error will be from resolve tags first, but pack error would occur later
131131 // For now, just verify it fails
@@ -139,7 +139,7 @@ func TestPullDeckhousePlatform_WithDeckhouseTag(t *testing.T) {
139139 tagsToMirror := []string {"v1.0.0" }
140140 client := mock .NewRegistryClientMock (t )
141141
142- err := PullDeckhousePlatform (pullParams , tagsToMirror , client )
142+ err := PullDeckhousePlatform (pullParams , [] string {}, tagsToMirror , client )
143143 // Should succeed or fail based on registry availability
144144 // The important thing is that it doesn't fail due to tag-specific logic
145145 if err != nil {
@@ -153,7 +153,7 @@ func TestPullDeckhousePlatform_EmptyTagsToMirror(t *testing.T) {
153153 tagsToMirror := []string {}
154154 client := mock .NewRegistryClientMock (t )
155155
156- err := PullDeckhousePlatform (pullParams , tagsToMirror , client )
156+ err := PullDeckhousePlatform (pullParams , [] string {}, tagsToMirror , client )
157157 // Should fail due to registry issues, but not due to empty tags
158158 require .Error (t , err )
159159}
@@ -164,7 +164,7 @@ func TestPullDeckhousePlatform_LoggerCalls(t *testing.T) {
164164 tagsToMirror := []string {"v1.0.0" }
165165 client := mock .NewRegistryClientMock (t )
166166
167- _ = PullDeckhousePlatform (pullParams , tagsToMirror , client )
167+ _ = PullDeckhousePlatform (pullParams , [] string {}, tagsToMirror , client )
168168
169169 // Check that expected logging occurred - adjust expectations based on actual flow
170170 hasCreateLayoutsLog := false
@@ -186,7 +186,7 @@ func TestPullDeckhousePlatform_WorkingDirectoryCleanup(t *testing.T) {
186186 // Track if working directory is used
187187 platformDir := filepath .Join (pullParams .WorkingDir , "platform" )
188188
189- err := PullDeckhousePlatform (pullParams , tagsToMirror , client )
189+ err := PullDeckhousePlatform (pullParams , [] string {}, tagsToMirror , client )
190190
191191 // The platform directory should be created and then cleaned up during execution
192192 // Since the function fails early, check that it was attempted
@@ -208,7 +208,7 @@ func TestPullDeckhousePlatform_RegistryAuth(t *testing.T) {
208208 tagsToMirror := []string {"v1.0.0" }
209209 client := mock .NewRegistryClientMock (t )
210210
211- err := PullDeckhousePlatform (pullParams , tagsToMirror , client )
211+ err := PullDeckhousePlatform (pullParams , [] string {}, tagsToMirror , client )
212212 // Should fail due to registry, but auth should be passed through
213213 require .Error (t , err )
214214}
@@ -221,7 +221,7 @@ func TestPullDeckhousePlatform_InsecureAndTLSSkip(t *testing.T) {
221221 tagsToMirror := []string {"v1.0.0" }
222222 client := mock .NewRegistryClientMock (t )
223223
224- err := PullDeckhousePlatform (pullParams , tagsToMirror , client )
224+ err := PullDeckhousePlatform (pullParams , [] string {}, tagsToMirror , client )
225225 // Should attempt the operation with insecure settings
226226 require .Error (t , err ) // Will fail due to no registry, but should not fail due to TLS
227227}
@@ -233,7 +233,7 @@ func TestPullDeckhousePlatform_BundleChunkSize(t *testing.T) {
233233 tagsToMirror := []string {"v1.0.0" }
234234 client := mock .NewRegistryClientMock (t )
235235
236- err := PullDeckhousePlatform (pullParams , tagsToMirror , client )
236+ err := PullDeckhousePlatform (pullParams , [] string {}, tagsToMirror , client )
237237 // Should use chunked writer when BundleChunkSize > 0
238238 require .Error (t , err ) // Will fail due to registry, but chunking should be attempted
239239}
@@ -247,7 +247,7 @@ func BenchmarkPullDeckhousePlatform(b *testing.B) {
247247
248248 b .ResetTimer ()
249249 for i := 0 ; i < b .N ; i ++ {
250- _ = PullDeckhousePlatform (pullParams , tagsToMirror , client )
250+ _ = PullDeckhousePlatform (pullParams , [] string {}, tagsToMirror , client )
251251 }
252252}
253253
@@ -259,7 +259,7 @@ func TestPullDeckhousePlatform_CodeCoverage_ProcessBlocks(t *testing.T) {
259259 tagsToMirror := []string {"v1.0.0" }
260260 client := mock .NewRegistryClientMock (t )
261261
262- _ = PullDeckhousePlatform (pullParams , tagsToMirror , client )
262+ _ = PullDeckhousePlatform (pullParams , [] string {}, tagsToMirror , client )
263263
264264 // Since the function fails at resolve tags, Process blocks won't be reached
265265 // This test verifies the Process logging would work if we got that far
@@ -275,7 +275,7 @@ func TestPullDeckhousePlatform_CodeCoverage_TagPropagation(t *testing.T) {
275275 tagsToMirror := []string {"v1.0.0" }
276276 client := mock .NewRegistryClientMock (t )
277277
278- err := PullDeckhousePlatform (pullParams , tagsToMirror , client )
278+ err := PullDeckhousePlatform (pullParams , [] string {}, tagsToMirror , client )
279279 // Should succeed or fail, but tag propagation logic should be exercised
280280 require .NotNil (t , err ) // Will fail due to registry, but logic should run
281281}
@@ -288,7 +288,7 @@ func TestPullDeckhousePlatform_CodeCoverage_ManifestGeneration(t *testing.T) {
288288 tagsToMirror := []string {"v1.0.0" }
289289 client := mock .NewRegistryClientMock (t )
290290
291- err := PullDeckhousePlatform (pullParams , tagsToMirror , client )
291+ err := PullDeckhousePlatform (pullParams , [] string {}, tagsToMirror , client )
292292 // Should succeed or fail, but manifest generation should be attempted
293293 require .NotNil (t , err ) // Will fail due to registry, but manifest generation should be attempted
294294}
0 commit comments