osu/osu.Game/Tests/Visual
Bartłomiej Dach 776fabd77c
Only use MD5 when performing metadata lookups
Both online and offline using the cache.

The rationale behind this change is that in the current state of
affairs, `TestPartiallyMaliciousSet()` fails in a way that cannot be
reconciled without this sort of change.

The test exercises a scenario where the beatmap being imported has an
online ID in the `.osu` file, but its hash does not match the online
hash of the beatmap. This turns out to be a more frequent scenario than
envisioned because of users doing stupid things with manual file editing
rather than reporting issues properly.

The scenario is realistic only because the behaviour of the endpoint
responsible for looking up beatmaps is such that if multiple parameters
are given (e.g. all three of beatmap MD5, online ID, and filename), it
will try the three in succession:

	f6b341813b/app/Http/Controllers/BeatmapsController.php (L260-L266)

and the local metadata cache implementation reflected this
implementation.

Because online ID and filename are inherently unreliable in this
scenario due to being directly manipulable by clueless or malicious
users, neither should not be used as a fallback.
2024-10-30 08:12:30 +01:00
..
Gameplay
Metadata Add failing test 2024-10-11 14:16:24 +02:00
Multiplayer More hardening of `TestMultiplayerClient` to attempt to fix test failures 2024-08-19 04:04:24 +09:00
OnlinePlay Only use MD5 when performing metadata lookups 2024-10-30 08:12:30 +01:00
Spectator Add test coverage of judgements not being synced when resuming a replay 2024-09-18 15:28:10 +09:00
DependencyProvidingContainer.cs
EditorClockTestScene.cs
EditorSavingTestScene.cs
EditorTestScene.cs
LegacySkinPlayerTestScene.cs Rename `SkinComponentsContainer` to `SkinnableContainer` 2024-08-22 17:42:50 +09:00
ModFailConditionTestScene.cs
ModTestScene.cs
OsuGameTestScene.cs
OsuGridTestScene.cs
OsuManualInputManagerTestScene.cs
OsuTestScene.cs Fix tests 2024-07-30 17:08:56 -07:00
PlacementBlueprintTestScene.cs Fix placement blueprints not receiving latest mouse position with touch input 2024-10-13 11:01:18 -04:00
PlayerTestScene.cs
RateAdjustedBeatmapTestScene.cs
ScreenTestScene.cs Add screen footer to `ScreenTestScene` 2024-07-11 15:30:07 +03:00
ScrollingTestContainer.cs
SelectionBlueprintTestScene.cs
SkinnableTestScene.cs
TestPlayer.cs
TestReplayPlayer.cs
TestUserLookupCache.cs