@@ -742,7 +742,7 @@ public static TheoryData<ResolvePopKeyTheoryData> ResolvePopKeyFromJkuKidTheoryD
742
742
}
743
743
}
744
744
745
- [ Theory ( Skip = "flaky" ) , MemberData ( nameof ( GetPopKeysFromJkuAsyncTheoryData ) , DisableDiscoveryEnumeration = true ) ]
745
+ [ Theory , MemberData ( nameof ( GetPopKeysFromJkuAsyncTheoryData ) , DisableDiscoveryEnumeration = true ) ]
746
746
public async Task GetPopKeysFromJkuAsync ( ResolvePopKeyTheoryData theoryData )
747
747
{
748
748
var context = TestUtilities . WriteHeader ( $ "{ this } .GetPopKeysFromJkuAsync", theoryData ) ;
@@ -771,36 +771,32 @@ public static TheoryData<ResolvePopKeyTheoryData> GetPopKeysFromJkuAsyncTheoryDa
771
771
{
772
772
return new TheoryData < ResolvePopKeyTheoryData >
773
773
{
774
- new ResolvePopKeyTheoryData
774
+ new ResolvePopKeyTheoryData ( "InvalidJkuUrlNull" )
775
775
{
776
776
First = true ,
777
777
JkuSetUrl = null ,
778
778
ExpectedException = ExpectedException . ArgumentNullException ( ) ,
779
- TestId = "InvalidJkuUrlNull" ,
780
779
} ,
781
- new ResolvePopKeyTheoryData
780
+ new ResolvePopKeyTheoryData ( "InvalidJkuUrlEmptyString" )
782
781
{
783
782
JkuSetUrl = string . Empty ,
784
783
ExpectedException = ExpectedException . ArgumentNullException ( ) ,
785
- TestId = "InvalidJkuUrlEmptyString" ,
786
784
} ,
787
- new ResolvePopKeyTheoryData
785
+ new ResolvePopKeyTheoryData ( "InvalidHttpsRequired" )
788
786
{
789
787
JkuSetUrl = "http://www.contoso.com" ,
790
788
ExpectedException = new ExpectedException ( typeof ( SignedHttpRequestInvalidPopKeyException ) , "IDX23006" ) ,
791
- TestId = "InvalidHttpsRequired" ,
792
789
} ,
793
- new ResolvePopKeyTheoryData
790
+ new ResolvePopKeyTheoryData ( "InvalidNoContentReturned" )
794
791
{
795
792
JkuSetUrl = "https://www.contoso.com" ,
796
793
SignedHttpRequestValidationParameters = new SignedHttpRequestValidationParameters ( )
797
794
{
798
795
HttpClientProvider = ( ) => HttpResponseMessageUtils . SetupHttpClientThatReturns ( string . Empty ) ,
799
796
} ,
800
797
ExpectedException = new ExpectedException ( typeof ( SignedHttpRequestInvalidPopKeyException ) , "IDX23022" , null , true ) ,
801
- TestId = "InvalidNoContentReturned" ,
802
798
} ,
803
- new ResolvePopKeyTheoryData
799
+ new ResolvePopKeyTheoryData ( "InvalidHttpNoContentReturned" )
804
800
{
805
801
JkuSetUrl = "http://www.contoso.com" ,
806
802
SignedHttpRequestValidationParameters = new SignedHttpRequestValidationParameters ( )
@@ -809,48 +805,42 @@ public static TheoryData<ResolvePopKeyTheoryData> GetPopKeysFromJkuAsyncTheoryDa
809
805
HttpClientProvider = ( ) => HttpResponseMessageUtils . SetupHttpClientThatReturns ( string . Empty ) ,
810
806
} ,
811
807
ExpectedException = new ExpectedException ( typeof ( SignedHttpRequestInvalidPopKeyException ) , "IDX23022" , null , true ) ,
812
- TestId = "InvalidHttpNoContentReturned" ,
813
- } ,
814
- // TODO - find out why test is timing out in the AzureDevOps build, appears to be unrelated to the caching changes
815
- //new ResolvePopKeyTheoryData
816
- //{
817
- // JkuSetUrl = "http://www.contoso.com",
818
- // SignedHttpRequestValidationParameters = new SignedHttpRequestValidationParameters()
819
- // {
820
- // RequireHttpsForJkuResourceRetrieval = false,
821
- // },
822
- // ExpectedException = new ExpectedException(typeof(SignedHttpRequestInvalidPopKeyException), "IDX23022", typeof(ArgumentException)),
823
- // TestId = "Valid0KeysReturnedLive",
824
- //},
825
- new ResolvePopKeyTheoryData
808
+ } ,
809
+ new ResolvePopKeyTheoryData ( "Valid0KeysReturnedLive" )
810
+ {
811
+ JkuSetUrl = "http://www.contoso.com" ,
812
+ SignedHttpRequestValidationParameters = new SignedHttpRequestValidationParameters ( )
813
+ {
814
+ RequireHttpsForJkuResourceRetrieval = false ,
815
+ } ,
816
+ ExpectedException = new ExpectedException ( typeof ( SignedHttpRequestInvalidPopKeyException ) , "IDX23022" , typeof ( ArgumentException ) ) ,
817
+ } ,
818
+ new ResolvePopKeyTheoryData ( "Valid0KeysReturned" )
826
819
{
827
820
JkuSetUrl = "https://www.contoso.com" ,
828
821
SignedHttpRequestValidationParameters = new SignedHttpRequestValidationParameters ( )
829
822
{
830
823
HttpClientProvider = ( ) => HttpResponseMessageUtils . SetupHttpClientThatReturns ( "{\" test\" : 1}" ) ,
831
824
} ,
832
825
ExpectedNumberOfPopKeysReturned = 0 ,
833
- TestId = "Valid0KeysReturned" ,
834
826
} ,
835
- new ResolvePopKeyTheoryData
827
+ new ResolvePopKeyTheoryData ( "Valid2KeysReturned" )
836
828
{
837
829
JkuSetUrl = "https://www.contoso.com" ,
838
830
SignedHttpRequestValidationParameters = new SignedHttpRequestValidationParameters ( )
839
831
{
840
832
HttpClientProvider = ( ) => HttpResponseMessageUtils . SetupHttpClientThatReturns ( DataSets . JsonWebKeySetString1 ) ,
841
833
} ,
842
834
ExpectedNumberOfPopKeysReturned = 2 ,
843
- TestId = "Valid2KeysReturned" ,
844
835
} ,
845
- new ResolvePopKeyTheoryData
836
+ new ResolvePopKeyTheoryData ( "Valid3KeysReturned" )
846
837
{
847
838
JkuSetUrl = "https://www.contoso.com" ,
848
839
SignedHttpRequestValidationParameters = new SignedHttpRequestValidationParameters ( )
849
840
{
850
841
HttpClientProvider = ( ) => HttpResponseMessageUtils . SetupHttpClientThatReturns ( DataSets . JsonWebKeySetECCString ) ,
851
842
} ,
852
843
ExpectedNumberOfPopKeysReturned = 3 ,
853
- TestId = "Valid3KeysReturned" ,
854
844
} ,
855
845
} ;
856
846
}
0 commit comments