tests fixes and sprints work
This commit is contained in:
@@ -307,17 +307,15 @@ public sealed class EvidenceReindexServiceTests
|
||||
|
||||
private EvidenceBundleDetails CreateBundle(EvidenceBundleId bundleId, TenantId tenantId, string rootHash)
|
||||
{
|
||||
var bundle = new EvidenceBundle
|
||||
{
|
||||
Id = bundleId,
|
||||
TenantId = tenantId,
|
||||
Kind = EvidenceBundleKind.Evaluation,
|
||||
Status = EvidenceBundleStatus.Sealed,
|
||||
RootHash = rootHash,
|
||||
StorageKey = $"bundles/{bundleId.Value:D}",
|
||||
CreatedAt = _timeProvider.GetUtcNow(),
|
||||
UpdatedAt = _timeProvider.GetUtcNow()
|
||||
};
|
||||
var bundle = new EvidenceBundle(
|
||||
Id: bundleId,
|
||||
TenantId: tenantId,
|
||||
Kind: EvidenceBundleKind.Evaluation,
|
||||
Status: EvidenceBundleStatus.Sealed,
|
||||
RootHash: rootHash,
|
||||
StorageKey: $"bundles/{bundleId.Value:D}",
|
||||
CreatedAt: _timeProvider.GetUtcNow(),
|
||||
UpdatedAt: _timeProvider.GetUtcNow());
|
||||
|
||||
var manifest = new
|
||||
{
|
||||
@@ -343,14 +341,16 @@ public sealed class EvidenceReindexServiceTests
|
||||
var payload = Convert.ToBase64String(
|
||||
Encoding.UTF8.GetBytes(JsonSerializer.Serialize(manifest)));
|
||||
|
||||
var signature = new EvidenceBundleSignature
|
||||
{
|
||||
BundleId = bundleId,
|
||||
KeyId = "test-key",
|
||||
Algorithm = "ES256",
|
||||
Payload = payload,
|
||||
Signature = "sig"
|
||||
};
|
||||
var signature = new EvidenceBundleSignature(
|
||||
BundleId: bundleId,
|
||||
TenantId: tenantId,
|
||||
PayloadType: "application/vnd.stella.evidence-manifest+json",
|
||||
Payload: payload,
|
||||
Signature: "sig",
|
||||
KeyId: "test-key",
|
||||
Algorithm: "ES256",
|
||||
Provider: "test",
|
||||
SignedAt: _timeProvider.GetUtcNow());
|
||||
|
||||
return new EvidenceBundleDetails(bundle, signature);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user