Skip to content

Commit

Permalink
test: replace Duelo Maestro with The Badland
Browse files Browse the repository at this point in the history
Dualo Maestro has malformed data on the server. While dash-rs will
happily process such malformed data as the GD servers would, it will not
_reproduce_ it during serialization (instead it will give an equivalent
representation that is well-formed and also understood by the GD
servers). As such, we cannot use this level for round trip testing
anymore. Replace it with 'The Badland'.

Signed-off-by: stadust <[email protected]>
  • Loading branch information
stadust committed Jan 9, 2025
1 parent 40936f6 commit 245b61d
Show file tree
Hide file tree
Showing 31 changed files with 83 additions and 83 deletions.
2 changes: 1 addition & 1 deletion examples/refresh_test_artifacts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ async fn refresh_listed_levels(artifacts_path: &PathBuf, http_client: &Client) {
let levels_to_dowload = vec![
72540, // demon world, 1.3 (?) level
11774780, // dark realm , 1.9 level
23298409, // duelo maestro, 2.0 level
24904605, // The Badland, 2.0 level
63355989, // fantasy, 2.1 level
97598449, // Loco Motive, 2.2 platformer level
];
Expand Down
5 changes: 0 additions & 5 deletions tests/artifacts/creator/1295392/processed

This file was deleted.

1 change: 0 additions & 1 deletion tests/artifacts/creator/1295392/raw

This file was deleted.

5 changes: 5 additions & 0 deletions tests/artifacts/creator/5449239/processed
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"user_id": 5449239,
"name": "Edicts",
"account_id": 324721
}
1 change: 1 addition & 0 deletions tests/artifacts/creator/5449239/raw
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
5449239:Edicts:324721
8 changes: 4 additions & 4 deletions tests/artifacts/level/11774780/processed
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
"difficulty": {
"Demon": "Hard"
},
"downloads": 104465,
"downloads": 108975,
"main_song": null,
"gd_version": 20,
"likes": 11487,
"likes": 11730,
"length": "Long",
"stars": 10,
"featured": 11994,
Expand Down Expand Up @@ -138220,8 +138220,8 @@
]
},
"password": null,
"time_since_upload": "8 years",
"time_since_update": "8 years",
"time_since_upload": "9 years",
"time_since_update": "9 years",
"index_36": "29_566_73_98_29_29_54_424_29_29_237_132_177_29_29_29",
"index_40": "",
"index_52": "",
Expand Down
2 changes: 1 addition & 1 deletion tests/artifacts/level/11774780/raw

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions tests/artifacts/level/897837/processed
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
"difficulty": {
"Demon": "Easy"
},
"downloads": 7022406,
"downloads": 8015151,
"main_song": 14,
"gd_version": 21,
"likes": 278009,
"likes": 298336,
"length": "Long",
"stars": 10,
"featured": 700,
Expand Down Expand Up @@ -63967,8 +63967,8 @@
]
},
"password": 3101,
"time_since_upload": "9 years",
"time_since_update": "3 years",
"time_since_upload": "10 years",
"time_since_update": "4 years",
"index_36": "0_167_67_0_0_0_0_207_0_0_89_88_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0_0",
"index_40": "0",
"index_52": "",
Expand Down
2 changes: 1 addition & 1 deletion tests/artifacts/level/897837/raw

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions tests/artifacts/listed_level/11774780/processed
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
"difficulty": {
"Demon": "Hard"
},
"downloads": 104470,
"downloads": 108975,
"main_song": null,
"gd_version": 20,
"likes": 11487,
"likes": 11730,
"length": "Long",
"stars": 10,
"featured": 11994,
Expand Down
2 changes: 1 addition & 1 deletion tests/artifacts/listed_level/11774780/raw
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1:11774780:2:Dark Realm:5:2:6:2073761:8:10:9:30:10:104470:12:0:13:20:14:11487:17:1:43:0:25::18:10:19:11994:42:0:45:0:3:TXkgYmVzdCBsZXZlbCB5ZXQuIFZpZGVvIG9uIG15IFlvdVR1YmUuIEhhdmUgZnVuIGluIHRoaXMgZmFzdC1wYWNlZCBERU1PTiA-OikgdjIgRml4ZWQgc29tZSB0aGluZ3M=:15:3:30:0:31:0:37:3:38:1:39:10:46:1:47:2:35:444085
1:11774780:2:Dark Realm:5:2:6:2073761:8:10:9:30:10:108975:12:0:13:20:14:11730:17:1:43:0:25::18:10:19:11994:42:0:45:0:3:TXkgYmVzdCBsZXZlbCB5ZXQuIFZpZGVvIG9uIG15IFlvdVR1YmUuIEhhdmUgZnVuIGluIHRoaXMgZmFzdC1wYWNlZCBERU1PTiA-OikgdjIgRml4ZWQgc29tZSB0aGluZ3M=:15:3:30:0:31:0:37:3:38:1:39:10:46:1:47:2:35:444085
28 changes: 0 additions & 28 deletions tests/artifacts/listed_level/23298409/processed

This file was deleted.

1 change: 0 additions & 1 deletion tests/artifacts/listed_level/23298409/raw

This file was deleted.

28 changes: 28 additions & 0 deletions tests/artifacts/listed_level/24904605/processed
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"level_id": 24904605,
"name": "The Badland",
"description": "He may have been defeated, but can you stop his return? Dedicated to LazerBlitz and Manix. 100k Objects! For NGC contest ;3;)///",
"version": 4,
"creator": 5449239,
"difficulty": {
"Demon": "Insane"
},
"downloads": 969711,
"main_song": null,
"gd_version": 20,
"likes": 81238,
"length": "ExtraLong",
"stars": 10,
"featured": 18801,
"copy_of": 22073337,
"two_player": false,
"custom_song": 686782,
"coin_amount": 3,
"coins_verified": true,
"stars_requested": 10,
"is_epic": false,
"object_amount": null,
"index_46": "1",
"index_47": "2",
"level_data": null
}
1 change: 1 addition & 0 deletions tests/artifacts/listed_level/24904605/raw
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1:24904605:2:The Badland:5:4:6:5449239:8:10:9:40:10:969711:12:0:13:20:14:81238:17:1:43:5:25::18:10:19:18801:42:0:45:0:3:SGUgbWF5IGhhdmUgYmVlbiBkZWZlYXRlZCwgYnV0IGNhbiB5b3Ugc3RvcCBoaXMgcmV0dXJuPyBEZWRpY2F0ZWQgdG8gTGF6ZXJCbGl0eiBhbmQgTWFuaXguIDEwMGsgT2JqZWN0cyEgRm9yIE5HQyBjb250ZXN0IDszOykvLy8=:15:4:30:22073337:31:0:37:3:38:1:39:10:46:1:47:2:35:686782
4 changes: 2 additions & 2 deletions tests/artifacts/listed_level/63355989/processed
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
"version": 3,
"creator": 15557115,
"difficulty": "Harder",
"downloads": 22927,
"downloads": 23324,
"main_song": null,
"gd_version": 21,
"likes": 2108,
"likes": 2141,
"length": "Long",
"stars": 7,
"featured": 24978,
Expand Down
2 changes: 1 addition & 1 deletion tests/artifacts/listed_level/63355989/raw
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1:63355989:2:Fantasy:5:3:6:15557115:8:10:9:40:10:22927:12:0:13:21:14:2108:17::43:5:25::18:7:19:24978:42:0:45:37865:3:Q29sbGFiIHdpdGggQnJpbmRpa3osIHRoYW5rIHlvdSBmb3IgdGhpcyBsZXZlbCB1d3UsIEVOSk9ZISEg:15:3:30:63309629:31:0:37:2:38:1:39:7:46:1:47:2:35:771517
1:63355989:2:Fantasy:5:3:6:15557115:8:10:9:40:10:23324:12:0:13:21:14:2141:17::43:5:25::18:7:19:24978:42:0:45:37865:3:Q29sbGFiIHdpdGggQnJpbmRpa3osIHRoYW5rIHlvdSBmb3IgdGhpcyBsZXZlbCB1d3UsIEVOSk9ZISEg:15:3:30:63309629:31:0:37:2:38:1:39:7:46:1:47:2:35:771517
4 changes: 2 additions & 2 deletions tests/artifacts/listed_level/72540/processed
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
"difficulty": {
"Demon": "Medium"
},
"downloads": 382005,
"downloads": 452111,
"main_song": 9,
"gd_version": 7,
"likes": -3110,
"likes": -2916,
"length": "Long",
"stars": 10,
"featured": 0,
Expand Down
2 changes: 1 addition & 1 deletion tests/artifacts/listed_level/72540/raw
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1:72540:2:demon world:5:7:6:37573:8:10:9:20:10:382005:12:9:13:7:14:-3110:17:1:43:4:25::18:10:19:0:42:0:45:0:3:aGFwcHkgbmV3IHllYXIhIQ==:15:3:30:0:31:0:37:0:38:0:39:0:46:1:47:2:35:0
1:72540:2:demon world:5:7:6:37573:8:10:9:20:10:452111:12:9:13:7:14:-2916:17:1:43:4:25::18:10:19:0:42:0:45:0:3:aGFwcHkgbmV3IHllYXIhIQ==:15:3:30:0:31:0:37:0:38:0:39:0:46:1:47:2:35:0
6 changes: 3 additions & 3 deletions tests/artifacts/listed_level/97598449/processed
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
"version": 2,
"creator": 8599996,
"difficulty": "Harder",
"downloads": 697320,
"downloads": 3011016,
"main_song": null,
"gd_version": 22,
"likes": 57872,
"likes": 153976,
"length": "Platformer",
"stars": 6,
"featured": 25052,
"featured": 25049,
"copy_of": null,
"two_player": false,
"custom_song": 1204676,
Expand Down
2 changes: 1 addition & 1 deletion tests/artifacts/listed_level/97598449/raw
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1:97598449:2:Loco Motive:5:2:6:8599996:8:10:9:40:10:697320:12:0:13:22:14:57872:17::43:5:25::18:6:19:25052:42:1:45:18374:3:WWVlICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIEhhdw==:15:5:30:0:31:0:37:0:38:0:39:6:46:1:47:2:35:1204676
1:97598449:2:Loco Motive:5:2:6:8599996:8:10:9:40:10:3011016:12:0:13:22:14:153976:17::43:5:25::18:6:19:25049:42:1:45:18374:3:WWVlICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIEhhdw==:15:5:30:0:31:0:37:0:38:0:39:6:46:1:47:2:35:1204676
10 changes: 5 additions & 5 deletions tests/artifacts/profile/8451/processed
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "stardust1971",
"user_id": 2073761,
"stars": 13728,
"stars": 13791,
"demons": 483,
"creator_points": 19,
"primary_color": {
Expand All @@ -20,7 +20,7 @@
},
"secret_coins": 151,
"account_id": 8451,
"user_coins": 498,
"user_coins": 499,
"index_18": "0",
"index_19": "0",
"youtube_url": "stardust19710",
Expand All @@ -32,20 +32,20 @@
"robot_index": 10,
"has_glow": true,
"index_29": "1",
"global_rank": 8073,
"global_rank": 13731,
"index_31": "0",
"index_38": null,
"index_39": null,
"index_40": null,
"spider_index": 2,
"twitter_url": "stadust1971",
"twitch_url": null,
"diamonds": 2359,
"diamonds": 2621,
"death_effect_index": 13,
"mod_level": "None",
"index_50": "0",
"index_51": "63",
"moons": 11,
"moons": 16,
"swing_index": 3,
"jetpack_index": 1
}
2 changes: 1 addition & 1 deletion tests/artifacts/profile/8451/raw
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1:stardust1971:2:2073761:13:151:17:498:10:9:11:10:51:63:3:13728:52:11:46:2359:4:483:8:19:18:0:19:0:50:0:20:stardust19710:21:95:22:48:23:33:24:18:25:11:26:10:28:1:43:2:48:13:53:3:54:1:30:8073:16:8451:31:0:44:stadust1971:45::49:0:29:1
1:stardust1971:2:2073761:13:151:17:499:10:9:11:10:51:63:3:13791:52:16:46:2621:4:483:8:19:18:0:19:0:50:0:20:stardust19710:21:95:22:48:23:33:24:18:25:11:26:10:28:1:43:2:48:13:53:3:54:1:30:13731:16:8451:31:0:44:stadust1971:45::49:0:29:1
6 changes: 3 additions & 3 deletions tests/artifacts/searched_user/stardust1971/processed
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "stardust1971",
"user_id": 2073761,
"stars": 13728,
"stars": 13791,
"demons": 483,
"index_6": "0",
"creator_points": 19,
Expand All @@ -24,6 +24,6 @@
"icon_type": "Cube",
"has_glow": true,
"account_id": 8451,
"user_coins": 498,
"moons": 0
"user_coins": 499,
"moons": 16
}
2 changes: 1 addition & 1 deletion tests/artifacts/searched_user/stardust1971/raw
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1:stardust1971:2:2073761:13:151:17:498:6:0:9:95:10:9:11:10:14:0:15:2:16:8451:3:13728:52:0:8:19:4:483
1:stardust1971:2:2073761:13:151:17:499:6:0:9:95:10:9:11:10:14:0:15:2:16:8451:3:13791:52:16:8:19:4:483
2 changes: 1 addition & 1 deletion tests/artifacts/song/444085/processed
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"artist": "F-777",
"filesize": 8.96,
"index_6": null,
"index_7": null,
"index_7": "UC6MNIegxWVDe6tOjL92QkUw",
"index_8": "1",
"link": "http://audio.ngfiles.com/444000/444085_Dark_Angel___F_777.mp3"
}
2 changes: 1 addition & 1 deletion tests/artifacts/song/444085/raw
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1~|~444085~|~2~|~Dark Angel - F-777~|~3~|~286~|~4~|~F-777~|~5~|~8.96~|~6~|~~|~10~|~http%3A%2F%2Faudio.ngfiles.com%2F444000%2F444085_Dark_Angel___F_777.mp3~|~7~|~~|~8~|~1
1~|~444085~|~2~|~Dark Angel - F-777~|~3~|~286~|~4~|~F-777~|~5~|~8.96~|~6~|~~|~10~|~http%3A%2F%2Faudio.ngfiles.com%2F444000%2F444085_Dark_Angel___F_777.mp3~|~7~|~UC6MNIegxWVDe6tOjL92QkUw~|~8~|~1
11 changes: 0 additions & 11 deletions tests/artifacts/song/645631/processed

This file was deleted.

1 change: 0 additions & 1 deletion tests/artifacts/song/645631/raw

This file was deleted.

11 changes: 11 additions & 0 deletions tests/artifacts/song/686782/processed
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"song_id": 686782,
"name": "Badland",
"index_3": 2787,
"artist": "BoomKitty",
"filesize": 11.0,
"index_6": null,
"index_7": "UCwHQ93ecuoQne93sgY-x8Nw",
"index_8": "1",
"link": "http://audio.ngfiles.com/686000/686782_Badland.mp3"
}
1 change: 1 addition & 0 deletions tests/artifacts/song/686782/raw
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1~|~686782~|~2~|~Badland~|~3~|~2787~|~4~|~BoomKitty~|~5~|~11~|~6~|~~|~10~|~http%3A%2F%2Faudio.ngfiles.com%2F686000%2F686782_Badland.mp3~|~7~|~UCwHQ93ecuoQne93sgY-x8Nw~|~8~|~1

0 comments on commit 245b61d

Please sign in to comment.