From 43a2561dfa54843cf626a67a018b86993e2e5cfe Mon Sep 17 00:00:00 2001 From: Joseph Shook Date: Tue, 5 Nov 2024 16:15:14 -0800 Subject: [PATCH] Update tests --- .../Udap.Common.Tests/Certificates/TrustChainValidatorTests.cs | 2 +- _tests/Udap.Common.Tests/Client/UdapClientTests.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/_tests/Udap.Common.Tests/Certificates/TrustChainValidatorTests.cs b/_tests/Udap.Common.Tests/Certificates/TrustChainValidatorTests.cs index 23e97128..374fad9c 100644 --- a/_tests/Udap.Common.Tests/Certificates/TrustChainValidatorTests.cs +++ b/_tests/Udap.Common.Tests/Certificates/TrustChainValidatorTests.cs @@ -223,7 +223,7 @@ public async Task ValidateCertificateChain( .ToArray() .ToX509Collection(); - var validator = new TrustChainValidator(new X509ChainPolicy(), problemFlags, _testOutputHelper.ToLogger()); + var validator = new TrustChainValidator(new X509ChainPolicy(){RevocationMode = X509RevocationMode.Offline}, problemFlags, _testOutputHelper.ToLogger()); validator.Problem += _diagnosticsChainValidator.OnChainProblem; // Help while writing tests to see problems summarized. diff --git a/_tests/Udap.Common.Tests/Client/UdapClientTests.cs b/_tests/Udap.Common.Tests/Client/UdapClientTests.cs index 537e8887..0f4d1997 100644 --- a/_tests/Udap.Common.Tests/Client/UdapClientTests.cs +++ b/_tests/Udap.Common.Tests/Client/UdapClientTests.cs @@ -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>())!; + var validator = new TrustChainValidator(new X509ChainPolicy(){RevocationMode = X509RevocationMode.NoCheck}, _problemFlags, _serviceProvider.GetRequiredService>())!; // // TrustAnchorStore is using an ITrustAnchorStore implemented as a file store.