feat(auth)!: ScadaBridge retire SQL Server ApiKey entity + ApprovedApiKeyIds + legacy hashing; EF migration RetireInboundApiKeyStore; re-issue runbook + CHANGELOG (re-arch C5/E) — BREAKING: X-API-Key -> Bearer sbk_, keys re-issued
This commit is contained in:
+5
-5
@@ -822,14 +822,14 @@ public sealed class BundleImporterApplyTests : IDisposable
|
||||
user: "bob");
|
||||
}
|
||||
|
||||
// Assert — no keys created, the method WAS created, the ignored count is
|
||||
// surfaced, and the import did not fault.
|
||||
// Assert — the method WAS created, the ignored count is surfaced, and the
|
||||
// import did not fault. Auth re-arch (C5): the SQL Server ApiKey store was
|
||||
// retired, so "no keys created" is now structural — the importer has no key
|
||||
// sink at all; the legacy ApiKeys section is counted (ApiKeysIgnored) and
|
||||
// discarded.
|
||||
await using (var scope = _provider.CreateAsyncScope())
|
||||
{
|
||||
var inboundRepo = scope.ServiceProvider.GetRequiredService<IInboundApiRepository>();
|
||||
var keys = await inboundRepo.GetAllApiKeysAsync();
|
||||
Assert.Empty(keys);
|
||||
|
||||
var methods = await inboundRepo.GetAllApiMethodsAsync();
|
||||
Assert.Single(methods);
|
||||
Assert.Equal("CreateOrder", methods[0].Name);
|
||||
|
||||
Reference in New Issue
Block a user