Extract Grammaratur, Dregarnuhr, Geduldh, Mestionora, Ordoschnellic, Schutzaria, Kunstzeal and Seheweit behind compatible application contracts. Include accumulated editor resilience, navigation and theme UX, remote CLI, storage/schema and DR groundwork, tests and design/operations documentation. Verified: uncached full Go suite; go vet ./...; race tests for all eight components; 11 targeted Chromium tests; Node suites; 19 Python CLI tests; reproducible editor build. No push, release tag or deployment in this checkpoint.
22 lines
599 B
Go
22 lines
599 B
Go
package main
|
|
|
|
import (
|
|
"bytes"
|
|
"strings"
|
|
"testing"
|
|
)
|
|
|
|
func TestDRCLIRequiresExplicitOfflineAttestation(t *testing.T) {
|
|
var out bytes.Buffer
|
|
err := runDR([]string{"snapshot", "--data-dir", t.TempDir(), "--output", "/not-used"}, &out)
|
|
if err == nil || !strings.Contains(err.Error(), "writers-stopped") {
|
|
t.Fatalf("unsafe invocation: %v", err)
|
|
}
|
|
if err = runDR([]string{"restore"}, &out); err == nil {
|
|
t.Fatal("missing restore target accepted")
|
|
}
|
|
if err = runDR([]string{"snapshot", "--help"}, &out); err != nil || !strings.Contains(out.String(), "writers-stopped") {
|
|
t.Fatal(err)
|
|
}
|
|
}
|