Test case details
Test name:
OfficeDevPnP.Core.Tests.AppModelExtensions.PageExtensionsTests.ProveThatWeCanAddHtmlToPageAfterChangingLayoutTest
Outcome:
Run at:
10/11/2017 3:47:06 AM
Duration:
00:00:00
Error message:
Test method OfficeDevPnP.Core.Tests.AppModelExtensions.PageExtensionsTests.ProveThatWeCanAddHtmlToPageAfterChangingLayoutTest threw exception: System.NullReferenceException: Object reference not set to an instance of an object.
Stacktrace:
at at OfficeDevPnP.Core.Utilities.TokenHelper.GetAppOnlyAccessToken(String targetPrincipalName, String targetHost, String targetRealm) in c:\pnpbuild\Core\OfficeDevPnP.Core\Utilities\TokenHelper.cs:line 311 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 236 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 125 at OfficeDevPnP.Core.AuthenticationManager.GetAppOnlyAuthenticatedContext(String siteUrl, String appId, String appSecret) in c:\pnpbuild\Core\OfficeDevPnP.Core\AuthenticationManager.cs:line 97 at OfficeDevPnP.Core.Tests.TestCommon.CreateContext(String contextUrl, ICredentials credentials) in c:\pnpbuild\Core\OfficeDevPnP.Core.Tests\TestCommon.cs:line 308 at OfficeDevPnP.Core.Tests.TestCommon.CreateClientContext() in c:\pnpbuild\Core\OfficeDevPnP.Core.Tests\TestCommon.cs:line 206 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.ProveThatWeCanAddHtmlToPageAfterChangingLayoutTest() in c:\pnpbuild\Core\OfficeDevPnP.Core.Tests\Extensions\PageExtensionsTests.cs:line 157
Console output:
    

Debug Trace:
te.processhost.managed.exe Information: 0 : 2017-10-11 03:47:06.2061	[OfficeDevPnP.Core]	[0]	[Debug]	AuthenticationManager:EnsureToken(siteUrl:https://bertonline.sharepoint.com/sites/pnptest,realm:,appId:650beee3-92cb-4698-98cd-0ed4e69334b9,appSecret:PRIVATE)	0ms