summaryrefslogtreecommitdiff
path: root/src/event/routes/test/token.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/event/routes/test/token.rs')
-rw-r--r--src/event/routes/test/token.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/event/routes/test/token.rs b/src/event/routes/test/token.rs
index d2232a4..a467de5 100644
--- a/src/event/routes/test/token.rs
+++ b/src/event/routes/test/token.rs
@@ -13,12 +13,12 @@ async fn terminates_on_token_expiry() {
let app = fixtures::scratch_app().await;
let channel = fixtures::channel::create(&app, &fixtures::now()).await;
- let sender = fixtures::login::create(&app, &fixtures::now()).await;
+ let sender = fixtures::user::create(&app, &fixtures::now()).await;
let resume_point = fixtures::boot::resume_point(&app).await;
// Subscribe via the endpoint
- let subscriber_creds = fixtures::login::create_with_password(&app, &fixtures::now()).await;
+ let subscriber_creds = fixtures::user::create_with_password(&app, &fixtures::now()).await;
let subscriber =
fixtures::identity::logged_in(&app, &subscriber_creds, &fixtures::ancient()).await;
@@ -60,7 +60,7 @@ async fn terminates_on_logout() {
let app = fixtures::scratch_app().await;
let channel = fixtures::channel::create(&app, &fixtures::now()).await;
- let sender = fixtures::login::create(&app, &fixtures::now()).await;
+ let sender = fixtures::user::create(&app, &fixtures::now()).await;
let resume_point = fixtures::boot::resume_point(&app).await;
// Subscribe via the endpoint
@@ -106,12 +106,12 @@ async fn terminates_on_password_change() {
let app = fixtures::scratch_app().await;
let channel = fixtures::channel::create(&app, &fixtures::now()).await;
- let sender = fixtures::login::create(&app, &fixtures::now()).await;
+ let sender = fixtures::user::create(&app, &fixtures::now()).await;
let resume_point = fixtures::boot::resume_point(&app).await;
// Subscribe via the endpoint
- let creds = fixtures::login::create_with_password(&app, &fixtures::now()).await;
+ let creds = fixtures::user::create_with_password(&app, &fixtures::now()).await;
let cookie = fixtures::cookie::logged_in(&app, &creds, &fixtures::now()).await;
let subscriber = fixtures::identity::from_cookie(&app, &cookie, &fixtures::now()).await;
@@ -127,7 +127,7 @@ async fn terminates_on_password_change() {
// Verify the resulting stream's behaviour
let (_, password) = creds;
- let to = fixtures::login::propose_password();
+ let to = fixtures::user::propose_password();
app.tokens()
.change_password(&subscriber.user, &password, &to, &fixtures::now())
.await