detached f97fa3a

test(app): drop sandbox-only broker tests

commit
f97fa3a509bd469d93f4224260d4e37826cff244
author
brice · · 2026-09-23 14:48 UTC
parent
3b243bf
signature
GPG VerifiedCD88F9E564E0102646FB6077A1A07C7C7C3E349D · arch-gpg Verified for the committer email
2 files · +0 -27
M internal/app/broker_production_test.go +0 -16
@@ -11,22 +11,6 @@ import (
1111 "github.com/stretchr/testify/require"
1212 )
1313
14-func TestProductionBrokerHiddenCommandsRejectSandboxOptions(t *testing.T) {
15- serve, err := parseArgs([]string{productionBrokerServeCommand})
16- require.NoError(t, err)
17- require.Equal(t, kindProductionBrokerServe, serve.kind)
18- require.True(t, serve.brokerServe.production)
19-
20- launcher, err := parseArgs([]string{productionBrokerLauncherCommand})
21- require.NoError(t, err)
22- require.Equal(t, kindProductionBrokerLauncher, launcher.kind)
23-
24- for _, name := range []string{productionBrokerServeCommand, productionBrokerLauncherCommand} {
25- _, err = parseArgs([]string{name, "--offline-root", t.TempDir()})
26- require.Error(t, err)
27- }
28-}
29-
3014 func TestEnsureProductionBrokerConfigCreatesPrivateEmptyBootstrapWithoutReplacingExisting(t *testing.T) {
3115 configHome := t.TempDir()
3216 t.Setenv("XDG_CONFIG_HOME", configHome)
@@ -11,22 +11,6 @@ import (
11 "github.com/stretchr/testify/require"11 "github.com/stretchr/testify/require"
12 )12 )
13 13
14-func TestProductionBrokerHiddenCommandsRejectSandboxOptions(t *testing.T) {
15- serve, err := parseArgs([]string{productionBrokerServeCommand})
16- require.NoError(t, err)
17- require.Equal(t, kindProductionBrokerServe, serve.kind)
18- require.True(t, serve.brokerServe.production)
19-
20- launcher, err := parseArgs([]string{productionBrokerLauncherCommand})
21- require.NoError(t, err)
22- require.Equal(t, kindProductionBrokerLauncher, launcher.kind)
23-
24- for _, name := range []string{productionBrokerServeCommand, productionBrokerLauncherCommand} {
25- _, err = parseArgs([]string{name, "--offline-root", t.TempDir()})
26- require.Error(t, err)
27- }
28-}
29-
30 func TestEnsureProductionBrokerConfigCreatesPrivateEmptyBootstrapWithoutReplacingExisting(t *testing.T) {14 func TestEnsureProductionBrokerConfigCreatesPrivateEmptyBootstrapWithoutReplacingExisting(t *testing.T) {
31 configHome := t.TempDir()15 configHome := t.TempDir()
32 t.Setenv("XDG_CONFIG_HOME", configHome)16 t.Setenv("XDG_CONFIG_HOME", configHome)
M internal/app/ui_driver_test.go +0 -11
@@ -109,17 +109,6 @@ func TestParseArgsUIOptionsAreAttachOnly(t *testing.T) {
109109 require.Error(t, err)
110110 }
111111
112-// TestOfflineClientHarnessRejectsPickerForTheTerminalHarness pins the sandbox
113-// option boundary: --picker is a UI-driver start, never a terminal-harness one.
114-func TestOfflineClientHarnessRejectsPickerForTheTerminalHarness(t *testing.T) {
115- _, err := parseArgs([]string{brokerClientCommand, "--offline-root", "/tmp/offline", "--picker"})
116- require.Error(t, err)
117- command, err := parseArgs([]string{brokerClientCommand, "--offline-root", "/tmp/offline", "--harness", offlineClientUIDriver, "--picker"})
118- require.NoError(t, err)
119- require.Equal(t, kindBrokerClient, command.kind)
120- require.True(t, command.brokerClient.picker)
121-}
122-
123112 // TestInteractiveObservedCompositionUsesTheBrokerConnector pins that the
124113 // interactive observed path and the headless driver keep no daemon dialer, no
125114 // remote factory, and no launch configuration: both compose the shared broker
@@ -109,17 +109,6 @@ func TestParseArgsUIOptionsAreAttachOnly(t *testing.T) {
109 require.Error(t, err)109 require.Error(t, err)
110 }110 }
111 111
112-// TestOfflineClientHarnessRejectsPickerForTheTerminalHarness pins the sandbox
113-// option boundary: --picker is a UI-driver start, never a terminal-harness one.
114-func TestOfflineClientHarnessRejectsPickerForTheTerminalHarness(t *testing.T) {
115- _, err := parseArgs([]string{brokerClientCommand, "--offline-root", "/tmp/offline", "--picker"})
116- require.Error(t, err)
117- command, err := parseArgs([]string{brokerClientCommand, "--offline-root", "/tmp/offline", "--harness", offlineClientUIDriver, "--picker"})
118- require.NoError(t, err)
119- require.Equal(t, kindBrokerClient, command.kind)
120- require.True(t, command.brokerClient.picker)
121-}
122-
123 // TestInteractiveObservedCompositionUsesTheBrokerConnector pins that the112 // TestInteractiveObservedCompositionUsesTheBrokerConnector pins that the
124 // interactive observed path and the headless driver keep no daemon dialer, no113 // interactive observed path and the headless driver keep no daemon dialer, no
125 // remote factory, and no launch configuration: both compose the shared broker114 // remote factory, and no launch configuration: both compose the shared broker

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 12

Tags 11

↑↓ moveenter openesc close