fix(card-master): 500 not 503 when blob missing; explicit test-project copy link
This commit is contained in:
@@ -29,7 +29,8 @@ public class ImmutableDataController : SVSimController
|
||||
{
|
||||
if (!_provider.IsAvailable)
|
||||
{
|
||||
return StatusCode(503, "card-master payload not available");
|
||||
// 500 not 503: blob missing is operator error (config / build), not transient — no retry will help.
|
||||
return StatusCode(500, "card-master payload not available");
|
||||
}
|
||||
return Ok(new CardMasterResponse { CardMaster = _provider.Base64Blob });
|
||||
}
|
||||
|
||||
@@ -65,6 +65,11 @@
|
||||
<Link>Data\build-deck\build_deck_series_master.csv</Link>
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<!-- CardMasterPayloadProvider reads from AppContext.BaseDirectory + Data/. Content does
|
||||
NOT flow across a ProjectReference, so link the blob explicitly here as a defensive
|
||||
mirror of the host csproj's own link (today SDK behavior happens to copy it, but a
|
||||
future cleanup could break that implicit flow and tests would 500 silently). -->
|
||||
<None Include="..\SVSim.EmulatedEntrypoint\Data\card_master_2026-06-03.txt" Link="Data\card_master_2026-06-03.txt" CopyToOutputDirectory="PreserveNewest" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
Reference in New Issue
Block a user