{"action":"created","comment":{"url":"https://api.github.com/repos/deis/workflow-manager/pulls/comments/63730984","id":63730984,"diff_hunk":"@@ -108,6 +148,101 @@ func TestGetAvailableVersions(t *testing.T) {\n \tassert.Equal(t, versions, mockVersions, \"component versions data\")\n }\n \n+func TestGetCluster(t *testing.T) {\n+\tmockCluster := getMockCluster(t)\n+\tcluster, err := GetCluster(mocks.InstalledMockData{}, &mocks.ClusterIDMockData{}, mocks.LatestMockData{})\n+\tassert.NoErr(t, err)\n+\tassert.Equal(t, cluster.ID, mockCluster.ID, \"ID value\")\n+\tfor i, component := range cluster.Components {\n+\t\t// verify that GetCluster returned the expected mock Component data\n+\t\tassert.Equal(t, component.Component, mockCluster.Components[i].Component, \"Component value\")\n+\t\t// verify that GetCluster returned the expected mock Version data\n+\t\tassert.Equal(t, component.Version, mockCluster.Components[i].Version, \"Version property\")\n+\t\t// TODO","path":"data/data_test.go","position":82,"original_position":82,"commit_id":"dd8e890ff8923c7ba88ee30a3f079cfd2ef1444e","original_commit_id":"dd8e890ff8923c7ba88ee30a3f079cfd2ef1444e","user":{"login":"vdice","id":9322017,"avatar_url":"https://avatars.githubusercontent.com/u/9322017?v=3","gravatar_id":"","url":"https://api.github.com/users/vdice","html_url":"https://github.com/vdice","followers_url":"https://api.github.com/users/vdice/followers","following_url":"https://api.github.com/users/vdice/following{/other_user}","gists_url":"https://api.github.com/users/vdice/gists{/gist_id}","starred_url":"https://api.github.com/users/vdice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vdice/subscriptions","organizations_url":"https://api.github.com/users/vdice/orgs","repos_url":"https://api.github.com/users/vdice/repos","events_url":"https://api.github.com/users/vdice/events{/privacy}","received_events_url":"https://api.github.com/users/vdice/received_events","type":"User","site_admin":false},"body":"Does this `TODO` still need to be finished for the PR?  If not, is there a ticket tracking it yet?","created_at":"2016-05-18T15:55:26Z","updated_at":"2016-05-18T15:55:26Z","html_url":"https://github.com/deis/workflow-manager/pull/42#discussion_r63730984","pull_request_url":"https://api.github.com/repos/deis/workflow-manager/pulls/42","_links":{"self":{"href":"https://api.github.com/repos/deis/workflow-manager/pulls/comments/63730984"},"html":{"href":"https://github.com/deis/workflow-manager/pull/42#discussion_r63730984"},"pull_request":{"href":"https://api.github.com/repos/deis/workflow-manager/pulls/42"}}},"pull_request":{"url":"https://api.github.com/repos/deis/workflow-manager/pulls/42","id":70278065,"html_url":"https://github.com/deis/workflow-manager/pull/42","diff_url":"https://github.com/deis/workflow-manager/pull/42.diff","patch_url":"https://github.com/deis/workflow-manager/pull/42.patch","issue_url":"https://api.github.com/repos/deis/workflow-manager/issues/42","number":42,"state":"open","locked":false,"title":"ref(data): implementing versions for real","user":{"login":"arschles","id":70865,"avatar_url":"https://avatars.githubusercontent.com/u/70865?v=3","gravatar_id":"","url":"https://api.github.com/users/arschles","html_url":"https://github.com/arschles","followers_url":"https://api.github.com/users/arschles/followers","following_url":"https://api.github.com/users/arschles/following{/other_user}","gists_url":"https://api.github.com/users/arschles/gists{/gist_id}","starred_url":"https://api.github.com/users/arschles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arschles/subscriptions","organizations_url":"https://api.github.com/users/arschles/orgs","repos_url":"https://api.github.com/users/arschles/repos","events_url":"https://api.github.com/users/arschles/events{/privacy}","received_events_url":"https://api.github.com/users/arschles/received_events","type":"User","site_admin":false},"body":"This PR does the following:\r\n\r\n- Implements a working version of the `(github.com/deis/workflow-manager/data/availableVersionsFromAPI).Refresh` function that actually makes requests to the versions server.\r\n- Moves the code in the `github.com/deis/workflow-manager/components` package into the `github.com/deis/workflow-manager/data` package\r\n\r\nThis work was previously completed in #37 as part of a bigger refactor. That refactor has since been split into multiple PRs, culminating with this one.\r\n\r\nDepends on #49\r\nCloses #37 ","created_at":"2016-05-16T23:26:05Z","updated_at":"2016-05-18T15:55:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"31335afd1ca35e9e72223900ab3d553e862e037d","assignee":{"login":"arschles","id":70865,"avatar_url":"https://avatars.githubusercontent.com/u/70865?v=3","gravatar_id":"","url":"https://api.github.com/users/arschles","html_url":"https://github.com/arschles","followers_url":"https://api.github.com/users/arschles/followers","following_url":"https://api.github.com/users/arschles/following{/other_user}","gists_url":"https://api.github.com/users/arschles/gists{/gist_id}","starred_url":"https://api.github.com/users/arschles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arschles/subscriptions","organizations_url":"https://api.github.com/users/arschles/orgs","repos_url":"https://api.github.com/users/arschles/repos","events_url":"https://api.github.com/users/arschles/events{/privacy}","received_events_url":"https://api.github.com/users/arschles/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/deis/workflow-manager/milestones/2","html_url":"https://github.com/deis/workflow-manager/milestones/v2.0-rc1","labels_url":"https://api.github.com/repos/deis/workflow-manager/milestones/2/labels","id":1624890,"number":2,"title":"v2.0-rc1","description":"","creator":{"login":"slack","id":28873,"avatar_url":"https://avatars.githubusercontent.com/u/28873?v=3","gravatar_id":"","url":"https://api.github.com/users/slack","html_url":"https://github.com/slack","followers_url":"https://api.github.com/users/slack/followers","following_url":"https://api.github.com/users/slack/following{/other_user}","gists_url":"https://api.github.com/users/slack/gists{/gist_id}","starred_url":"https://api.github.com/users/slack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slack/subscriptions","organizations_url":"https://api.github.com/users/slack/orgs","repos_url":"https://api.github.com/users/slack/repos","events_url":"https://api.github.com/users/slack/events{/privacy}","received_events_url":"https://api.github.com/users/slack/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":5,"state":"open","created_at":"2016-03-06T22:46:44Z","updated_at":"2016-05-17T22:22:45Z","due_on":"2016-05-25T06:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/deis/workflow-manager/pulls/42/commits","review_comments_url":"https://api.github.com/repos/deis/workflow-manager/pulls/42/comments","review_comment_url":"https://api.github.com/repos/deis/workflow-manager/pulls/comments{/number}","comments_url":"https://api.github.com/repos/deis/workflow-manager/issues/42/comments","statuses_url":"https://api.github.com/repos/deis/workflow-manager/statuses/dd8e890ff8923c7ba88ee30a3f079cfd2ef1444e","head":{"label":"arschles:versions-impl","ref":"versions-impl","sha":"dd8e890ff8923c7ba88ee30a3f079cfd2ef1444e","user":{"login":"arschles","id":70865,"avatar_url":"https://avatars.githubusercontent.com/u/70865?v=3","gravatar_id":"","url":"https://api.github.com/users/arschles","html_url":"https://github.com/arschles","followers_url":"https://api.github.com/users/arschles/followers","following_url":"https://api.github.com/users/arschles/following{/other_user}","gists_url":"https://api.github.com/users/arschles/gists{/gist_id}","starred_url":"https://api.github.com/users/arschles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arschles/subscriptions","organizations_url":"https://api.github.com/users/arschles/orgs","repos_url":"https://api.github.com/users/arschles/repos","events_url":"https://api.github.com/users/arschles/events{/privacy}","received_events_url":"https://api.github.com/users/arschles/received_events","type":"User","site_admin":false},"repo":{"id":56876750,"name":"deis-workflow-manager","full_name":"arschles/deis-workflow-manager","owner":{"login":"arschles","id":70865,"avatar_url":"https://avatars.githubusercontent.com/u/70865?v=3","gravatar_id":"","url":"https://api.github.com/users/arschles","html_url":"https://github.com/arschles","followers_url":"https://api.github.com/users/arschles/followers","following_url":"https://api.github.com/users/arschles/following{/other_user}","gists_url":"https://api.github.com/users/arschles/gists{/gist_id}","starred_url":"https://api.github.com/users/arschles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arschles/subscriptions","organizations_url":"https://api.github.com/users/arschles/orgs","repos_url":"https://api.github.com/users/arschles/repos","events_url":"https://api.github.com/users/arschles/events{/privacy}","received_events_url":"https://api.github.com/users/arschles/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/arschles/deis-workflow-manager","description":"Deis Workflow Manager: Cluster First Aid","fork":true,"url":"https://api.github.com/repos/arschles/deis-workflow-manager","forks_url":"https://api.github.com/repos/arschles/deis-workflow-manager/forks","keys_url":"https://api.github.com/repos/arschles/deis-workflow-manager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/arschles/deis-workflow-manager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/arschles/deis-workflow-manager/teams","hooks_url":"https://api.github.com/repos/arschles/deis-workflow-manager/hooks","issue_events_url":"https://api.github.com/repos/arschles/deis-workflow-manager/issues/events{/number}","events_url":"https://api.github.com/repos/arschles/deis-workflow-manager/events","assignees_url":"https://api.github.com/repos/arschles/deis-workflow-manager/assignees{/user}","branches_url":"https://api.github.com/repos/arschles/deis-workflow-manager/branches{/branch}","tags_url":"https://api.github.com/repos/arschles/deis-workflow-manager/tags","blobs_url":"https://api.github.com/repos/arschles/deis-workflow-manager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/arschles/deis-workflow-manager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/arschles/deis-workflow-manager/git/refs{/sha}","trees_url":"https://api.github.com/repos/arschles/deis-workflow-manager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/arschles/deis-workflow-manager/statuses/{sha}","languages_url":"https://api.github.com/repos/arschles/deis-workflow-manager/languages","stargazers_url":"https://api.github.com/repos/arschles/deis-workflow-manager/stargazers","contributors_url":"https://api.github.com/repos/arschles/deis-workflow-manager/contributors","subscribers_url":"https://api.github.com/repos/arschles/deis-workflow-manager/subscribers","subscription_url":"https://api.github.com/repos/arschles/deis-workflow-manager/subscription","commits_url":"https://api.github.com/repos/arschles/deis-workflow-manager/commits{/sha}","git_commits_url":"https://api.github.com/repos/arschles/deis-workflow-manager/git/commits{/sha}","comments_url":"https://api.github.com/repos/arschles/deis-workflow-manager/comments{/number}","issue_comment_url":"https://api.github.com/repos/arschles/deis-workflow-manager/issues/comments{/number}","contents_url":"https://api.github.com/repos/arschles/deis-workflow-manager/contents/{+path}","compare_url":"https://api.github.com/repos/arschles/deis-workflow-manager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/arschles/deis-workflow-manager/merges","archive_url":"https://api.github.com/repos/arschles/deis-workflow-manager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/arschles/deis-workflow-manager/downloads","issues_url":"https://api.github.com/repos/arschles/deis-workflow-manager/issues{/number}","pulls_url":"https://api.github.com/repos/arschles/deis-workflow-manager/pulls{/number}","milestones_url":"https://api.github.com/repos/arschles/deis-workflow-manager/milestones{/number}","notifications_url":"https://api.github.com/repos/arschles/deis-workflow-manager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/arschles/deis-workflow-manager/labels{/name}","releases_url":"https://api.github.com/repos/arschles/deis-workflow-manager/releases{/id}","deployments_url":"https://api.github.com/repos/arschles/deis-workflow-manager/deployments","created_at":"2016-04-22T18:24:50Z","updated_at":"2016-04-22T18:24:56Z","pushed_at":"2016-05-17T23:06:44Z","git_url":"git://github.com/arschles/deis-workflow-manager.git","ssh_url":"git@github.com:arschles/deis-workflow-manager.git","clone_url":"https://github.com/arschles/deis-workflow-manager.git","svn_url":"https://github.com/arschles/deis-workflow-manager","homepage":"","size":69,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"deis:master","ref":"master","sha":"689ca800a1cf83136a924c042c604e4095f9308b","user":{"login":"deis","id":6117407,"avatar_url":"https://avatars.githubusercontent.com/u/6117407?v=3","gravatar_id":"","url":"https://api.github.com/users/deis","html_url":"https://github.com/deis","followers_url":"https://api.github.com/users/deis/followers","following_url":"https://api.github.com/users/deis/following{/other_user}","gists_url":"https://api.github.com/users/deis/gists{/gist_id}","starred_url":"https://api.github.com/users/deis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deis/subscriptions","organizations_url":"https://api.github.com/users/deis/orgs","repos_url":"https://api.github.com/users/deis/repos","events_url":"https://api.github.com/users/deis/events{/privacy}","received_events_url":"https://api.github.com/users/deis/received_events","type":"Organization","site_admin":false},"repo":{"id":51403061,"name":"workflow-manager","full_name":"deis/workflow-manager","owner":{"login":"deis","id":6117407,"avatar_url":"https://avatars.githubusercontent.com/u/6117407?v=3","gravatar_id":"","url":"https://api.github.com/users/deis","html_url":"https://github.com/deis","followers_url":"https://api.github.com/users/deis/followers","following_url":"https://api.github.com/users/deis/following{/other_user}","gists_url":"https://api.github.com/users/deis/gists{/gist_id}","starred_url":"https://api.github.com/users/deis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deis/subscriptions","organizations_url":"https://api.github.com/users/deis/orgs","repos_url":"https://api.github.com/users/deis/repos","events_url":"https://api.github.com/users/deis/events{/privacy}","received_events_url":"https://api.github.com/users/deis/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/deis/workflow-manager","description":"Deis Workflow Manager: Cluster First Aid","fork":false,"url":"https://api.github.com/repos/deis/workflow-manager","forks_url":"https://api.github.com/repos/deis/workflow-manager/forks","keys_url":"https://api.github.com/repos/deis/workflow-manager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/deis/workflow-manager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/deis/workflow-manager/teams","hooks_url":"https://api.github.com/repos/deis/workflow-manager/hooks","issue_events_url":"https://api.github.com/repos/deis/workflow-manager/issues/events{/number}","events_url":"https://api.github.com/repos/deis/workflow-manager/events","assignees_url":"https://api.github.com/repos/deis/workflow-manager/assignees{/user}","branches_url":"https://api.github.com/repos/deis/workflow-manager/branches{/branch}","tags_url":"https://api.github.com/repos/deis/workflow-manager/tags","blobs_url":"https://api.github.com/repos/deis/workflow-manager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/deis/workflow-manager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/deis/workflow-manager/git/refs{/sha}","trees_url":"https://api.github.com/repos/deis/workflow-manager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/deis/workflow-manager/statuses/{sha}","languages_url":"https://api.github.com/repos/deis/workflow-manager/languages","stargazers_url":"https://api.github.com/repos/deis/workflow-manager/stargazers","contributors_url":"https://api.github.com/repos/deis/workflow-manager/contributors","subscribers_url":"https://api.github.com/repos/deis/workflow-manager/subscribers","subscription_url":"https://api.github.com/repos/deis/workflow-manager/subscription","commits_url":"https://api.github.com/repos/deis/workflow-manager/commits{/sha}","git_commits_url":"https://api.github.com/repos/deis/workflow-manager/git/commits{/sha}","comments_url":"https://api.github.com/repos/deis/workflow-manager/comments{/number}","issue_comment_url":"https://api.github.com/repos/deis/workflow-manager/issues/comments{/number}","contents_url":"https://api.github.com/repos/deis/workflow-manager/contents/{+path}","compare_url":"https://api.github.com/repos/deis/workflow-manager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/deis/workflow-manager/merges","archive_url":"https://api.github.com/repos/deis/workflow-manager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/deis/workflow-manager/downloads","issues_url":"https://api.github.com/repos/deis/workflow-manager/issues{/number}","pulls_url":"https://api.github.com/repos/deis/workflow-manager/pulls{/number}","milestones_url":"https://api.github.com/repos/deis/workflow-manager/milestones{/number}","notifications_url":"https://api.github.com/repos/deis/workflow-manager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/deis/workflow-manager/labels{/name}","releases_url":"https://api.github.com/repos/deis/workflow-manager/releases{/id}","deployments_url":"https://api.github.com/repos/deis/workflow-manager/deployments","created_at":"2016-02-09T21:56:20Z","updated_at":"2016-05-17T09:06:16Z","pushed_at":"2016-05-18T15:21:55Z","git_url":"git://github.com/deis/workflow-manager.git","ssh_url":"git@github.com:deis/workflow-manager.git","clone_url":"https://github.com/deis/workflow-manager.git","svn_url":"https://github.com/deis/workflow-manager","homepage":"","size":140,"stargazers_count":7,"watchers_count":7,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":12,"forks":10,"open_issues":12,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/deis/workflow-manager/pulls/42"},"html":{"href":"https://github.com/deis/workflow-manager/pull/42"},"issue":{"href":"https://api.github.com/repos/deis/workflow-manager/issues/42"},"comments":{"href":"https://api.github.com/repos/deis/workflow-manager/issues/42/comments"},"review_comments":{"href":"https://api.github.com/repos/deis/workflow-manager/pulls/42/comments"},"review_comment":{"href":"https://api.github.com/repos/deis/workflow-manager/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/deis/workflow-manager/pulls/42/commits"},"statuses":{"href":"https://api.github.com/repos/deis/workflow-manager/statuses/dd8e890ff8923c7ba88ee30a3f079cfd2ef1444e"}}}}