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
995 B
Go
22 lines
995 B
Go
package store_test
|
|
|
|
import (
|
|
"encoding/json"
|
|
"testing"
|
|
|
|
"pageswiki/internal/ordoschnellic"
|
|
"pageswiki/internal/store"
|
|
)
|
|
|
|
func TestOrdoschnellicStoreCompatibility(t *testing.T) {
|
|
var notification store.Notification = ordoschnellic.Notification{UUID: "notification", DomainUUID: "domain", RecipientUUID: "owner", Kind: "task.due", Status: "unread", CreatedAtMS: 1234}
|
|
var delivery store.NotificationPushDelivery = ordoschnellic.PushDelivery{Notification: notification.UUID, Attempt: 1}
|
|
if delivery.Notification != notification.UUID || store.ErrNotificationInput != ordoschnellic.ErrNotificationInput || store.NotificationPushEventType != ordoschnellic.PushEventType {
|
|
t.Fatal("legacy identities changed")
|
|
}
|
|
data, err := json.Marshal(notification)
|
|
if err != nil || string(data) != `{"uuid":"notification","domain_uuid":"domain","recipient_uuid":"owner","kind":"task.due","status":"unread","created_at_ms":1234}` {
|
|
t.Fatalf("notification wire contract changed: %s %v", data, err)
|
|
}
|
|
}
|