diff options
author | 2023-10-03 14:59:30 +0100 | |
---|---|---|
committer | 2023-10-03 14:59:30 +0100 | |
commit | 297b6eeaaa136f9166e6f5937b5fca917e12fb5b (patch) | |
tree | 25eb815e775efd35c3ccb0b5b932547caf6107fb /internal/api | |
parent | [chore]: Bump go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp... (diff) | |
download | gotosocial-297b6eeaaa136f9166e6f5937b5fca917e12fb5b.tar.xz |
[chore] internal/ap: add pollable AS types, code reformatting, general niceties (#2248)
Diffstat (limited to 'internal/api')
-rw-r--r-- | internal/api/activitypub/users/inboxpost_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/api/activitypub/users/inboxpost_test.go b/internal/api/activitypub/users/inboxpost_test.go index d26dae513..7660050df 100644 --- a/internal/api/activitypub/users/inboxpost_test.go +++ b/internal/api/activitypub/users/inboxpost_test.go @@ -486,7 +486,7 @@ func (suite *InboxPostTestSuite) TestPostEmptyCreate() { requestingAccount, targetAccount, http.StatusBadRequest, - `{"error":"Bad Request: incoming Activity Create did not have required id property set"}`, + `{"error":"Bad Request: missing ActivityStreams id property"}`, suite.signatureCheck, ) } @@ -511,7 +511,7 @@ func (suite *InboxPostTestSuite) TestPostFromBlockedAccount() { requestingAccount, targetAccount, http.StatusForbidden, - `{"error":"Forbidden"}`, + `{"error":"Forbidden: blocked"}`, suite.signatureCheck, ) } @@ -555,7 +555,7 @@ func (suite *InboxPostTestSuite) TestPostUnauthorized() { requestingAccount, targetAccount, http.StatusUnauthorized, - `{"error":"Unauthorized"}`, + `{"error":"Unauthorized: not authenticated"}`, // Omit signature check middleware. ) } |