Download this file
| 1 | package equipotest |
| 2 | |
| 3 | import ( |
| 4 | "strings" |
| 5 | "testing" |
| 6 | |
| 7 | "amadan.net/oficina/equipo/internal/equipo" |
| 8 | ) |
| 9 | |
| 10 | func TestUnverifiedClaudeHasNoAcknowledgementBypass(t *testing.T) { |
| 11 | f := connectionStore(t) |
| 12 | f.reports[0].ProviderVersion = "unverified-version" |
| 13 | executionMust(t, f.s.ReportConnections(connectionContext, f.principal, f.reports)) |
| 14 | server, c := taskPageServer(t, f, false) |
| 15 | body := taskGet(t, c, server.URL, "/connections", 200) |
| 16 | if strings.Contains(body, "/connections/"+f.ids["claude"]+"/acknowledge-unconfined") { |
| 17 | t.Fatal("Claude offered forbidden acknowledgement") |
| 18 | } |
| 19 | if !strings.Contains(body, equipo.RunnerText("isolation.unverified")) { |
| 20 | t.Fatal("missing cannot-run state") |
| 21 | } |
| 22 | } |
| 23 | |