detached 53f9355

Assert config load in registry matching tests

commit
53f9355fea28b80be198b716a45e1000a400bd8e
author
brice · · 2026-05-10 16:29 UTC
parent
2b371d2
signature
GPG VerifiedCD88F9E564E0102646FB6077A1A07C7C7C3E349D · 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) {
21402140 eventBus := mocks.NewMockEventPublisher(t)
21412141 svc := NewService(v, eventBus)
21422142 ctx := testContext()
2143- _ = svc.Load(ctx)
2143+ require.NoError(t, svc.Load(ctx))
21442144
21452145 routes := svc.FindRoutesByImage(ctx, "new-registry.example.com/myapp:latest")
21462146 assert.Len(t, routes, 1)
@@ -2269,7 +2269,7 @@ func TestService_FindAttachmentTargetsByImage(t *testing.T) {
22692269 eventBus := mocks.NewMockEventPublisher(t)
22702270 svc := NewService(v, eventBus)
22712271 ctx := testContext()
2272- _ = svc.Load(ctx)
2272+ require.NoError(t, svc.Load(ctx))
22732273
22742274 targets := svc.FindAttachmentTargetsByImage(ctx, "new-registry.example.com/postgres:18")
22752275 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)

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 7

Tags 106

↑↓ moveenter openesc close