Skip to content

Commit c84ae19

Browse files
authored
Enabling the OAuth2 manager tests (#5796)
* Adding oauth2 tests * Adding x86 * Adding VCLibs dependency * Trying with manually redistributing vclibs * Trying with windows desktop * Revert "Trying with windows desktop" This reverts commit cb2822c. * Revert "Trying with manually redistributing vclibs" This reverts commit 5100cd2. * Adding failing images to bypass list for lack of VC libs
1 parent a415337 commit c84ae19

File tree

5 files changed

+56
-2
lines changed

5 files changed

+56
-2
lines changed

test/BypassTests.json

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1634,5 +1634,45 @@
16341634
"release_x64_Windows.10.Enterprise.LTSC.2021.Test::DynamicDependency::Test_WinRT::Add_Rank_Bneg10_A0",
16351635
"release_x64_Windows.10.Enterprise.LTSC.2021.Test::DynamicDependency::Test_WinRT::Create_DoNotVerifyDependencyResolution",
16361636
"release_x64_Windows.10.Enterprise.LTSC.2021.Test::DynamicDependency::Test_WinRT::Create_Add_Architectures_Explicit",
1637-
"release_x64_Windows.10.Enterprise.LTSC.2021.Test::DynamicDependency::Test_WinRT::Create_Add_Architectures_Current"
1637+
"release_x64_Windows.10.Enterprise.LTSC.2021.Test::DynamicDependency::Test_WinRT::Create_Add_Architectures_Current",
1638+
"release_x64_Windows.10.Enterprise.LTSC.2021.OAuth2ManagerTests::OAuth2APITests::Protocol_AuthorizationCode_BasicEndToEnd",
1639+
"release_x64_Windows.10.Enterprise.LTSC.2021.OAuth2ManagerTests::OAuth2APITests::AuthorizationCodeWithClientAuth",
1640+
"release_x64_Windows.10.Enterprise.LTSC.2021.OAuth2ManagerTests::OAuth2APITests::ClientCredentialsTokenRequest",
1641+
"release_x64_Windows.10.Enterprise.LTSC.2021.OAuth2ManagerTests::OAuth2APITests::RefreshTokenRequest",
1642+
"release_x64_Windows.10.Enterprise.LTSC.2021.OAuth2ManagerTests::OAuth2APITests::ExtensionTokenRequest",
1643+
"release_x64_Windows.10.Enterprise.LTSC.2021.OAuth2ManagerTests::OAuth2APITests::TokenRequestErrorResponse",
1644+
"release_x64_Windows.10.Enterprise.LTSC.2021.OAuth2ManagerTests::OAuth2APITests::AdditionalParams",
1645+
"release_x64_Windows.10.Enterprise.LTSC.2021.OAuth2ManagerTests::OAuth2APITests::CompleteInvalidState",
1646+
"release_x64_Win10_rs5_DC.OAuth2ManagerTests::OAuth2APITests::Protocol_AuthorizationCode_BasicEndToEnd",
1647+
"release_x64_Win10_rs5_DC.OAuth2ManagerTests::OAuth2APITests::AuthorizationCodeWithClientAuth",
1648+
"release_x64_Win10_rs5_DC.OAuth2ManagerTests::OAuth2APITests::ClientCredentialsTokenRequest",
1649+
"release_x64_Win10_rs5_DC.OAuth2ManagerTests::OAuth2APITests::RefreshTokenRequest",
1650+
"release_x64_Win10_rs5_DC.OAuth2ManagerTests::OAuth2APITests::ExtensionTokenRequest",
1651+
"release_x64_Win10_rs5_DC.OAuth2ManagerTests::OAuth2APITests::TokenRequestErrorResponse",
1652+
"release_x64_Win10_rs5_DC.OAuth2ManagerTests::OAuth2APITests::AdditionalParams",
1653+
"release_x64_Win10_rs5_DC.OAuth2ManagerTests::OAuth2APITests::CompleteInvalidState",
1654+
"release_x86_Windows.10.Enterprise.22h2.OAuth2ManagerTests::OAuth2APITests::Protocol_AuthorizationCode_BasicEndToEnd",
1655+
"release_x86_Windows.10.Enterprise.22h2.OAuth2ManagerTests::OAuth2APITests::AuthorizationCodeWithClientAuth",
1656+
"release_x86_Windows.10.Enterprise.22h2.OAuth2ManagerTests::OAuth2APITests::ClientCredentialsTokenRequest",
1657+
"release_x86_Windows.10.Enterprise.22h2.OAuth2ManagerTests::OAuth2APITests::RefreshTokenRequest",
1658+
"release_x86_Windows.10.Enterprise.22h2.OAuth2ManagerTests::OAuth2APITests::ExtensionTokenRequest",
1659+
"release_x86_Windows.10.Enterprise.22h2.OAuth2ManagerTests::OAuth2APITests::TokenRequestErrorResponse",
1660+
"release_x86_Windows.10.Enterprise.22h2.OAuth2ManagerTests::OAuth2APITests::AdditionalParams",
1661+
"release_x86_Windows.10.Enterprise.22h2.OAuth2ManagerTests::OAuth2APITests::CompleteInvalidState",
1662+
"release_x86_Windows.11.Professional.23H2.zh-CN.OAuth2ManagerTests::OAuth2APITests::Protocol_AuthorizationCode_BasicEndToEnd",
1663+
"release_x86_Windows.11.Professional.23H2.zh-CN.OAuth2ManagerTests::OAuth2APITests::AuthorizationCodeWithClientAuth",
1664+
"release_x86_Windows.11.Professional.23H2.zh-CN.OAuth2ManagerTests::OAuth2APITests::ClientCredentialsTokenRequest",
1665+
"release_x86_Windows.11.Professional.23H2.zh-CN.OAuth2ManagerTests::OAuth2APITests::RefreshTokenRequest",
1666+
"release_x86_Windows.11.Professional.23H2.zh-CN.OAuth2ManagerTests::OAuth2APITests::ExtensionTokenRequest",
1667+
"release_x86_Windows.11.Professional.23H2.zh-CN.OAuth2ManagerTests::OAuth2APITests::TokenRequestErrorResponse",
1668+
"release_x86_Windows.11.Professional.23H2.zh-CN.OAuth2ManagerTests::OAuth2APITests::AdditionalParams",
1669+
"release_x86_Windows.11.Professional.23H2.zh-CN.OAuth2ManagerTests::OAuth2APITests::CompleteInvalidState",
1670+
"release_x86_Windows.Server.2019.DataCenter.zh-CN.OAuth2ManagerTests::OAuth2APITests::Protocol_AuthorizationCode_BasicEndToEnd",
1671+
"release_x86_Windows.Server.2019.DataCenter.zh-CN.OAuth2ManagerTests::OAuth2APITests::AuthorizationCodeWithClientAuth",
1672+
"release_x86_Windows.Server.2019.DataCenter.zh-CN.OAuth2ManagerTests::OAuth2APITests::ClientCredentialsTokenRequest",
1673+
"release_x86_Windows.Server.2019.DataCenter.zh-CN.OAuth2ManagerTests::OAuth2APITests::RefreshTokenRequest",
1674+
"release_x86_Windows.Server.2019.DataCenter.zh-CN.OAuth2ManagerTests::OAuth2APITests::ExtensionTokenRequest",
1675+
"release_x86_Windows.Server.2019.DataCenter.zh-CN.OAuth2ManagerTests::OAuth2APITests::TokenRequestErrorResponse",
1676+
"release_x86_Windows.Server.2019.DataCenter.zh-CN.OAuth2ManagerTests::OAuth2APITests::AdditionalParams",
1677+
"release_x86_Windows.Server.2019.DataCenter.zh-CN.OAuth2ManagerTests::OAuth2APITests::CompleteInvalidState"
16381678
]

test/OAuth2ManagerTests/OAuth2APITests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ namespace OAuth2ManagerTests
5252
public:
5353
BEGIN_TEST_CLASS(OAuth2APITests)
5454
TEST_CLASS_PROPERTY(L"ThreadingModel", L"MTA")
55-
END_TEST_CLASS()
55+
END_TEST_CLASS()
5656

5757
TEST_METHOD_SETUP(MethodInit)
5858
{
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"Tests": [
3+
{
4+
"Description": "OAuth2 Manager API Tests",
5+
"Filename": "OAuth2ManagerTests.dll",
6+
"Parameters": "",
7+
"Architectures": ["x64", "x86", "arm64"],
8+
"Status": "Enabled"
9+
}
10+
]
11+
}

test/OAuth2ManagerTests/OAuth2ManagerTests.vcxproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,7 @@
269269
<Target Name="CopyFiles" AfterTargets="AfterBuild">
270270
<Copy SkipUnchangedFiles="true" SourceFiles="$(OutDir)\..\WindowsAppRuntime_BootstrapDLL\Microsoft.WindowsAppRuntime.Bootstrap.dll" DestinationFolder="$(OutDir)" />
271271
<Copy SkipUnchangedFiles="true" SourceFiles="$(OutDir)\..\WindowsAppRuntime_DLL\Microsoft.Internal.FrameworkUdk.dll" DestinationFolder="$(OutDir)" />
272+
<Copy SkipUnchangedFiles="true" SourceFiles="OAuth2ManagerTests.testdef" DestinationFolder="$(OutDir)" />
272273
</Target>
273274
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
274275
<PropertyGroup>

test/TestApps/OAuthTestAppPackage/Package.appxmanifest

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
<Dependencies>
2323
<TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.17763.0" MaxVersionTested="10.0.19041.0" />
2424
<PackageDependency Name="Microsoft.WindowsAppRuntime.Framework.4.1" Publisher="CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US" MinVersion="0.0.0.0"/>
25+
<PackageDependency Name="Microsoft.VCLibs.140.00" MinVersion="0.0.0.0" Publisher="CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US" />
26+
<PackageDependency Name="Microsoft.VCLibs.140.00.UWPDesktop" MinVersion="0.0.0.0" Publisher="CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US" />
2527
</Dependencies>
2628

2729
<Resources>

0 commit comments

Comments
 (0)