feat(storage): add native PostgreSQL runtime and verified offline application import
Build and publish container images / images (push) Failing after 12m29s
Build and publish container images / images (push) Failing after 12m29s
This commit is contained in:
1 parent
96065d1e89
commit
0ba1dcfef0
243 files changed
+21441
-3090
No files matched your search
@@ -2,6 +2,7 @@ package calendar
|
||||
|
||||
import (
|
||||
"context"
|
||||
"encoding/base64"
|
||||
"errors"
|
||||
"sync"
|
||||
"testing"
|
||||
@@ -9,6 +10,22 @@ import (
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
|
||||
func TestDAVUIDRejectsBinaryFallback(t *testing.T) {
|
||||
for _, raw := range []string{"\xff\xfe", "uid\x00value", "uid\nvalue"} {
|
||||
name := base64.RawURLEncoding.EncodeToString([]byte(raw)) + ".ics"
|
||||
if _, err := DAVUID(Calendar{}, name); !errors.Is(err, ErrMissing) {
|
||||
t.Fatalf("binary UID accepted: %v", err)
|
||||
}
|
||||
}
|
||||
name := "client.ics"
|
||||
if _, err := DAVUID(Calendar{}, name); !errors.Is(err, ErrMissing) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if uid, err := DAVUID(Calendar{DAVNames: map[string]string{"日本語@example.invalid": name}}, name); err != nil || uid != "日本語@example.invalid" {
|
||||
t.Fatal(uid, err)
|
||||
}
|
||||
}
|
||||
|
||||
func TestCalendarDAVIdentityAtomicAndRebuild(t *testing.T) {
|
||||
r, domain, actor, c := fixture(t)
|
||||
ctx := context.Background()
|
||||
|
||||
Reference in new issue
Block a user