Fix Rust formatting
Server integrations / Paper and protocol tests (push) Failing after 20s
Server integrations / fabric / 1.20.1 (push) Failing after 11s
Server integrations / fabric / 1.21.1 (push) Failing after 14s
Server integrations / fabric / 26.1.2 (push) Failing after 17s
Server integrations / fabric / 26.2 (push) Failing after 12s
Server integrations / fabric / 26.3 (push) Failing after 6s
Server integrations / forge / 1.20.1 (push) Failing after 6s
Server integrations / forge / 1.21.1 (push) Failing after 8s
Server integrations / forge / 26.1.2 (push) Failing after 8s
Server integrations / forge / 26.2 (push) Failing after 8s
Server integrations / forge / 26.3 (push) Failing after 7s
CI / Web UIs (type-check + build) (panel/web) (push) Canceled after 0s
CI / Launcher (Windows build check) (push) Canceled after 2m53s
CI / Real installs (Mojang, Fabric, Quilt, Forge, NeoForge) (push) Canceled after 0s
CI / Docker image builds (push) Canceled after 0s
CI / Rust (fmt, clippy, tests) (push) Canceled after 1m22s
CI / Web UIs (type-check + build) (launcher) (push) Canceled after 1m27s

This commit is contained in:
SCOPEDD committed 2026-09-30 22:56:38 -04:00
1 parent ce49447b6e
commit 60edc99780
58 files changed
+3533 -1375

No files matched your search

+30 -23
View File
@@ -38,7 +38,8 @@ async fn leveling_and_quests_progression() {
let (alex_token, _, alex_uuid, _) = setup_users(&t).await;
let (_server_id, server_token) = create_test_server(&t, &admin).await;
// Hand every quest to every player so progress can be checked per quest.
let (s, v) = t.call("PUT", "/api/admin/progression", Some(&admin), Some(json!({"daily_quest_limit": 0, "weekly_quest_limit": 0}))).await;
let (s, v) =
t.call("PUT", "/api/admin/progression", Some(&admin), Some(json!({"daily_quest_limit": 0, "weekly_quest_limit": 0}))).await;
assert_eq!(s, StatusCode::OK, "{v}");
// 1. Initial level check
@@ -97,8 +98,8 @@ async fn leveling_and_quests_progression() {
assert!(current_xp > 0, "Alex should have earned XP");
let (s, quests_after) = t.call("GET", "/api/v1/quests/me", Some(&alex_token), None).await;
assert_eq!(s, StatusCode::OK);
let progress = |id: &str| quests_after.as_array().unwrap().iter()
.find(|q| q["quest"]["id"] == id).unwrap()["progress"].as_i64().unwrap();
let progress =
|id: &str| quests_after.as_array().unwrap().iter().find(|q| q["quest"]["id"] == id).unwrap()["progress"].as_i64().unwrap();
assert_eq!(progress("q_d_mine_diamond"), 4);
assert_eq!(progress("q_d_mine_coal"), 0);
@@ -146,8 +147,14 @@ async fn guilds_and_land_claims() {
let admin = t.login("admin", "supersecret").await;
let (alex_token, _, alex_uuid, steve_uuid) = setup_users(&t).await;
let (server_id, server_token) = create_test_server(&t, &admin).await;
let (status, updated) = t.call("PUT", &format!("/api/admin/servers/{server_id}"), Some(&admin),
Some(json!({"name": "Survival Hub", "instance_id": "smp-pack"}))).await;
let (status, updated) = t
.call(
"PUT",
&format!("/api/admin/servers/{server_id}"),
Some(&admin),
Some(json!({"name": "Survival Hub", "instance_id": "smp-pack"})),
)
.await;
assert_eq!(status, StatusCode::OK, "{updated}");
// 1. Alex founds a guild
@@ -261,11 +268,23 @@ async fn guilds_and_land_claims() {
assert_eq!(check_unclaimed["allowed"], true);
// The in-game command uses the server unclaim route rather than DELETE.
let (s, _) = t.call("POST", "/api/server/v1/guilds/claim", Some(&server_token),
Some(json!({"uuid": &alex_uuid, "dimension": "minecraft:overworld", "chunk_x": 3, "chunk_z": 7}))).await;
let (s, _) = t
.call(
"POST",
"/api/server/v1/guilds/claim",
Some(&server_token),
Some(json!({"uuid": &alex_uuid, "dimension": "minecraft:overworld", "chunk_x": 3, "chunk_z": 7})),
)
.await;
assert_eq!(s, StatusCode::OK);
let (s, response) = t.call("POST", "/api/server/v1/guilds/unclaim", Some(&server_token),
Some(json!({"uuid": &alex_uuid, "dimension": "minecraft:overworld", "chunk_x": 3, "chunk_z": 7}))).await;
let (s, response) = t
.call(
"POST",
"/api/server/v1/guilds/unclaim",
Some(&server_token),
Some(json!({"uuid": &alex_uuid, "dimension": "minecraft:overworld", "chunk_x": 3, "chunk_z": 7})),
)
.await;
assert_eq!(s, StatusCode::OK, "{response}");
}
@@ -275,24 +294,12 @@ async fn social_friends_dms_and_profiles() {
let (alex_token, steve_token, alex_uuid, steve_uuid) = setup_users(&t).await;
// 1. Alex sends friend request to Steve
let (s, _) = t
.call(
"POST",
"/api/v1/social/friends/request",
Some(&alex_token),
Some(json!({"friend_username": "Steve"})),
)
.await;
let (s, _) = t.call("POST", "/api/v1/social/friends/request", Some(&alex_token), Some(json!({"friend_username": "Steve"}))).await;
assert_eq!(s, StatusCode::OK);
// 2. Steve accepts friend request
let (s, _) = t
.call(
"POST",
"/api/v1/social/friends/respond",
Some(&steve_token),
Some(json!({"friend_uuid": &alex_uuid, "accept": true})),
)
.call("POST", "/api/v1/social/friends/respond", Some(&steve_token), Some(json!({"friend_uuid": &alex_uuid, "accept": true})))
.await;
assert_eq!(s, StatusCode::OK);