Skip to content

Commit 936d97d

Browse files
committed
chore(users): migrate tests
1 parent 7c35f4c commit 936d97d

24 files changed

+455
-8
lines changed

Cargo.lock

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/api/cloud/src/auth.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ impl Auth {
296296
team_ids: team_ids
297297
.iter()
298298
.map(|id| (*id).into())
299-
.collect::<Vec<common::Uuid>>()
299+
.collect::<Vec<_>>()
300300
})
301301
.await?;
302302

packages/api/group/tests/basic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ impl Ctx {
6161

6262
let token_res = chirp_workflow::compat::op(
6363
&ctx,
64-
user::ops::token_create::get::Input {
64+
::user::ops::token_create::Input {
6565
user_id: user_id,
6666
client: backend::net::ClientInfo {
6767
user_agent: Some(USER_AGENT.into()),

packages/api/portal/tests/basic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ impl Ctx {
6060

6161
let token_res = chirp_workflow::compat::op(
6262
&ctx,
63-
user::ops::token_create::get::Input {
63+
::user::ops::token_create::Input {
6464
user_id: user_id,
6565
client: backend::net::ClientInfo {
6666
user_agent: Some(USER_AGENT.into()),

packages/infra/server/src/run_config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ pub fn config(rivet_config: rivet_config::Config) -> Result<RunConfigData> {
282282
SqlService {
283283
kind: SqlServiceKind::CockroachDB,
284284
migrations: include_dir!(
285-
"$CARGO_MANIFEST_DIR/../../services/user-identity/db/user-identity"
285+
"$CARGO_MANIFEST_DIR/../../services/user/db/user-identity"
286286
),
287287
db_name: "db_user_identity",
288288
},

packages/services/user/Cargo.toml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,14 @@ token-create.workspace = true
1919
upload-file-list.workspace = true
2020
upload-get.workspace = true
2121
upload-complete.workspace = true
22-
user-identity-get.workspace = true
2322

2423
[dependencies.sqlx]
2524
workspace = true
26-
default-features = false
25+
default-features = false
26+
27+
[dev-dependencies]
28+
faker-user.workspace = true
29+
rand = "0.8"
30+
reqwest = "0.11"
31+
upload-get.workspace = true
32+
upload-prepare.workspace = true

0 commit comments

Comments
 (0)