feat: expand companion platform, device controls, and memoir workflows
ci / verify (push) Canceled after 0s
ci / verify (push) Canceled after 0s
Add customer and operator login, BLE provisioning, device fleet controls, call memory, memoir generation, and refreshed family and maintenance portals. Include API contracts, migrations, firmware sources, tests, assets, and deployment documentation.
This commit is contained in:
@@ -27,6 +27,10 @@ func TestServiceCursorIsolationCleanupAndPresenceExpiry(t *testing.T) {
|
||||
service := NewService(pool)
|
||||
owner := identity.Principal{Issuer: "http://localhost:58180/realms/voice-local", Subject: "00000000-0000-0000-0000-000000000101"}
|
||||
outsider := identity.Principal{Issuer: owner.Issuer, Subject: "00000000-0000-0000-0000-000000000103"}
|
||||
outsideBaseline, err := service.StartingCursor(ctx, outsider)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
resourceIDs := []string{uuid.NewString(), uuid.NewString(), uuid.NewString()}
|
||||
testStarted := time.Now().UTC().Add(-time.Second)
|
||||
defer func() {
|
||||
@@ -51,7 +55,7 @@ func TestServiceCursorIsolationCleanupAndPresenceExpiry(t *testing.T) {
|
||||
t.Fatalf("owner starting cursor=%d want=%d err=%v", cursor, ids[1], err)
|
||||
}
|
||||
outsideCursor, err := service.StartingCursor(ctx, outsider)
|
||||
if err != nil || outsideCursor != 0 {
|
||||
if err != nil || outsideCursor != outsideBaseline {
|
||||
t.Fatalf("outsider starting cursor=%d err=%v", outsideCursor, err)
|
||||
}
|
||||
if err := service.ValidateCursor(ctx, owner, 0); err != nil {
|
||||
@@ -83,7 +87,7 @@ func TestServiceCursorIsolationCleanupAndPresenceExpiry(t *testing.T) {
|
||||
if found != 2 {
|
||||
t.Fatalf("active synthetic events found=%d", found)
|
||||
}
|
||||
outsideItems, err := service.ListAfter(ctx, outsider, 0, 100)
|
||||
outsideItems, err := service.ListAfter(ctx, outsider, outsideBaseline, 100)
|
||||
if err != nil || len(outsideItems) != 0 {
|
||||
t.Fatalf("outsider events=%+v err=%v", outsideItems, err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user