chore(bootstrap): refresh stale GlobalsImporter references in docs/test names

This commit is contained in:
gamer147
2026-05-26 16:44:54 -04:00
parent c02991a5c2
commit 141f34f817
19 changed files with 41 additions and 44 deletions

View File

@@ -66,7 +66,7 @@ public class GameConfigurationJsonbTests
{
var db = scope.ServiceProvider.GetRequiredService<SVSimDbContext>();
var rotation = await db.GameConfigs.FirstAsync(s => s.SectionName == "Rotation");
// Hydrate, mutate, re-serialise — same pattern GlobalsImporter and any admin-write
// Hydrate, mutate, re-serialise — the pattern RotationConfigImporter and any admin-write
// path will use.
var value = JsonSerializer.Deserialize<RotationConfig>(rotation.ValueJson)!;
value.TsRotationId = "99999";
@@ -130,7 +130,7 @@ public class GameConfigurationJsonbTests
}
[Test]
public async Task GlobalsImporter_updates_Rotation_without_clobbering_other_sections()
public async Task RotationConfigImporter_updates_Rotation_without_clobbering_other_sections()
{
using var factory = new SVSimTestFactory();
await factory.SeedGlobalsAsync(); // imports load-index which has ts_rotation_id="10015"
@@ -141,12 +141,12 @@ public class GameConfigurationJsonbTests
var rotation = JsonSerializer.Deserialize<RotationConfig>(
(await db.GameConfigs.FirstAsync(s => s.SectionName == "Rotation")).ValueJson)!;
Assert.That(rotation.TsRotationId, Is.EqualTo("10015"),
"GlobalsImporter should set Rotation.TsRotationId from the prod capture.");
"RotationConfigImporter should set Rotation.TsRotationId from the seed.");
// PackRates is NOT in the load-index capture; its row must keep ShippedDefaults values.
var packRates = JsonSerializer.Deserialize<PackRateConfig>(
(await db.GameConfigs.FirstAsync(s => s.SectionName == "PackRates")).ValueJson)!;
Assert.That(packRates.AnimatedRate, Is.EqualTo(0.08).Within(1e-9),
"GlobalsImporter must not clobber PackRates while updating Rotation.");
"RotationConfigImporter must not clobber PackRates while updating Rotation.");
}
}