Instrument authentication for e2e tests
- Fix error serialize in the
test-http-apicrate - Add tests to verify authenticated identities
14 files changed
+61
-45
ac550e06
→
c35ab783
modified Cargo.lock
@@ -3898,6 +3898,7 @@ name = "radicle-types"
|
|
|
|
|
|
| + | |
|
|
|
|
|
modified crates/radicle-types/Cargo.toml
@@ -5,6 +5,7 @@ edition = "2021"
|
|
|
|
|
|
| + | |
|
|
|
|
|
modified crates/radicle-types/src/error.rs
@@ -1,3 +1,6 @@
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -108,6 +111,16 @@ impl Serialize for Error {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified crates/test-http-api/src/api.rs
@@ -15,6 +15,7 @@ use radicle::{git, identity};
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -23,8 +24,6 @@ use radicle_types::traits::repo::Repo;
|
|
|
|
|
|
| - | |
| - | |
|
|
|
|
|
deleted crates/test-http-api/src/error.rs
@@ -1,32 +0,0 @@
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
modified crates/test-http-api/src/lib.rs
@@ -7,7 +7,6 @@ use tokio::net::TcpListener;
|
|
|
|
|
|
| - | |
|
|
|
|
|
modified crates/test-http-api/src/main.rs
@@ -30,6 +30,6 @@ fn parse_options() -> Result<api::Options, lexopt::Error> {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
modified playwright.config.ts
@@ -32,7 +32,8 @@ const config: PlaywrightTestConfig = {
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|
modified src/App.svelte
@@ -39,7 +39,10 @@
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified src/lib/auth.ts
@@ -26,7 +26,7 @@ export async function checkAuth() {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified src/lib/invoke.ts
@@ -12,11 +12,14 @@ export async function invoke<T = null>(
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
added tests/e2e/authenticate.spec.ts
@@ -0,0 +1,17 @@
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
modified tests/e2e/repos.spec.ts
@@ -1,4 +1,4 @@
| - | |
| + | |
|
|
|
|
|
modified tests/support/peerManager.ts
@@ -235,6 +235,17 @@ export class RadiclePeer {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|