{"action":"opened","issue":{"url":"https://api.github.com/repos/projectkudu/kudu/issues/1765","labels_url":"https://api.github.com/repos/projectkudu/kudu/issues/1765/labels{/name}","comments_url":"https://api.github.com/repos/projectkudu/kudu/issues/1765/comments","events_url":"https://api.github.com/repos/projectkudu/kudu/issues/1765/events","html_url":"https://github.com/projectkudu/kudu/issues/1765","id":113021040,"number":1765,"title":"Unable to run functional tests","user":{"login":"sitereactor","id":1398823,"avatar_url":"https://avatars.githubusercontent.com/u/1398823?v=3","gravatar_id":"","url":"https://api.github.com/users/sitereactor","html_url":"https://github.com/sitereactor","followers_url":"https://api.github.com/users/sitereactor/followers","following_url":"https://api.github.com/users/sitereactor/following{/other_user}","gists_url":"https://api.github.com/users/sitereactor/gists{/gist_id}","starred_url":"https://api.github.com/users/sitereactor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sitereactor/subscriptions","organizations_url":"https://api.github.com/users/sitereactor/orgs","repos_url":"https://api.github.com/users/sitereactor/repos","events_url":"https://api.github.com/users/sitereactor/events{/privacy}","received_events_url":"https://api.github.com/users/sitereactor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-23T13:37:02Z","updated_at":"2015-10-23T13:37:02Z","closed_at":null,"body":"I have been following this guide https://github.com/projectkudu/kudu/wiki/Getting-started in order to get the functional tests to run locally, but have been unsuccessful. All tests continue to fail even though I have been through all the steps in the guide above.\r\n\r\nIt looks like all the folders are created (ie. `C:\\Kudu-Test-Files\\KuduApps`), and I can see that the site(s) are created in IIS (kudu_*). But for a test like `AppChangesShouldTriggerBuildTests` I see in an `System.Net.Http.HttpRequestExceptionResponse status code does not indicate success: 401 (Unauthorized).` error, which I assume should not happen. Below is the full stack trace.\r\n\r\nAny pointers as to what could be wrong in my setup? (I'm running VS2013 as Admin, and I've tried granting \"Network Service\" full control over the Kudu.Services.Web folder within the solution).\r\n\r\n```\r\nSystem.AggregateExceptionOne or more errors occurred.\r\n   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)\r\n   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)\r\n   at System.Threading.Tasks.Task.Wait()\r\n   at Kudu.TestHarness.ApplicationManager.Run(String testName, Action`1 action) in ApplicationManager.cs: line 242\r\n   at Kudu.FunctionalTests.AppChangesShouldTriggerBuildTests.PushAppChangesShouldTriggerBuild() in GitRepositoryManagementTests.cs: line 329\r\nSystem.AggregateExceptionOne or more errors occurred.\r\n   at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)\r\n   at Kudu.TestHarness.SitePool.<CreateApplicationInternal>d__c.MoveNext() in SitePool.cs: line 116\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n   at Kudu.TestHarness.SitePool.<CreateApplicationAsync>d__0.MoveNext() in SitePool.cs: line 45\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n   at Kudu.TestHarness.ApplicationManager.<RunNoCatch>d__7.MoveNext() in ApplicationManager.cs: line 259\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()\r\n   at Kudu.TestHarness.ApplicationManager.<RunAsync>d__4.MoveNext() in ApplicationManager.cs: line 252\r\nSystem.Net.Http.HttpRequestExceptionResponse status code does not indicate success: 401 (Unauthorized).\r\n   at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()\r\n   at Kudu.SiteManagement.SiteManager.<WaitForSiteAsync>d__48.MoveNext() in SiteManager.cs: line 598\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()\r\n   at Kudu.Core.Infrastructure.OperationManager.<>c__DisplayClass4.<<AttemptAsync>b__3>d__6.MoveNext() in OperationManager.cs: line 56\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n   at Kudu.Core.Infrastructure.OperationManager.<AttemptAsync>d__9`1.MoveNext() in OperationManager.cs: line 76\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()\r\n   at Kudu.SiteManagement.SiteManager.<CreateSiteAsync>d__15.MoveNext() in SiteManager.cs: line 180\r\n```"}}