Assert config load in registry matching tests
- commit
- 53f9355fea28b80be198b716a45e1000a400bd8e
- author
- brice · · 2026-05-10 16:29 UTC
- parent
- 2b371d2
- signature
- GPG Verified
CD88F9E564E0102646FB6077A1A07C7C7C3E349D· arch-gpg Verified for the committer email
1 file · +2 -2
M internal/usecase/config/service_test.go +2 -2
| @@ -2140,7 +2140,7 @@ func TestService_FindRoutesByImage(t *testing.T) { | |||
| 2140 | 2140 | eventBus := mocks.NewMockEventPublisher(t) | |
| 2141 | 2141 | svc := NewService(v, eventBus) | |
| 2142 | 2142 | ctx := testContext() | |
| 2143 | - | _ = svc.Load(ctx) | |
| 2143 | + | require.NoError(t, svc.Load(ctx)) | |
| 2144 | 2144 | ||
| 2145 | 2145 | routes := svc.FindRoutesByImage(ctx, "new-registry.example.com/myapp:latest") | |
| 2146 | 2146 | assert.Len(t, routes, 1) | |
| @@ -2269,7 +2269,7 @@ func TestService_FindAttachmentTargetsByImage(t *testing.T) { | |||
| 2269 | 2269 | eventBus := mocks.NewMockEventPublisher(t) | |
| 2270 | 2270 | svc := NewService(v, eventBus) | |
| 2271 | 2271 | ctx := testContext() | |
| 2272 | - | _ = svc.Load(ctx) | |
| 2272 | + | require.NoError(t, svc.Load(ctx)) | |
| 2273 | 2273 | ||
| 2274 | 2274 | targets := svc.FindAttachmentTargetsByImage(ctx, "new-registry.example.com/postgres:18") | |
| 2275 | 2275 | assert.Equal(t, []string{"backend"}, targets) | |
| @@ -2140,7 +2140,7 @@ func TestService_FindRoutesByImage(t *testing.T) { | |||||
| 2140 | eventBus := mocks.NewMockEventPublisher(t) | 2140 | eventBus := mocks.NewMockEventPublisher(t) | ||
| 2141 | svc := NewService(v, eventBus) | 2141 | svc := NewService(v, eventBus) | ||
| 2142 | ctx := testContext() | 2142 | ctx := testContext() | ||
| 2143 | - | _ = svc.Load(ctx) | 2143 | + | require.NoError(t, svc.Load(ctx)) |
| 2144 | 2144 | ||||
| 2145 | routes := svc.FindRoutesByImage(ctx, "new-registry.example.com/myapp:latest") | 2145 | routes := svc.FindRoutesByImage(ctx, "new-registry.example.com/myapp:latest") | ||
| 2146 | assert.Len(t, routes, 1) | 2146 | assert.Len(t, routes, 1) | ||
| @@ -2269,7 +2269,7 @@ func TestService_FindAttachmentTargetsByImage(t *testing.T) { | |||||
| 2269 | eventBus := mocks.NewMockEventPublisher(t) | 2269 | eventBus := mocks.NewMockEventPublisher(t) | ||
| 2270 | svc := NewService(v, eventBus) | 2270 | svc := NewService(v, eventBus) | ||
| 2271 | ctx := testContext() | 2271 | ctx := testContext() | ||
| 2272 | - | _ = svc.Load(ctx) | 2272 | + | require.NoError(t, svc.Load(ctx)) |
| 2273 | 2273 | ||||
| 2274 | targets := svc.FindAttachmentTargetsByImage(ctx, "new-registry.example.com/postgres:18") | 2274 | targets := svc.FindAttachmentTargetsByImage(ctx, "new-registry.example.com/postgres:18") | ||
| 2275 | assert.Equal(t, []string{"backend"}, targets) | 2275 | assert.Equal(t, []string{"backend"}, targets) | ||