Test case details
Test name:
OfficeDevPnP.Core.Tests.Framework.ObjectHandlers.ObjectSiteSecurityTests.CanMapToExistingGroupsInNewScriptSite
Outcome:
Run at:
9/11/2019 12:14:08 AM
Duration:
00:00:03
Error message:
Test method OfficeDevPnP.Core.Tests.Framework.ObjectHandlers.ObjectSiteSecurityTests.CanMapToExistingGroupsInNewScriptSite threw exception: System.Exception: You need to set the owner in App-only context
Stacktrace:
at at OfficeDevPnP.Core.Sites.SiteCollection.<CreateAsync>d__6.MoveNext() in c:\pnpbuild\Core\OfficeDevPnP.Core\Sites\SiteCollection.cs:line 127 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() at OfficeDevPnP.Core.Sites.SiteCollection.<CreateAsync>d__3.MoveNext() in c:\pnpbuild\Core\OfficeDevPnP.Core\Sites\SiteCollection.cs:line 82 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() at Microsoft.SharePoint.Client.ClientContextExtensions.<CreateSiteAsync>d__23.MoveNext() in c:\pnpbuild\Core\OfficeDevPnP.Core\Extensions\ClientContextExtensions.cs:line 767 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() at OfficeDevPnP.Core.Tests.Framework.ObjectHandlers.ObjectSiteSecurityTests.<CreateCommunicationSite>d__29.MoveNext() in c:\pnpbuild\Core\OfficeDevPnP.Core.Tests\Framework\ObjectHandlers\ObjectSiteSecurityTests.cs:line 894 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() at OfficeDevPnP.Core.Tests.Framework.ObjectHandlers.ObjectSiteSecurityTests.<CanMapToExistingGroupsInNewScriptSite>d__28.MoveNext() in c:\pnpbuild\Core\OfficeDevPnP.Core.Tests\Framework\ObjectHandlers\ObjectSiteSecurityTests.cs:line 843 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
Console output:
    

Debug Trace:
vstest.console.exe Information: 0 : 2019-09-11 00:14:08.4493	[OfficeDevPnP.Core]	[0]	[Debug]	AuthenticationManager:EnsureToken(siteUrl:https://bertonline.sharepoint.com/sites/pnptest2,realm:d8623c9e-30c7-473a-83bc-d907df44a26e,appId:a6fdef05-ff36-4b45-870b-dfede84e2e26,appSecret:PRIVATE)	0ms	
vstest.console.exe Information: 0 : 2019-09-11 00:14:08.5587	[OfficeDevPnP.Core]	[0]	[Debug]	Lease expiration date: 9/11/2019 8:14:08 AM	0ms	
vstest.console.exe Information: 0 : 2019-09-11 00:14:08.8712	[OfficeDevPnP.Core]	[0]	[Debug]	AuthenticationManager:EnsureToken(siteUrl:https://bertonline.sharepoint.com/sites/pnptest2,realm:d8623c9e-30c7-473a-83bc-d907df44a26e,appId:a6fdef05-ff36-4b45-870b-dfede84e2e26,appSecret:PRIVATE)	0ms	
vstest.console.exe Information: 0 : 2019-09-11 00:14:08.9806	[OfficeDevPnP.Core]	[0]	[Debug]	Lease expiration date: 9/11/2019 8:14:08 AM	0ms	
vstest.console.exe Information: 0 : 2019-09-11 00:14:09.1837	[OfficeDevPnP.Core]	[0]	[Debug]	AuthenticationManager:EnsureToken(siteUrl:https://bertonline.sharepoint.com/sites/pnptest2,realm:d8623c9e-30c7-473a-83bc-d907df44a26e,appId:a6fdef05-ff36-4b45-870b-dfede84e2e26,appSecret:PRIVATE)	0ms	
vstest.console.exe Information: 0 : 2019-09-11 00:14:09.2931	[OfficeDevPnP.Core]	[0]	[Debug]	Lease expiration date: 9/11/2019 8:14:09 AM	0ms	
vstest.console.exe Information: 0 : 2019-09-11 00:14:09.4024	[OfficeDevPnP.Core]	[0]	[Debug]	AuthenticationManager:EnsureToken(siteUrl:https://bertonline-admin.sharepoint.com,realm:d8623c9e-30c7-473a-83bc-d907df44a26e,appId:a6fdef05-ff36-4b45-870b-dfede84e2e26,appSecret:PRIVATE)	0ms	
vstest.console.exe Information: 0 : 2019-09-11 00:14:09.5118	[OfficeDevPnP.Core]	[0]	[Debug]	Lease expiration date: 9/11/2019 8:14:09 AM	0ms