Merge branch 'main' of https://git.stella-ops.org/stella-ops.org/git.stella-ops.org
This commit is contained in:
@@ -100,7 +100,7 @@ public sealed class KeylessSigningIntegrationTests : IDisposable
|
||||
bundle.Envelope.PayloadType.Should().Be("application/vnd.in-toto+json");
|
||||
bundle.Envelope.Payload.Should().NotBeNullOrEmpty();
|
||||
bundle.Envelope.Signatures.Should().HaveCount(1);
|
||||
bundle.Envelope.Signatures[0].Sig.Should().NotBeNullOrEmpty();
|
||||
bundle.Envelope.Signatures[0].Signature.Should().NotBeNullOrEmpty();
|
||||
}
|
||||
|
||||
[Fact]
|
||||
@@ -219,8 +219,8 @@ public sealed class KeylessSigningIntegrationTests : IDisposable
|
||||
var bundle2 = await signer.SignAsync(request, entitlement, caller, CancellationToken.None);
|
||||
|
||||
// Assert - different ephemeral keys = different signatures
|
||||
bundle1.Envelope.Signatures[0].Sig.Should()
|
||||
.NotBe(bundle2.Envelope.Signatures[0].Sig,
|
||||
bundle1.Envelope.Signatures[0].Signature.Should()
|
||||
.NotBe(bundle2.Envelope.Signatures[0].Signature,
|
||||
"each signing should use a new ephemeral key");
|
||||
}
|
||||
|
||||
@@ -313,7 +313,7 @@ public sealed class KeylessSigningIntegrationTests : IDisposable
|
||||
bundle.Should().NotBeNull();
|
||||
bundle.Metadata.CertificateChain.Should().NotBeEmpty(
|
||||
"bundle must include certificate chain for verification");
|
||||
bundle.Envelope.Signatures[0].Sig.Should().NotBeNullOrEmpty(
|
||||
bundle.Envelope.Signatures[0].Signature.Should().NotBeNullOrEmpty(
|
||||
"bundle must include signature");
|
||||
bundle.Envelope.Payload.Should().NotBeNullOrEmpty(
|
||||
"bundle must include payload for verification");
|
||||
@@ -393,7 +393,7 @@ public sealed class KeylessSigningIntegrationTests : IDisposable
|
||||
provider.AcquireTokenAsync(Arg.Any<CancellationToken>())
|
||||
.Returns(new OidcTokenResult
|
||||
{
|
||||
IdentityToken = $"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJodHRwczovL3Rlc3QuYXV0aCIsInN1YiI6Intsubject}\",\"ZXhwIjo5OTk5OTk5OTk5fQ.sig",
|
||||
IdentityToken = "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpc3MiOiJodHRwczovL3Rlc3QuYXV0aCIsInN1YiI6InRlc3Qtc3ViamVjdCIsImV4cCI6OTk5OTk5OTk5OX0.sig",
|
||||
ExpiresAt = DateTimeOffset.UtcNow.AddHours(1),
|
||||
Subject = subject,
|
||||
Email = subject
|
||||
|
||||
Reference in New Issue
Block a user