Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeShook committed Nov 6, 2024
1 parent b431104 commit 43a2561
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ public async Task<bool> ValidateCertificateChain(
.ToArray()
.ToX509Collection();

var validator = new TrustChainValidator(new X509ChainPolicy(), problemFlags, _testOutputHelper.ToLogger<TrustChainValidator>());
var validator = new TrustChainValidator(new X509ChainPolicy(){RevocationMode = X509RevocationMode.Offline}, problemFlags, _testOutputHelper.ToLogger<TrustChainValidator>());
validator.Problem += _diagnosticsChainValidator.OnChainProblem;

// Help while writing tests to see problems summarized.
Expand Down
2 changes: 1 addition & 1 deletion _tests/Udap.Common.Tests/Client/UdapClientTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ public async Task InvalidJwtTokentBadIssMatchToBaseUrlTest()
//
// TrustChainValidator handle the x509 chain building, policy and validation
//
var validator = new TrustChainValidator(new X509ChainPolicy(), _problemFlags, _serviceProvider.GetRequiredService<ILogger<TrustChainValidator>>())!;
var validator = new TrustChainValidator(new X509ChainPolicy(){RevocationMode = X509RevocationMode.NoCheck}, _problemFlags, _serviceProvider.GetRequiredService<ILogger<TrustChainValidator>>())!;

//
// TrustAnchorStore is using an ITrustAnchorStore implemented as a file store.
Expand Down

0 comments on commit 43a2561

Please sign in to comment.