Test case details
Test name:
OfficeDevPnP.Core.Tests.Utilities.HttpHelperTests.MakePostRequestForStringWithSPContextTest
Outcome:
Run at:
3/25/2020 8:42:39 PM
Duration:
00:00:00
Error message:
Test method OfficeDevPnP.Core.Tests.Utilities.HttpHelperTests.MakePostRequestForStringWithSPContextTest threw exception: System.NullReferenceException: Object reference not set to an instance of an object.
Stacktrace:
at at OfficeDevPnP.Core.Utilities.HttpHelper.SetAuthenticationCookies(HttpClientHandler handler, ClientContext context) in c:\pnpbuild\Core\OfficeDevPnP.Core\Utilities\HttpHelper.cs:line 661 at OfficeDevPnP.Core.Utilities.HttpHelper.MakeHttpRequest[TResult](String httpMethod, String requestUrl, HttpResponseHeaders& responseHeaders, String accessToken, String accept, Object content, String contentType, String referer, Func`2 resultPredicate, Dictionary`2 requestHeaders, Dictionary`2 cookies, Int32 retryCount, Int32 delay, String userAgent, ClientContext spContext) in c:\pnpbuild\Core\OfficeDevPnP.Core\Utilities\HttpHelper.cs:line 526 at OfficeDevPnP.Core.Utilities.HttpHelper.MakeHttpRequest[TResult](String httpMethod, String requestUrl, String accessToken, String accept, Object content, String contentType, String referer, Func`2 resultPredicate, Dictionary`2 requestHeaders, Dictionary`2 cookies, Int32 retryCount, Int32 delay, String userAgent, ClientContext spContext) in c:\pnpbuild\Core\OfficeDevPnP.Core\Utilities\HttpHelper.cs:line 458 at OfficeDevPnP.Core.Utilities.HttpHelper.MakePostRequestForString(String requestUrl, Object content, String contentType, String accessToken, String accept, Dictionary`2 requestHeaders, Dictionary`2 cookies, Int32 retryCount, Int32 delay, String userAgent, ClientContext spContext) in c:\pnpbuild\Core\OfficeDevPnP.Core\Utilities\HttpHelper.cs:line 215 at OfficeDevPnP.Core.Tests.Utilities.HttpHelperTests.MakePostRequestForStringWithSPContextTest() in c:\pnpbuild\Core\OfficeDevPnP.Core.Tests\Utilities\HttpHelperTests.cs:line 147
Console output:
    

Debug Trace:
vstest.console.exe Information: 0 : 2020-03-25 20:42:39.7339	[OfficeDevPnP.Core]	[0]	[Debug]	AuthenticationManager:EnsureToken(siteUrl:https://portal2013.pnp.com/sites/pnptest2,realm:d8623c9e-30c7-473a-83bc-d907df44a26e,appId:8fb8ffde-5f4c-4336-aaf8-092555d72122,appSecret:PRIVATE)	0ms	
vstest.console.exe Information: 0 : 2020-03-25 20:42:39.8350	[OfficeDevPnP.Core]	[0]	[Debug]	Lease expiration date: 3/26/2020 4:42:39 AM	0ms