From eff7505dbcd0ea1371e57d41fd8c63d92c98da0f Mon Sep 17 00:00:00 2001 From: Keegan Caruso Date: Sat, 11 Jan 2025 13:26:55 -0800 Subject: [PATCH] Fix typo --- .../ConfigurationManagerTests.cs | 45 +++++++++---------- 1 file changed, 22 insertions(+), 23 deletions(-) diff --git a/test/Microsoft.IdentityModel.Protocols.OpenIdConnect.Tests/ConfigurationManagerTests.cs b/test/Microsoft.IdentityModel.Protocols.OpenIdConnect.Tests/ConfigurationManagerTests.cs index a793ee59bb..1ee7645570 100644 --- a/test/Microsoft.IdentityModel.Protocols.OpenIdConnect.Tests/ConfigurationManagerTests.cs +++ b/test/Microsoft.IdentityModel.Protocols.OpenIdConnect.Tests/ConfigurationManagerTests.cs @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. -// Ignore Spelling: Metadata Validator Retreiver +// Ignore Spelling: Metadata Validator using System; using System.Collections.Generic; @@ -9,7 +9,6 @@ using System.IO; using System.Net; using System.Reflection; -using System.Runtime.CompilerServices; using System.Threading; using System.Threading.Tasks; using Microsoft.Extensions.Time.Testing; @@ -38,7 +37,7 @@ public async Task GetPublicMetadata(ConfigurationManagerTheoryData( theoryData.MetadataAddress, - theoryData.ConfigurationRetreiver, + theoryData.ConfigurationRetriever, theoryData.DocumentRetriever, theoryData.ConfigurationValidator); @@ -61,7 +60,7 @@ public static TheoryData("AccountsGoogleCom") { - ConfigurationRetreiver = new OpenIdConnectConfigurationRetriever(), + ConfigurationRetriever = new OpenIdConnectConfigurationRetriever(), ConfigurationValidator = new OpenIdConnectConfigurationValidator(), DocumentRetriever = new HttpDocumentRetriever(), MetadataAddress = OpenIdConfigData.AccountsGoogle @@ -69,7 +68,7 @@ public static TheoryData("AADCommonUrl") { - ConfigurationRetreiver = new OpenIdConnectConfigurationRetriever(), + ConfigurationRetriever = new OpenIdConnectConfigurationRetriever(), ConfigurationValidator = new OpenIdConnectConfigurationValidator(), DocumentRetriever = new HttpDocumentRetriever(), MetadataAddress = OpenIdConfigData.AADCommonUrl @@ -77,7 +76,7 @@ public static TheoryData("AADCommonUrlV1") { - ConfigurationRetreiver = new OpenIdConnectConfigurationRetriever(), + ConfigurationRetriever = new OpenIdConnectConfigurationRetriever(), ConfigurationValidator = new OpenIdConnectConfigurationValidator(), DocumentRetriever = new HttpDocumentRetriever(), MetadataAddress = OpenIdConfigData.AADCommonUrlV1 @@ -85,7 +84,7 @@ public static TheoryData("AADCommonUrlV2") { - ConfigurationRetreiver = new OpenIdConnectConfigurationRetriever(), + ConfigurationRetriever = new OpenIdConnectConfigurationRetriever(), ConfigurationValidator = new OpenIdConnectConfigurationValidator(), DocumentRetriever = new HttpDocumentRetriever(), MetadataAddress = OpenIdConfigData.AADCommonUrlV2 @@ -100,7 +99,7 @@ public void OpenIdConnectConstructor(ConfigurationManagerTheoryData(theoryData.MetadataAddress, theoryData.ConfigurationRetreiver, theoryData.DocumentRetriever, theoryData.ConfigurationValidator); + var configurationManager = new ConfigurationManager(theoryData.MetadataAddress, theoryData.ConfigurationRetriever, theoryData.DocumentRetriever, theoryData.ConfigurationValidator); theoryData.ExpectedException.ProcessNoException(); } catch (Exception ex) @@ -119,7 +118,7 @@ public static TheoryData { - ConfigurationRetreiver = new OpenIdConnectConfigurationRetriever(), + ConfigurationRetriever = new OpenIdConnectConfigurationRetriever(), ConfigurationValidator = new OpenIdConnectConfigurationValidator(), DocumentRetriever = new HttpDocumentRetriever(), ExpectedException = ExpectedException.ArgumentNullException("IDX10000:"), @@ -130,7 +129,7 @@ public static TheoryData { - ConfigurationRetreiver = null, + ConfigurationRetriever = null, ConfigurationValidator = new OpenIdConnectConfigurationValidator(), DocumentRetriever = new HttpDocumentRetriever(), ExpectedException = ExpectedException.ArgumentNullException("IDX10000:"), @@ -140,7 +139,7 @@ public static TheoryData { - ConfigurationRetreiver = new OpenIdConnectConfigurationRetriever(), + ConfigurationRetriever = new OpenIdConnectConfigurationRetriever(), ConfigurationValidator = new OpenIdConnectConfigurationValidator(), DocumentRetriever = null, ExpectedException = ExpectedException.ArgumentNullException("IDX10000:"), @@ -150,7 +149,7 @@ public static TheoryData { - ConfigurationRetreiver = new OpenIdConnectConfigurationRetriever(), + ConfigurationRetriever = new OpenIdConnectConfigurationRetriever(), ConfigurationValidator = null, DocumentRetriever = new HttpDocumentRetriever(), ExpectedException = ExpectedException.ArgumentNullException("IDX10000:"), @@ -833,7 +832,7 @@ public async Task ValidateOpenIdConnectConfigurationTests(ConfigurationManagerTh TestUtilities.WriteHeader($"{this}.ValidateOpenIdConnectConfigurationTests"); var context = new CompareContext(); OpenIdConnectConfiguration configuration; - var configurationManager = new ConfigurationManager(theoryData.MetadataAddress, theoryData.ConfigurationRetreiver, theoryData.DocumentRetriever, theoryData.ConfigurationValidator); + var configurationManager = new ConfigurationManager(theoryData.MetadataAddress, theoryData.ConfigurationRetriever, theoryData.DocumentRetriever, theoryData.ConfigurationValidator); if (theoryData.PresetCurrentConfiguration) TestUtilities.SetField(configurationManager, "_currentConfiguration", new OpenIdConnectConfiguration() { Issuer = Default.Issuer }); @@ -873,7 +872,7 @@ public static TheoryData { - ConfigurationRetreiver = new OpenIdConnectConfigurationRetriever(), + ConfigurationRetriever = new OpenIdConnectConfigurationRetriever(), ConfigurationValidator = openIdConnectConfigurationValidator, DocumentRetriever = new FileDocumentRetriever(), First = true, @@ -883,7 +882,7 @@ public static TheoryData { - ConfigurationRetreiver = new OpenIdConnectConfigurationRetriever(), + ConfigurationRetriever = new OpenIdConnectConfigurationRetriever(), ConfigurationValidator = openIdConnectConfigurationValidator2, DocumentRetriever = new FileDocumentRetriever(), ExpectedException = new ExpectedException(typeof(InvalidOperationException), "IDX21818:", typeof(InvalidConfigurationException)), @@ -893,7 +892,7 @@ public static TheoryData { - ConfigurationRetreiver = new OpenIdConnectConfigurationRetriever(), + ConfigurationRetriever = new OpenIdConnectConfigurationRetriever(), ConfigurationValidator = openIdConnectConfigurationValidator2, DocumentRetriever = new FileDocumentRetriever(), PresetCurrentConfiguration = true, @@ -904,7 +903,7 @@ public static TheoryData { - ConfigurationRetreiver = new OpenIdConnectConfigurationRetriever(), + ConfigurationRetriever = new OpenIdConnectConfigurationRetriever(), ConfigurationValidator = openIdConnectConfigurationValidator2, DocumentRetriever = new FileDocumentRetriever(), ExpectedException = new ExpectedException(typeof(InvalidOperationException), "IDX10810:", typeof(InvalidConfigurationException)), @@ -914,7 +913,7 @@ public static TheoryData { - ConfigurationRetreiver = new OpenIdConnectConfigurationRetriever(), + ConfigurationRetriever = new OpenIdConnectConfigurationRetriever(), ConfigurationValidator = openIdConnectConfigurationValidator2, DocumentRetriever = new FileDocumentRetriever(), PresetCurrentConfiguration = true, @@ -925,7 +924,7 @@ public static TheoryData { - ConfigurationRetreiver = new OpenIdConnectConfigurationRetriever(), + ConfigurationRetriever = new OpenIdConnectConfigurationRetriever(), ConfigurationValidator = openIdConnectConfigurationValidator2, DocumentRetriever = new FileDocumentRetriever(), ExpectedException = new ExpectedException(typeof(InvalidOperationException), "IDX21817:", typeof(InvalidConfigurationException)), @@ -935,7 +934,7 @@ public static TheoryData { - ConfigurationRetreiver = new OpenIdConnectConfigurationRetriever(), + ConfigurationRetriever = new OpenIdConnectConfigurationRetriever(), ConfigurationValidator = openIdConnectConfigurationValidator2, DocumentRetriever = new FileDocumentRetriever(), PresetCurrentConfiguration = true, @@ -946,7 +945,7 @@ public static TheoryData { - ConfigurationRetreiver = new OpenIdConnectConfigurationRetriever(), + ConfigurationRetriever = new OpenIdConnectConfigurationRetriever(), ConfigurationValidator = openIdConnectConfigurationValidator2, DocumentRetriever = new FileDocumentRetriever(), ExpectedException = new ExpectedException(typeof(InvalidOperationException), "IDX10814:", typeof(InvalidConfigurationException)), @@ -956,7 +955,7 @@ public static TheoryData { - ConfigurationRetreiver = new OpenIdConnectConfigurationRetriever(), + ConfigurationRetriever = new OpenIdConnectConfigurationRetriever(), ConfigurationValidator = openIdConnectConfigurationValidator2, DocumentRetriever = new FileDocumentRetriever(), PresetCurrentConfiguration = true, @@ -1002,7 +1001,7 @@ public ConfigurationManagerTheoryData(string testId) : base(testId) { } public TimeSpan AutomaticRefreshInterval { get; set; } - public IConfigurationRetriever ConfigurationRetreiver { get; set; } + public IConfigurationRetriever ConfigurationRetriever { get; set; } public IConfigurationValidator ConfigurationValidator { get; set; }