fix: simplify dashboard and disable unauthorized actions
hermetic-ci / test (push) Canceled after 0s

This commit is contained in:
proxyctl coordinator
2026-08-30 15:49:04 +08:00
parent 416425a9bf
commit 30f7206b14
20 changed files with 182 additions and 221 deletions
+2 -2
View File
@@ -97,8 +97,8 @@ func TestDefaultInvocationLoadsPersistedActiveProfile(t *testing.T) {
if err := runWithSystemTargets(nil, strings.NewReader("q"), &output, []target.Target{}); err != nil {
t.Fatalf("run proxyctl: %v", err)
}
if !strings.Contains(output.String(), "Active Profile: office") {
t.Fatalf("default TUI output missing Active Profile: %q", output.String())
if !strings.Contains(output.String(), "Profile: office") {
t.Fatalf("default TUI output missing Profile: %q", output.String())
}
}
+5 -7
View File
@@ -247,19 +247,17 @@ func TestCommandsRunAsRealProcessesInsideIsolatedUserState(t *testing.T) {
}
defaultView := string(defaultOutput)
for _, expected := range []string{
"proxyctl Operations Console",
"Active Profile: No Active Profile",
"Targets: ● Enabled 0 ○ Disabled 1 ◇ External 0 ! Drifted 1",
"proxyctl Profile: No Active Profile",
"▶ Targets [focused]",
"> ○ Disabled Shell",
"! Drifted Docker daemon",
"Target details",
"State: ○ Disabled",
"Evidence: no recognized Shell proxy configuration detected",
"Tab: focus details",
"○ Disabled",
"no recognized Shell proxy configuration detected",
"Tab: Details",
} {
if !strings.Contains(defaultView, expected) {
t.Errorf("default Operations Console missing %q; output=%q", expected, defaultOutput)
t.Errorf("default dashboard missing %q; output=%q", expected, defaultOutput)
}
}
versionOutput, err := invoke("", "version", "--short")