{"action":"created","comment":{"url":"https://api.github.com/repos/Microsoft/vsts-tasks/pulls/comments/90164777","pull_request_review_id":10687585,"id":90164777,"diff_hunk":"@@ -0,0 +1,27 @@\n+[CmdletBinding()]\n+param()\n+\n+. $PSScriptRoot\\..\\..\\..\\Tests\\lib\\Initialize-Test.ps1\n+\n+. $PSScriptRoot\\..\\Utility.ps1\n+. $PSScriptRoot\\MockVariable.ps1\n+. $PSScriptRoot\\MockHelper.ps1\n+\n+Register-Mock Write-Telemetry {}\n+\n+$validRG = \"AzureFileCopyTaskPlatformTestDoNotDelete\"\n+$azureRMVMResources = Get-AzureRMVMsInResourceGroup -resourceGroupName $validRG\n+\n+# Test 1 \"should call tag filter if machineNames filter selected and no filter provided\"\n+$filteredAzureVMResources = Get-FilteredAzureVMsInResourceGroup -azureVMResources $azureRMVMResources -resourceFilteringMethod \"machineNames\" -filter \"\"\n+Assert-AreEqual 3 $filteredAzureVMResources.Count\n+\n+# Test 2 \"should call tag filter when tags filter selected and non-empty filter provided\" \n+$filteredAzureVMResources = Get-FilteredAzureVMsInResourceGroup -azureVMResources $azureRMVMResources -resourceFilteringMethod \"tags\" -filter \"role:web\"\n+Assert-AreEqual 0 $filteredAzureVMResources.Count\n+\n+Register-Mock Get-MachineBasedFilteredAzureVMs { }\n+\n+# Test 3 \"should call Get-MachineBasedFilteredAzureVMs for machineNames filter with non-empty filter\"\n+$filteredAzureVMResources = Get-FilteredAzureVMsInResourceGroup -azureVMResources $azureRMVMResources -resourceFilteringMethod \"machineNames\" -filter \"vm0\"\n+Assert-AreEqual 0 $filteredAzureVMResources.Count","path":"Tasks/AzureFileCopy/Tests/L0GetFilteredAzureVmsInResourceGroup.ps1","position":27,"original_position":27,"commit_id":"205863bb7c29891ba75da458b0ab1b821a0a58fa","original_commit_id":"205863bb7c29891ba75da458b0ab1b821a0a58fa","user":{"login":"vincentdass","id":20121508,"avatar_url":"https://avatars.githubusercontent.com/u/20121508?v=3","gravatar_id":"","url":"https://api.github.com/users/vincentdass","html_url":"https://github.com/vincentdass","followers_url":"https://api.github.com/users/vincentdass/followers","following_url":"https://api.github.com/users/vincentdass/following{/other_user}","gists_url":"https://api.github.com/users/vincentdass/gists{/gist_id}","starred_url":"https://api.github.com/users/vincentdass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vincentdass/subscriptions","organizations_url":"https://api.github.com/users/vincentdass/orgs","repos_url":"https://api.github.com/users/vincentdass/repos","events_url":"https://api.github.com/users/vincentdass/events{/privacy}","received_events_url":"https://api.github.com/users/vincentdass/received_events","type":"User","site_admin":false},"body":"since no function is mocked, we cannot count the number of times the method invoked. ","created_at":"2016-11-30T03:52:56Z","updated_at":"2016-11-30T03:52:56Z","html_url":"https://github.com/Microsoft/vsts-tasks/pull/3140#discussion_r90164777","pull_request_url":"https://api.github.com/repos/Microsoft/vsts-tasks/pulls/3140","_links":{"self":{"href":"https://api.github.com/repos/Microsoft/vsts-tasks/pulls/comments/90164777"},"html":{"href":"https://github.com/Microsoft/vsts-tasks/pull/3140#discussion_r90164777"},"pull_request":{"href":"https://api.github.com/repos/Microsoft/vsts-tasks/pulls/3140"}}},"pull_request":{"url":"https://api.github.com/repos/Microsoft/vsts-tasks/pulls/3140","id":94949398,"html_url":"https://github.com/Microsoft/vsts-tasks/pull/3140","diff_url":"https://github.com/Microsoft/vsts-tasks/pull/3140.diff","patch_url":"https://github.com/Microsoft/vsts-tasks/pull/3140.patch","issue_url":"https://api.github.com/repos/Microsoft/vsts-tasks/issues/3140","number":3140,"state":"open","locked":false,"title":"L0 Test for AzureFileCopy Task Utility","user":{"login":"vincentdass","id":20121508,"avatar_url":"https://avatars.githubusercontent.com/u/20121508?v=3","gravatar_id":"","url":"https://api.github.com/users/vincentdass","html_url":"https://github.com/vincentdass","followers_url":"https://api.github.com/users/vincentdass/followers","following_url":"https://api.github.com/users/vincentdass/following{/other_user}","gists_url":"https://api.github.com/users/vincentdass/gists{/gist_id}","starred_url":"https://api.github.com/users/vincentdass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vincentdass/subscriptions","organizations_url":"https://api.github.com/users/vincentdass/orgs","repos_url":"https://api.github.com/users/vincentdass/repos","events_url":"https://api.github.com/users/vincentdass/events{/privacy}","received_events_url":"https://api.github.com/users/vincentdass/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-23T06:08:39Z","updated_at":"2016-11-30T03:52:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"054316c258aa40f553754d766a61e71af28384da","assignee":{"login":"kmkumaran","id":11780076,"avatar_url":"https://avatars.githubusercontent.com/u/11780076?v=3","gravatar_id":"","url":"https://api.github.com/users/kmkumaran","html_url":"https://github.com/kmkumaran","followers_url":"https://api.github.com/users/kmkumaran/followers","following_url":"https://api.github.com/users/kmkumaran/following{/other_user}","gists_url":"https://api.github.com/users/kmkumaran/gists{/gist_id}","starred_url":"https://api.github.com/users/kmkumaran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmkumaran/subscriptions","organizations_url":"https://api.github.com/users/kmkumaran/orgs","repos_url":"https://api.github.com/users/kmkumaran/repos","events_url":"https://api.github.com/users/kmkumaran/events{/privacy}","received_events_url":"https://api.github.com/users/kmkumaran/received_events","type":"User","site_admin":false},"assignees":[{"login":"kmkumaran","id":11780076,"avatar_url":"https://avatars.githubusercontent.com/u/11780076?v=3","gravatar_id":"","url":"https://api.github.com/users/kmkumaran","html_url":"https://github.com/kmkumaran","followers_url":"https://api.github.com/users/kmkumaran/followers","following_url":"https://api.github.com/users/kmkumaran/following{/other_user}","gists_url":"https://api.github.com/users/kmkumaran/gists{/gist_id}","starred_url":"https://api.github.com/users/kmkumaran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmkumaran/subscriptions","organizations_url":"https://api.github.com/users/kmkumaran/orgs","repos_url":"https://api.github.com/users/kmkumaran/repos","events_url":"https://api.github.com/users/kmkumaran/events{/privacy}","received_events_url":"https://api.github.com/users/kmkumaran/received_events","type":"User","site_admin":false},{"login":"mvvsubbu","id":11993108,"avatar_url":"https://avatars.githubusercontent.com/u/11993108?v=3","gravatar_id":"","url":"https://api.github.com/users/mvvsubbu","html_url":"https://github.com/mvvsubbu","followers_url":"https://api.github.com/users/mvvsubbu/followers","following_url":"https://api.github.com/users/mvvsubbu/following{/other_user}","gists_url":"https://api.github.com/users/mvvsubbu/gists{/gist_id}","starred_url":"https://api.github.com/users/mvvsubbu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mvvsubbu/subscriptions","organizations_url":"https://api.github.com/users/mvvsubbu/orgs","repos_url":"https://api.github.com/users/mvvsubbu/repos","events_url":"https://api.github.com/users/mvvsubbu/events{/privacy}","received_events_url":"https://api.github.com/users/mvvsubbu/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/Microsoft/vsts-tasks/pulls/3140/commits","review_comments_url":"https://api.github.com/repos/Microsoft/vsts-tasks/pulls/3140/comments","review_comment_url":"https://api.github.com/repos/Microsoft/vsts-tasks/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Microsoft/vsts-tasks/issues/3140/comments","statuses_url":"https://api.github.com/repos/Microsoft/vsts-tasks/statuses/205863bb7c29891ba75da458b0ab1b821a0a58fa","head":{"label":"Microsoft:users/vinca/TestForAzureFileCopy","ref":"users/vinca/TestForAzureFileCopy","sha":"205863bb7c29891ba75da458b0ab1b821a0a58fa","user":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars.githubusercontent.com/u/6154722?v=3","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":27631673,"name":"vsts-tasks","full_name":"Microsoft/vsts-tasks","owner":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars.githubusercontent.com/u/6154722?v=3","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Microsoft/vsts-tasks","description":"Build and Release Tasks for Visual Studio Team Services and Team Foundation Server","fork":false,"url":"https://api.github.com/repos/Microsoft/vsts-tasks","forks_url":"https://api.github.com/repos/Microsoft/vsts-tasks/forks","keys_url":"https://api.github.com/repos/Microsoft/vsts-tasks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Microsoft/vsts-tasks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Microsoft/vsts-tasks/teams","hooks_url":"https://api.github.com/repos/Microsoft/vsts-tasks/hooks","issue_events_url":"https://api.github.com/repos/Microsoft/vsts-tasks/issues/events{/number}","events_url":"https://api.github.com/repos/Microsoft/vsts-tasks/events","assignees_url":"https://api.github.com/repos/Microsoft/vsts-tasks/assignees{/user}","branches_url":"https://api.github.com/repos/Microsoft/vsts-tasks/branches{/branch}","tags_url":"https://api.github.com/repos/Microsoft/vsts-tasks/tags","blobs_url":"https://api.github.com/repos/Microsoft/vsts-tasks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Microsoft/vsts-tasks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Microsoft/vsts-tasks/git/refs{/sha}","trees_url":"https://api.github.com/repos/Microsoft/vsts-tasks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Microsoft/vsts-tasks/statuses/{sha}","languages_url":"https://api.github.com/repos/Microsoft/vsts-tasks/languages","stargazers_url":"https://api.github.com/repos/Microsoft/vsts-tasks/stargazers","contributors_url":"https://api.github.com/repos/Microsoft/vsts-tasks/contributors","subscribers_url":"https://api.github.com/repos/Microsoft/vsts-tasks/subscribers","subscription_url":"https://api.github.com/repos/Microsoft/vsts-tasks/subscription","commits_url":"https://api.github.com/repos/Microsoft/vsts-tasks/commits{/sha}","git_commits_url":"https://api.github.com/repos/Microsoft/vsts-tasks/git/commits{/sha}","comments_url":"https://api.github.com/repos/Microsoft/vsts-tasks/comments{/number}","issue_comment_url":"https://api.github.com/repos/Microsoft/vsts-tasks/issues/comments{/number}","contents_url":"https://api.github.com/repos/Microsoft/vsts-tasks/contents/{+path}","compare_url":"https://api.github.com/repos/Microsoft/vsts-tasks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Microsoft/vsts-tasks/merges","archive_url":"https://api.github.com/repos/Microsoft/vsts-tasks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Microsoft/vsts-tasks/downloads","issues_url":"https://api.github.com/repos/Microsoft/vsts-tasks/issues{/number}","pulls_url":"https://api.github.com/repos/Microsoft/vsts-tasks/pulls{/number}","milestones_url":"https://api.github.com/repos/Microsoft/vsts-tasks/milestones{/number}","notifications_url":"https://api.github.com/repos/Microsoft/vsts-tasks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Microsoft/vsts-tasks/labels{/name}","releases_url":"https://api.github.com/repos/Microsoft/vsts-tasks/releases{/id}","deployments_url":"https://api.github.com/repos/Microsoft/vsts-tasks/deployments","created_at":"2014-12-06T11:11:46Z","updated_at":"2016-11-30T03:24:41Z","pushed_at":"2016-11-29T19:13:06Z","git_url":"git://github.com/Microsoft/vsts-tasks.git","ssh_url":"git@github.com:Microsoft/vsts-tasks.git","clone_url":"https://github.com/Microsoft/vsts-tasks.git","svn_url":"https://github.com/Microsoft/vsts-tasks","homepage":"https://aka.ms/tfbuild","size":24870,"stargazers_count":463,"watchers_count":463,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":421,"mirror_url":null,"open_issues_count":113,"forks":421,"open_issues":113,"watchers":463,"default_branch":"master"}},"base":{"label":"Microsoft:master","ref":"master","sha":"df22f8e6d752cc11c44062397780e6b69a8e817b","user":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars.githubusercontent.com/u/6154722?v=3","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":27631673,"name":"vsts-tasks","full_name":"Microsoft/vsts-tasks","owner":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars.githubusercontent.com/u/6154722?v=3","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Microsoft/vsts-tasks","description":"Build and Release Tasks for Visual Studio Team Services and Team Foundation Server","fork":false,"url":"https://api.github.com/repos/Microsoft/vsts-tasks","forks_url":"https://api.github.com/repos/Microsoft/vsts-tasks/forks","keys_url":"https://api.github.com/repos/Microsoft/vsts-tasks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Microsoft/vsts-tasks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Microsoft/vsts-tasks/teams","hooks_url":"https://api.github.com/repos/Microsoft/vsts-tasks/hooks","issue_events_url":"https://api.github.com/repos/Microsoft/vsts-tasks/issues/events{/number}","events_url":"https://api.github.com/repos/Microsoft/vsts-tasks/events","assignees_url":"https://api.github.com/repos/Microsoft/vsts-tasks/assignees{/user}","branches_url":"https://api.github.com/repos/Microsoft/vsts-tasks/branches{/branch}","tags_url":"https://api.github.com/repos/Microsoft/vsts-tasks/tags","blobs_url":"https://api.github.com/repos/Microsoft/vsts-tasks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Microsoft/vsts-tasks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Microsoft/vsts-tasks/git/refs{/sha}","trees_url":"https://api.github.com/repos/Microsoft/vsts-tasks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Microsoft/vsts-tasks/statuses/{sha}","languages_url":"https://api.github.com/repos/Microsoft/vsts-tasks/languages","stargazers_url":"https://api.github.com/repos/Microsoft/vsts-tasks/stargazers","contributors_url":"https://api.github.com/repos/Microsoft/vsts-tasks/contributors","subscribers_url":"https://api.github.com/repos/Microsoft/vsts-tasks/subscribers","subscription_url":"https://api.github.com/repos/Microsoft/vsts-tasks/subscription","commits_url":"https://api.github.com/repos/Microsoft/vsts-tasks/commits{/sha}","git_commits_url":"https://api.github.com/repos/Microsoft/vsts-tasks/git/commits{/sha}","comments_url":"https://api.github.com/repos/Microsoft/vsts-tasks/comments{/number}","issue_comment_url":"https://api.github.com/repos/Microsoft/vsts-tasks/issues/comments{/number}","contents_url":"https://api.github.com/repos/Microsoft/vsts-tasks/contents/{+path}","compare_url":"https://api.github.com/repos/Microsoft/vsts-tasks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Microsoft/vsts-tasks/merges","archive_url":"https://api.github.com/repos/Microsoft/vsts-tasks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Microsoft/vsts-tasks/downloads","issues_url":"https://api.github.com/repos/Microsoft/vsts-tasks/issues{/number}","pulls_url":"https://api.github.com/repos/Microsoft/vsts-tasks/pulls{/number}","milestones_url":"https://api.github.com/repos/Microsoft/vsts-tasks/milestones{/number}","notifications_url":"https://api.github.com/repos/Microsoft/vsts-tasks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Microsoft/vsts-tasks/labels{/name}","releases_url":"https://api.github.com/repos/Microsoft/vsts-tasks/releases{/id}","deployments_url":"https://api.github.com/repos/Microsoft/vsts-tasks/deployments","created_at":"2014-12-06T11:11:46Z","updated_at":"2016-11-30T03:24:41Z","pushed_at":"2016-11-29T19:13:06Z","git_url":"git://github.com/Microsoft/vsts-tasks.git","ssh_url":"git@github.com:Microsoft/vsts-tasks.git","clone_url":"https://github.com/Microsoft/vsts-tasks.git","svn_url":"https://github.com/Microsoft/vsts-tasks","homepage":"https://aka.ms/tfbuild","size":24870,"stargazers_count":463,"watchers_count":463,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":421,"mirror_url":null,"open_issues_count":113,"forks":421,"open_issues":113,"watchers":463,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Microsoft/vsts-tasks/pulls/3140"},"html":{"href":"https://github.com/Microsoft/vsts-tasks/pull/3140"},"issue":{"href":"https://api.github.com/repos/Microsoft/vsts-tasks/issues/3140"},"comments":{"href":"https://api.github.com/repos/Microsoft/vsts-tasks/issues/3140/comments"},"review_comments":{"href":"https://api.github.com/repos/Microsoft/vsts-tasks/pulls/3140/comments"},"review_comment":{"href":"https://api.github.com/repos/Microsoft/vsts-tasks/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Microsoft/vsts-tasks/pulls/3140/commits"},"statuses":{"href":"https://api.github.com/repos/Microsoft/vsts-tasks/statuses/205863bb7c29891ba75da458b0ab1b821a0a58fa"}}}}
{"actor":{"display_login":"vincentdass"}}