Test case details
Test name:
OfficeDevPnP.Core.Tests.AppModelExtensions.TenantExtensionsTests.SetSiteLockStateTest
Outcome:
Run at:
6/12/2018 8:57:22 AM
Duration:
00:02:23
Error message:
Test method OfficeDevPnP.Core.Tests.AppModelExtensions.TenantExtensionsTests.SetSiteLockStateTest threw exception: Microsoft.SharePoint.Client.ServerException: Cannot set properties on site https://bertonline.sharepoint.com/sites/TestPnPSC_123456789_2b137c32-ce99-4a43-bc7b-ed28248f3d70 because the site is not currently available.
Stacktrace:
at at Microsoft.SharePoint.Client.ClientRequest.ProcessResponseStream(Stream responseStream) at Microsoft.SharePoint.Client.ClientRequest.ProcessResponse() at Microsoft.SharePoint.Client.ClientRequest.<ExecuteQueryToServerAsync>d__4.MoveNext() --- 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 Microsoft.SharePoint.Client.ClientRequest.<ExecuteQueryAsync>d__0.MoveNext() --- 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 Microsoft.SharePoint.Client.ClientRuntimeContext.<ExecuteQueryAsync>d__0.MoveNext() --- 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 Microsoft.SharePoint.Client.ClientContext.<ExecuteQueryAsync>d__4.MoveNext() --- 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() at Microsoft.SharePoint.Client.ClientContextExtensions.<ExecuteQueryImplementation>d__7.MoveNext() in c:\pnpbuild\Core\OfficeDevPnP.Core\Extensions\ClientContextExtensions.cs:line 145 --- 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() at Microsoft.SharePoint.Client.ClientContextExtensions.ExecuteQueryRetry(ClientRuntimeContext clientContext, Int32 retryCount, Int32 delay, String userAgent) in c:\pnpbuild\Core\OfficeDevPnP.Core\Extensions\ClientContextExtensions.cs:line 90 at Microsoft.SharePoint.Client.TenantExtensions.SetSiteLockState(Tenant tenant, String siteFullUrl, SiteLockState lockState, Boolean wait, Func`2 timeoutFunction) in c:\pnpbuild\Core\OfficeDevPnP.Core\Extensions\TenantExtensions.cs:line 532 at OfficeDevPnP.Core.Tests.AppModelExtensions.TenantExtensionsTests.SetSiteLockStateTest() in c:\pnpbuild\Core\OfficeDevPnP.Core.Tests\Extensions\TenantExtensionsTests.cs:line 394
Console output:
    SetSiteLockStateTest: step 1
!!Before creating site collection https://bertonline.sharepoint.com/sites/TestPnPSC_123456789_2b137c32-ce99-4a43-bc7b-ed28248f3d70
!!Site collection created https://bertonline.sharepoint.com/sites/TestPnPSC_123456789_2b137c32-ce99-4a43-bc7b-ed28248f3d70
SetSiteLockStateTest: step 1.1
SetSiteLockStateTest: step 1.2
SetSiteLockStateTest: step 2
SetSiteLockStateTest: step 2.1
SetSiteLockStateTest: step 2.1
SetSiteLockStateTest: step 3
Type = Microsoft.SharePoint.Client.ServerException
Message = Cannot set properties on site https://bertonline.sharepoint.com/sites/TestPnPSC_123456789_2b137c32-ce99-4a43-bc7b-ed28248f3d70 because the site is not currently available.
Source = Microsoft.SharePoint.Client.Runtime
ServerStackTrace = 
ServerErrorCode = -1
ServerErrorTypeName = Microsoft.Online.SharePoint.Common.SpoException
ServerErrorTraceCorrelationId = 5c56709e-30e7-5000-d040-675cfeee5159
TargetSite = Void ProcessResponseStream(System.IO.Stream)
StackTrace =    at Microsoft.SharePoint.Client.ClientRequest.ProcessResponseStream(Stream responseStream)
   at Microsoft.SharePoint.Client.ClientRequest.ProcessResponse()
   at Microsoft.SharePoint.Client.ClientRequest.<ExecuteQueryToServerAsync>d__4.MoveNext()
--- 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 Microsoft.SharePoint.Client.ClientRequest.<ExecuteQueryAsync>d__0.MoveNext()
--- 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 Microsoft.SharePoint.Client.ClientRuntimeContext.<ExecuteQueryAsync>d__0.MoveNext()
--- 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 Microsoft.SharePoint.Client.ClientContext.<ExecuteQueryAsync>d__4.MoveNext()
--- 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()
   at Microsoft.SharePoint.Client.ClientContextExtensions.<ExecuteQueryImplementation>d__7.MoveNext() in c:\pnpbuild\Core\OfficeDevPnP.Core\Extensions\ClientContextExtensions.cs:line 145
--- 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()
   at Microsoft.SharePoint.Client.ClientContextExtensions.ExecuteQueryRetry(ClientRuntimeContext clientContext, Int32 retryCount, Int32 delay, String userAgent) in c:\pnpbuild\Core\OfficeDevPnP.Core\Extensions\ClientContextExtensions.cs:line 90
   at Microsoft.SharePoint.Client.TenantExtensions.SetSiteLockState(Tenant tenant, String siteFullUrl, SiteLockState lockState, Boolean wait, Func`2 timeoutFunction) in c:\pnpbuild\Core\OfficeDevPnP.Core\Extensions\TenantExtensions.cs:line 532
   at OfficeDevPnP.Core.Tests.AppModelExtensions.TenantExtensionsTests.SetSiteLockStateTest() in c:\pnpbuild\Core\OfficeDevPnP.Core.Tests\Extensions\TenantExtensionsTests.cs:line 374
HResult = -2146233088



Debug Trace:
te.processhost.managed.exe Information: 0 : 2018-06-12 08:57:22.9730	[OfficeDevPnP.Core]	[0]	[Debug]	AuthenticationManager:EnsureToken(siteUrl:https://bertonline-admin.sharepoint.com,realm:d8623c9e-30c7-473a-83bc-d907df44a26e,appId:95632641-9424-4739-9771-97fdc5fb0f52,appSecret:PRIVATE)	0ms	
te.processhost.managed.exe Information: 0 : 2018-06-12 08:57:23.1449	[OfficeDevPnP.Core]	[0]	[Debug]	Lease expiration date: 6/12/2018 4:57:23 PM	0ms	
te.processhost.managed.exe Information: 0 : 2018-06-12 08:57:24.3324	[OfficeDevPnP.Core]	[0]	[Debug]	AuthenticationManager:EnsureToken(siteUrl:https://bertonline.sharepoint.com/sites/pnptest2,realm:d8623c9e-30c7-473a-83bc-d907df44a26e,appId:95632641-9424-4739-9771-97fdc5fb0f52,appSecret:PRIVATE)	0ms	
te.processhost.managed.exe Information: 0 : 2018-06-12 08:57:24.4726	[OfficeDevPnP.Core]	[0]	[Debug]	Lease expiration date: 6/12/2018 4:57:24 PM	0ms	
te.processhost.managed.exe Information: 0 : 2018-06-12 08:59:40.5533	[SetSiteLockState: Current: {0} Target: {1}]	[0]	[Information]	Unlock	0ms	
te.processhost.managed.exe Information: 0 : 2018-06-12 08:59:46.5067	[SetSiteLockState: Current: {0} Target: {1}]	[0]	[Information]	NoAccess	0ms