-
Notifications
You must be signed in to change notification settings - Fork 314
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d568c4a
commit bfe5061
Showing
15 changed files
with
242 additions
and
10 deletions.
There are no files selected for viewing
5 changes: 3 additions & 2 deletions
5
libsql-server/tests/cluster/snapshots/tests__cluster__create_namespace.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
--- | ||
source: sqld/tests/cluster/mod.rs | ||
source: libsql-server/tests/cluster/mod.rs | ||
expression: e.to_string() | ||
snapshot_kind: text | ||
--- | ||
Hrana: `api error: `{"error":"Namespace `foo` doesn't exist"}`` | ||
Hrana: `api error: `status=404 Not Found, body={"error":"Namespace `foo` doesn't exist"}`` |
3 changes: 2 additions & 1 deletion
3
...ql-server/tests/cluster/snapshots/tests__cluster__replication__replica_lazy_creation.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
--- | ||
source: libsql-server/tests/cluster/replication.rs | ||
expression: "conn.execute(\"create table test (x)\", ()).await.unwrap_err()" | ||
snapshot_kind: text | ||
--- | ||
Hrana( | ||
Api( | ||
"{\"error\":\"Replicator error: Requested namespace doesn't exist\"}", | ||
"status=404 Not Found, body={\"error\":\"Replicator error: Requested namespace doesn't exist\"}", | ||
), | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
...ests/hrana/snapshots/tests__hrana__batch__server_restart_query_execute_invalid_baton.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
source: libsql-server/tests/hrana/batch.rs | ||
expression: err | ||
snapshot_kind: text | ||
--- | ||
Hrana: `api error: `status=400 Bad Request, body=Received an invalid baton`` |
6 changes: 6 additions & 0 deletions
6
libsql-server/tests/hrana/snapshots/tests__hrana__batch__server_restart_timeout.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
source: libsql-server/tests/hrana/batch.rs | ||
expression: err | ||
snapshot_kind: text | ||
--- | ||
Hrana: `api error: `status=400 Bad Request, body={"message":"The stream has expired due to inactivity","code":"STREAM_EXPIRED"}`` |
6 changes: 6 additions & 0 deletions
6
...rana/snapshots/tests__hrana__batch__server_restart_txn_execute_execute_invalid_baton.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
source: libsql-server/tests/hrana/batch.rs | ||
expression: err | ||
snapshot_kind: text | ||
--- | ||
Hrana: `api error: `status=400 Bad Request, body=Received an invalid baton`` |
6 changes: 6 additions & 0 deletions
6
.../hrana/snapshots/tests__hrana__batch__server_restart_txn_execute_query_invalid_baton.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
source: libsql-server/tests/hrana/batch.rs | ||
expression: err | ||
snapshot_kind: text | ||
--- | ||
Hrana: `api error: `status=400 Bad Request, body=Received an invalid baton`` |
6 changes: 6 additions & 0 deletions
6
.../hrana/snapshots/tests__hrana__batch__server_restart_txn_query_execute_invalid_baton.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
source: libsql-server/tests/hrana/batch.rs | ||
expression: err | ||
snapshot_kind: text | ||
--- | ||
Hrana: `api error: `status=400 Bad Request, body=Received an invalid baton`` |
3 changes: 2 additions & 1 deletion
3
...r/tests/namespaces/snapshots/tests__namespaces__shared_schema__check_migration_perms.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
--- | ||
source: libsql-server/tests/namespaces/shared_schema.rs | ||
expression: "conn.execute(\"create table test (x)\", ()).await.unwrap_err()" | ||
snapshot_kind: text | ||
--- | ||
Hrana( | ||
Api( | ||
"{\"error\":\"Authorization forbidden: Current session doesn't not have Write permission to namespace schema\"}", | ||
"status=403 Forbidden, body={\"error\":\"Authorization forbidden: Current session doesn't not have Write permission to namespace schema\"}", | ||
), | ||
) |
3 changes: 2 additions & 1 deletion
3
libsql-server/tests/namespaces/snapshots/tests__namespaces__shared_schema__disable_ddl.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
--- | ||
source: libsql-server/tests/namespaces/shared_schema.rs | ||
expression: "conn.execute(\"create table test (x)\", ()).await.unwrap_err()" | ||
snapshot_kind: text | ||
--- | ||
Hrana( | ||
Api( | ||
"{\"error\":\"Authorization forbidden: DDL statements not permitted on namespace ns1\"}", | ||
"status=403 Forbidden, body={\"error\":\"Authorization forbidden: DDL statements not permitted on namespace ns1\"}", | ||
), | ||
) |
3 changes: 2 additions & 1 deletion
3
libsql-server/tests/standalone/snapshots/tests__standalone__attach__attach_auth-2.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
--- | ||
source: libsql-server/tests/standalone/attach.rs | ||
expression: "txn.execute(\"ATTACH DATABASE bar as bar\", ()).await.unwrap_err()" | ||
snapshot_kind: text | ||
--- | ||
Hrana( | ||
Api( | ||
"{\"error\":\"Authorization forbidden: Current session doesn't not have AttachRead permission to namespace bar\"}", | ||
"status=403 Forbidden, body={\"error\":\"Authorization forbidden: Current session doesn't not have AttachRead permission to namespace bar\"}", | ||
), | ||
) |
10 changes: 10 additions & 0 deletions
10
libsql-server/tests/standalone/snapshots/tests__standalone__attach__attach_auth-3.snap.new
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
source: libsql-server/tests/standalone/attach.rs | ||
assertion_line: 182 | ||
expression: "bar_conn.execute(\"ATTACH foo as foo\", ()).await.unwrap_err()" | ||
--- | ||
Hrana( | ||
Api( | ||
"status=403 Forbidden, body={\"error\":\"Authorization forbidden: Namespace `foo` doesn't allow attach\"}", | ||
), | ||
) |
3 changes: 2 additions & 1 deletion
3
libsql-server/tests/standalone/snapshots/tests__standalone__attach__attach_auth.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
--- | ||
source: libsql-server/tests/standalone/attach.rs | ||
expression: "bar_conn.execute(\"ATTACH foo as foo\", ()).await.unwrap_err()" | ||
snapshot_kind: text | ||
--- | ||
Hrana( | ||
Api( | ||
"{\"error\":\"Authorization forbidden: Current session doesn't not have AttachRead permission to namespace foo\"}", | ||
"status=403 Forbidden, body={\"error\":\"Authorization forbidden: Current session doesn't not have AttachRead permission to namespace foo\"}", | ||
), | ||
) |
3 changes: 2 additions & 1 deletion
3
libsql-server/tests/standalone/snapshots/tests__standalone__attach__attach_no_auth.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
--- | ||
source: libsql-server/tests/standalone/attach.rs | ||
expression: "bar_conn.execute(\"ATTACH foo as foo\", ()).await.unwrap_err()" | ||
snapshot_kind: text | ||
--- | ||
Hrana( | ||
Api( | ||
"{\"error\":\"Authorization forbidden: Namespace `foo` doesn't allow attach\"}", | ||
"status=403 Forbidden, body={\"error\":\"Authorization forbidden: Namespace `foo` doesn't allow attach\"}", | ||
), | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters