Test case details
Test name:
Microsoft.SharePoint.Client.Tests.FieldAndContentTypeExtensionsTests.GetContentTypeByIdTest
Outcome:
Run at:
6/11/2018 8:18:49 PM
Duration:
00:01:42
Error message:
Test method Microsoft.SharePoint.Client.Tests.FieldAndContentTypeExtensionsTests.GetContentTypeByIdTest 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 312 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 238 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 127 at OfficeDevPnP.Core.AuthenticationManager.GetAppOnlyAuthenticatedContext(String siteUrl, String appId, String appSecret) in c:\pnpbuild\Core\OfficeDevPnP.Core\AuthenticationManager.cs:line 99 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 Microsoft.SharePoint.Client.Tests.FieldAndContentTypeExtensionsTests.GetContentTypeByIdTest() in c:\pnpbuild\Core\OfficeDevPnP.Core.Tests\Extensions\FieldAndContentTypeExtensionsTests.cs:line 226
Console output:
    

Debug Trace:
te.processhost.managed.exe Information: 0 : 2018-06-11 20:18:49.8387	[OfficeDevPnP.Core]	[0]	[Debug]	AuthenticationManager:EnsureToken(siteUrl:https://portal2013.pnp.com/sites/pnptest2,realm:d8623c9e-30c7-473a-83bc-d907df44a26e,appId:ca6f3f08-0179-4ff4-b773-8c24dfd88875,appSecret:PRIVATE)	0ms	
te.processhost.managed.exe Information: 0 : 2018-06-11 20:20:29.9568	[OfficeDevPnP.Core]	[0]	[Debug]	AuthenticationManager:EnsureToken(siteUrl:https://portal2013.pnp.com/sites/pnptest2,realm:d8623c9e-30c7-473a-83bc-d907df44a26e,appId:ca6f3f08-0179-4ff4-b773-8c24dfd88875,appSecret:PRIVATE)	0ms	
te.processhost.managed.exe Information: 0 : 2018-06-11 20:20:30.2069	[OfficeDevPnP.Core]	[0]	[Debug]	Lease expiration date: 6/12/2018 4:20:30 AM	0ms