Test case details
Test name:
OfficeDevPnP.Core.Tests.AppModelExtensions.PageExtensionsTests.CanCreatePublishedPublishingPageWhenModerationIsDisabledTest
Outcome:
Run at:
1/12/2019 7:54:27 PM
Duration:
00:00:00
Error message:
Test method OfficeDevPnP.Core.Tests.AppModelExtensions.PageExtensionsTests.CanCreatePublishedPublishingPageWhenModerationIsDisabledTest threw exception: Microsoft.IdentityModel.SecurityTokenService.RequestFailedException: Token request failed. ---> System.Net.WebException: The remote server returned an error: (401) Unauthorized.
Stacktrace:
at at System.Net.HttpWebRequest.GetResponse() at SharePointPnP.IdentityModel.Extensions.S2S.Protocols.OAuth2.OAuth2WebRequest.GetResponse() at SharePointPnP.IdentityModel.Extensions.S2S.Protocols.OAuth2.OAuth2S2SClient.Issue(String securityTokenServiceUrl, OAuth2AccessTokenRequest oauth2Request) --- End of inner exception stack trace --- at SharePointPnP.IdentityModel.Extensions.S2S.Protocols.OAuth2.OAuth2S2SClient.Issue(String securityTokenServiceUrl, OAuth2AccessTokenRequest oauth2Request) at OfficeDevPnP.Core.Utilities.TokenHelper.GetAppOnlyAccessToken(String targetPrincipalName, String targetHost, String targetRealm) in c:\pnpbuild\Core\OfficeDevPnP.Core\Utilities\TokenHelper.cs:line 307 at OfficeDevPnP.Core.AuthenticationManager.EnsureToken(String siteUrl, String realm, String appId, String appSecret, String acsHostUrl, String globalEndPointPrefix) in c:\pnpbuild\Core\OfficeDevPnP.Core\AuthenticationManager.cs:line 250 at OfficeDevPnP.Core.AuthenticationManager.GetAppOnlyAuthenticatedContext(String siteUrl, String realm, String appId, String appSecret, String acsHostUrl, String globalEndPointPrefix) in c:\pnpbuild\Core\OfficeDevPnP.Core\AuthenticationManager.cs:line 139 at OfficeDevPnP.Core.AuthenticationManager.GetAppOnlyAuthenticatedContext(String siteUrl, String appId, String appSecret) in c:\pnpbuild\Core\OfficeDevPnP.Core\AuthenticationManager.cs:line 111 at OfficeDevPnP.Core.Tests.TestCommon.CreateContext(String contextUrl, ICredentials credentials) in c:\pnpbuild\Core\OfficeDevPnP.Core.Tests\TestCommon.cs:line 343 at OfficeDevPnP.Core.Tests.TestCommon.CreateClientContext() in c:\pnpbuild\Core\OfficeDevPnP.Core.Tests\TestCommon.cs:line 237 at OfficeDevPnP.Core.Tests.AppModelExtensions.PageExtensionsTests.Setup(String webTemplate, Boolean enablePublishingInfrastructure) in c:\pnpbuild\Core\OfficeDevPnP.Core.Tests\Extensions\PageExtensionsTests.cs:line 22 at OfficeDevPnP.Core.Tests.AppModelExtensions.PageExtensionsTests.CanCreatePublishedPublishingPageWhenModerationIsDisabledTest() in c:\pnpbuild\Core\OfficeDevPnP.Core.Tests\Extensions\PageExtensionsTests.cs:line 234
Console output:
    

Debug Trace:
te.processhost.managed.exe Information: 0 : 2019-01-12 19:54:27.6162	[OfficeDevPnP.Core]	[0]	[Debug]	AuthenticationManager:EnsureToken(siteUrl:https://portal2016.pnp.com/sites/pnptest,realm:d8623c9e-30c7-473a-83bc-d907df44a26e,appId:1b0015ae-3292-461f-8b6c-e693c8196a81,appSecret:PRIVATE)	0ms