File tree Expand file tree Collapse file tree 3 files changed +5
-7
lines changed
registry-scanner/pkg/registry Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -21,8 +21,8 @@ import (
21
21
"github.com/stretchr/testify/mock"
22
22
"github.com/stretchr/testify/require"
23
23
24
- "github.com/argoproj-labs/argocd-image-updater/registry-scanner/pkg/log"
25
24
"github.com/argoproj-labs/argocd-image-updater/registry-scanner/pkg/image"
25
+ "github.com/argoproj-labs/argocd-image-updater/registry-scanner/pkg/log"
26
26
"github.com/argoproj-labs/argocd-image-updater/registry-scanner/pkg/options"
27
27
"github.com/argoproj-labs/argocd-image-updater/registry-scanner/pkg/registry/mocks"
28
28
"github.com/argoproj-labs/argocd-image-updater/registry-scanner/pkg/tag"
Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ import (
12
12
13
13
"github.com/stretchr/testify/assert"
14
14
"github.com/stretchr/testify/require"
15
-
16
15
)
17
16
18
17
func TestInferRegistryEndpointFromPrefix (t * testing.T ) {
@@ -426,4 +425,3 @@ func TestIsTransportValid(t *testing.T) {
426
425
assert .False (t , isTransportValid (transport ), "Transport with invalid settings should be invalid" )
427
426
})
428
427
}
429
-
Original file line number Diff line number Diff line change @@ -176,7 +176,7 @@ echo "AWS:mock-token-12345"
176
176
err := os .WriteFile (scriptPath , []byte (scriptContent ), 0755 )
177
177
require .NoError (t , err )
178
178
defer os .Remove (scriptPath )
179
-
179
+
180
180
// Clean up any existing log file
181
181
os .Remove ("/tmp/test_ecr_calls.log" )
182
182
defer os .Remove ("/tmp/test_ecr_calls.log" )
@@ -239,7 +239,7 @@ registries:
239
239
240
240
t .Run ("Concurrent calls with unexpired credentials should not refetch" , func (t * testing.T ) {
241
241
var callCount int32
242
-
242
+
243
243
epYAML := `
244
244
registries:
245
245
- name: Test Registry
@@ -250,15 +250,15 @@ registries:
250
250
`
251
251
epl , err := ParseRegistryConfiguration (epYAML )
252
252
require .NoError (t , err )
253
-
253
+
254
254
err = AddRegistryEndpointFromConfig (epl .Items [0 ])
255
255
require .NoError (t , err )
256
256
ep , err := GetRegistryEndpoint (& image.ContainerImage {RegistryURL : "test.registry.io" })
257
257
require .NoError (t , err )
258
258
259
259
// Set environment variable
260
260
os .Setenv ("TEST_CONCURRENT_CREDS" , "user:pass" )
261
-
261
+
262
262
// First call to set credentials
263
263
err = ep .SetEndpointCredentials (nil )
264
264
require .NoError (t , err )
You can’t perform that action at this time.
0 commit comments