{"action":"created","comment":{"url":"https://api.github.com/repos/coreos/tectonic-installer/pulls/comments/126501777","pull_request_review_id":48991955,"id":126501777,"diff_hunk":"@@ -0,0 +1,87 @@\n+const fs = require('fs');\n+const path = require('path');\n+\n+const bareMetalJsonPath = path.join(__dirname, '..', '..', '__tests__', 'examples', 'metal.json');\n+// eslint-disable-next-line no-sync\n+const bareMetalTestDataJson = JSON.parse(fs.readFileSync(bareMetalJsonPath, 'utf8'));\n+const json = bareMetalTestDataJson.variables;\n+\n+/** Returns expected json. This json is used to prep the data required for the test */\n+const buildExpectedJson = () => {\n+  delete json.tectonic_admin_password_hash;\n+  return json;\n+};\n+\n+const tectonicMetalControllerDomain = () => {\n+  return json.tectonic_metal_controller_domain;\n+};\n+\n+const tectonicMetalIngressDomain = () => {\n+  return json.tectonic_metal_ingress_domain;\n+};\n+\n+const tectonicMetalMatchboxHttpUrl = () => {\n+  return json.tectonic_metal_matchbox_http_url;\n+};\n+\n+const tectonicMetalMatchboxRpcEndpoint = () => {\n+  return json.tectonic_metal_matchbox_rpc_endpoint;\n+};\n+\n+const tectonicMetalMatchboxCa = () => {\n+  return json.tectonic_metal_matchbox_ca;\n+};\n+\n+const tectonicMetalMatchboxClientCert = () => {\n+  return json.tectonic_metal_matchbox_client_cert;\n+};\n+\n+const tectonicMetalMatchboxClientKey = () => {\n+  return json.tectonic_metal_matchbox_client_key;\n+};\n+\n+const tectonicSshAuthKey = () => {\n+  return json.tectonic_ssh_authorized_key;\n+};\n+\n+const tectonicMetalControllerMacs = () => {\n+  return json.tectonic_metal_controller_macs;\n+};\n+\n+const tectonicMetalWorkerMacs = () => {\n+  return json.tectonic_metal_worker_macs;\n+};\n+\n+const tectonicMetalControllerHost = () => {\n+  return json.tectonic_metal_controller_domains;\n+};\n+\n+const tectonicMetalWorkerDomains = () => {\n+  return json.tectonic_metal_worker_domains;\n+};\n+\n+const adminEmail = () => {\n+  return json.tectonic_admin_email;\n+};\n+\n+const adminPassword = () => {","path":"installer/frontend/ui-tests/utils/bareMetalInstallerInput.js","position":67,"original_position":67,"commit_id":"2cc1100c2be9284ba4918a5f79507bdbf15a2796","original_commit_id":"2cc1100c2be9284ba4918a5f79507bdbf15a2796","user":{"login":"gopilal","id":1329027,"avatar_url":"https://avatars1.githubusercontent.com/u/1329027?v=3","gravatar_id":"","url":"https://api.github.com/users/gopilal","html_url":"https://github.com/gopilal","followers_url":"https://api.github.com/users/gopilal/followers","following_url":"https://api.github.com/users/gopilal/following{/other_user}","gists_url":"https://api.github.com/users/gopilal/gists{/gist_id}","starred_url":"https://api.github.com/users/gopilal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gopilal/subscriptions","organizations_url":"https://api.github.com/users/gopilal/orgs","repos_url":"https://api.github.com/users/gopilal/repos","events_url":"https://api.github.com/users/gopilal/events{/privacy}","received_events_url":"https://api.github.com/users/gopilal/received_events","type":"User","site_admin":false},"body":"If we want to use these functions in multiple places [ex: pages, tests].  ","created_at":"2017-07-10T18:32:21Z","updated_at":"2017-07-10T18:32:21Z","html_url":"https://github.com/coreos/tectonic-installer/pull/1215#discussion_r126501777","pull_request_url":"https://api.github.com/repos/coreos/tectonic-installer/pulls/1215","_links":{"self":{"href":"https://api.github.com/repos/coreos/tectonic-installer/pulls/comments/126501777"},"html":{"href":"https://github.com/coreos/tectonic-installer/pull/1215#discussion_r126501777"},"pull_request":{"href":"https://api.github.com/repos/coreos/tectonic-installer/pulls/1215"}}},"pull_request":{"url":"https://api.github.com/repos/coreos/tectonic-installer/pulls/1215","id":127817642,"html_url":"https://github.com/coreos/tectonic-installer/pull/1215","diff_url":"https://github.com/coreos/tectonic-installer/pull/1215.diff","patch_url":"https://github.com/coreos/tectonic-installer/pull/1215.patch","issue_url":"https://api.github.com/repos/coreos/tectonic-installer/issues/1215","number":1215,"state":"open","locked":false,"title":"baremetal gui tests","user":{"login":"gopilal","id":1329027,"avatar_url":"https://avatars1.githubusercontent.com/u/1329027?v=3","gravatar_id":"","url":"https://api.github.com/users/gopilal","html_url":"https://github.com/gopilal","followers_url":"https://api.github.com/users/gopilal/followers","following_url":"https://api.github.com/users/gopilal/following{/other_user}","gists_url":"https://api.github.com/users/gopilal/gists{/gist_id}","starred_url":"https://api.github.com/users/gopilal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gopilal/subscriptions","organizations_url":"https://api.github.com/users/gopilal/orgs","repos_url":"https://api.github.com/users/gopilal/repos","events_url":"https://api.github.com/users/gopilal/events{/privacy}","received_events_url":"https://api.github.com/users/gopilal/received_events","type":"User","site_admin":false},"body":"gui baremetal tests for tectonic installer.\r\nwill address jenkins / matchbox integration - Done\r\n","created_at":"2017-06-28T00:02:03Z","updated_at":"2017-07-10T18:32:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ba1766543ceaf977539f21a9232935861d3dbe81","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/coreos/tectonic-installer/pulls/1215/commits","review_comments_url":"https://api.github.com/repos/coreos/tectonic-installer/pulls/1215/comments","review_comment_url":"https://api.github.com/repos/coreos/tectonic-installer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/coreos/tectonic-installer/issues/1215/comments","statuses_url":"https://api.github.com/repos/coreos/tectonic-installer/statuses/2cc1100c2be9284ba4918a5f79507bdbf15a2796","head":{"label":"gopilal:gui-baremetal-tests","ref":"gui-baremetal-tests","sha":"2cc1100c2be9284ba4918a5f79507bdbf15a2796","user":{"login":"gopilal","id":1329027,"avatar_url":"https://avatars1.githubusercontent.com/u/1329027?v=3","gravatar_id":"","url":"https://api.github.com/users/gopilal","html_url":"https://github.com/gopilal","followers_url":"https://api.github.com/users/gopilal/followers","following_url":"https://api.github.com/users/gopilal/following{/other_user}","gists_url":"https://api.github.com/users/gopilal/gists{/gist_id}","starred_url":"https://api.github.com/users/gopilal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gopilal/subscriptions","organizations_url":"https://api.github.com/users/gopilal/orgs","repos_url":"https://api.github.com/users/gopilal/repos","events_url":"https://api.github.com/users/gopilal/events{/privacy}","received_events_url":"https://api.github.com/users/gopilal/received_events","type":"User","site_admin":false},"repo":{"id":89641866,"name":"tectonic-installer","full_name":"gopilal/tectonic-installer","owner":{"login":"gopilal","id":1329027,"avatar_url":"https://avatars1.githubusercontent.com/u/1329027?v=3","gravatar_id":"","url":"https://api.github.com/users/gopilal","html_url":"https://github.com/gopilal","followers_url":"https://api.github.com/users/gopilal/followers","following_url":"https://api.github.com/users/gopilal/following{/other_user}","gists_url":"https://api.github.com/users/gopilal/gists{/gist_id}","starred_url":"https://api.github.com/users/gopilal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gopilal/subscriptions","organizations_url":"https://api.github.com/users/gopilal/orgs","repos_url":"https://api.github.com/users/gopilal/repos","events_url":"https://api.github.com/users/gopilal/events{/privacy}","received_events_url":"https://api.github.com/users/gopilal/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gopilal/tectonic-installer","description":"Install a Kubernetes cluster the CoreOS Tectonic Way: HA, self-hosted, RBAC, etcd Operator, and more","fork":true,"url":"https://api.github.com/repos/gopilal/tectonic-installer","forks_url":"https://api.github.com/repos/gopilal/tectonic-installer/forks","keys_url":"https://api.github.com/repos/gopilal/tectonic-installer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gopilal/tectonic-installer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gopilal/tectonic-installer/teams","hooks_url":"https://api.github.com/repos/gopilal/tectonic-installer/hooks","issue_events_url":"https://api.github.com/repos/gopilal/tectonic-installer/issues/events{/number}","events_url":"https://api.github.com/repos/gopilal/tectonic-installer/events","assignees_url":"https://api.github.com/repos/gopilal/tectonic-installer/assignees{/user}","branches_url":"https://api.github.com/repos/gopilal/tectonic-installer/branches{/branch}","tags_url":"https://api.github.com/repos/gopilal/tectonic-installer/tags","blobs_url":"https://api.github.com/repos/gopilal/tectonic-installer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gopilal/tectonic-installer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gopilal/tectonic-installer/git/refs{/sha}","trees_url":"https://api.github.com/repos/gopilal/tectonic-installer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gopilal/tectonic-installer/statuses/{sha}","languages_url":"https://api.github.com/repos/gopilal/tectonic-installer/languages","stargazers_url":"https://api.github.com/repos/gopilal/tectonic-installer/stargazers","contributors_url":"https://api.github.com/repos/gopilal/tectonic-installer/contributors","subscribers_url":"https://api.github.com/repos/gopilal/tectonic-installer/subscribers","subscription_url":"https://api.github.com/repos/gopilal/tectonic-installer/subscription","commits_url":"https://api.github.com/repos/gopilal/tectonic-installer/commits{/sha}","git_commits_url":"https://api.github.com/repos/gopilal/tectonic-installer/git/commits{/sha}","comments_url":"https://api.github.com/repos/gopilal/tectonic-installer/comments{/number}","issue_comment_url":"https://api.github.com/repos/gopilal/tectonic-installer/issues/comments{/number}","contents_url":"https://api.github.com/repos/gopilal/tectonic-installer/contents/{+path}","compare_url":"https://api.github.com/repos/gopilal/tectonic-installer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gopilal/tectonic-installer/merges","archive_url":"https://api.github.com/repos/gopilal/tectonic-installer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gopilal/tectonic-installer/downloads","issues_url":"https://api.github.com/repos/gopilal/tectonic-installer/issues{/number}","pulls_url":"https://api.github.com/repos/gopilal/tectonic-installer/pulls{/number}","milestones_url":"https://api.github.com/repos/gopilal/tectonic-installer/milestones{/number}","notifications_url":"https://api.github.com/repos/gopilal/tectonic-installer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gopilal/tectonic-installer/labels{/name}","releases_url":"https://api.github.com/repos/gopilal/tectonic-installer/releases{/id}","deployments_url":"https://api.github.com/repos/gopilal/tectonic-installer/deployments","created_at":"2017-04-27T21:28:58Z","updated_at":"2017-06-27T20:38:00Z","pushed_at":"2017-07-05T17:16:44Z","git_url":"git://github.com/gopilal/tectonic-installer.git","ssh_url":"git@github.com:gopilal/tectonic-installer.git","clone_url":"https://github.com/gopilal/tectonic-installer.git","svn_url":"https://github.com/gopilal/tectonic-installer","homepage":"","size":23923,"stargazers_count":0,"watchers_count":0,"language":"HCL","has_issues":false,"has_projects":true,"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":"coreos:master","ref":"master","sha":"35253ff71778c656d0eda30ff1255165f8143a5d","user":{"login":"coreos","id":3730757,"avatar_url":"https://avatars0.githubusercontent.com/u/3730757?v=3","gravatar_id":"","url":"https://api.github.com/users/coreos","html_url":"https://github.com/coreos","followers_url":"https://api.github.com/users/coreos/followers","following_url":"https://api.github.com/users/coreos/following{/other_user}","gists_url":"https://api.github.com/users/coreos/gists{/gist_id}","starred_url":"https://api.github.com/users/coreos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coreos/subscriptions","organizations_url":"https://api.github.com/users/coreos/orgs","repos_url":"https://api.github.com/users/coreos/repos","events_url":"https://api.github.com/users/coreos/events{/privacy}","received_events_url":"https://api.github.com/users/coreos/received_events","type":"Organization","site_admin":false},"repo":{"id":81620471,"name":"tectonic-installer","full_name":"coreos/tectonic-installer","owner":{"login":"coreos","id":3730757,"avatar_url":"https://avatars0.githubusercontent.com/u/3730757?v=3","gravatar_id":"","url":"https://api.github.com/users/coreos","html_url":"https://github.com/coreos","followers_url":"https://api.github.com/users/coreos/followers","following_url":"https://api.github.com/users/coreos/following{/other_user}","gists_url":"https://api.github.com/users/coreos/gists{/gist_id}","starred_url":"https://api.github.com/users/coreos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coreos/subscriptions","organizations_url":"https://api.github.com/users/coreos/orgs","repos_url":"https://api.github.com/users/coreos/repos","events_url":"https://api.github.com/users/coreos/events{/privacy}","received_events_url":"https://api.github.com/users/coreos/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/coreos/tectonic-installer","description":"Install a Kubernetes cluster the CoreOS Tectonic Way: HA, self-hosted, RBAC, etcd Operator, and more","fork":false,"url":"https://api.github.com/repos/coreos/tectonic-installer","forks_url":"https://api.github.com/repos/coreos/tectonic-installer/forks","keys_url":"https://api.github.com/repos/coreos/tectonic-installer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/coreos/tectonic-installer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/coreos/tectonic-installer/teams","hooks_url":"https://api.github.com/repos/coreos/tectonic-installer/hooks","issue_events_url":"https://api.github.com/repos/coreos/tectonic-installer/issues/events{/number}","events_url":"https://api.github.com/repos/coreos/tectonic-installer/events","assignees_url":"https://api.github.com/repos/coreos/tectonic-installer/assignees{/user}","branches_url":"https://api.github.com/repos/coreos/tectonic-installer/branches{/branch}","tags_url":"https://api.github.com/repos/coreos/tectonic-installer/tags","blobs_url":"https://api.github.com/repos/coreos/tectonic-installer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/coreos/tectonic-installer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/coreos/tectonic-installer/git/refs{/sha}","trees_url":"https://api.github.com/repos/coreos/tectonic-installer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/coreos/tectonic-installer/statuses/{sha}","languages_url":"https://api.github.com/repos/coreos/tectonic-installer/languages","stargazers_url":"https://api.github.com/repos/coreos/tectonic-installer/stargazers","contributors_url":"https://api.github.com/repos/coreos/tectonic-installer/contributors","subscribers_url":"https://api.github.com/repos/coreos/tectonic-installer/subscribers","subscription_url":"https://api.github.com/repos/coreos/tectonic-installer/subscription","commits_url":"https://api.github.com/repos/coreos/tectonic-installer/commits{/sha}","git_commits_url":"https://api.github.com/repos/coreos/tectonic-installer/git/commits{/sha}","comments_url":"https://api.github.com/repos/coreos/tectonic-installer/comments{/number}","issue_comment_url":"https://api.github.com/repos/coreos/tectonic-installer/issues/comments{/number}","contents_url":"https://api.github.com/repos/coreos/tectonic-installer/contents/{+path}","compare_url":"https://api.github.com/repos/coreos/tectonic-installer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/coreos/tectonic-installer/merges","archive_url":"https://api.github.com/repos/coreos/tectonic-installer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/coreos/tectonic-installer/downloads","issues_url":"https://api.github.com/repos/coreos/tectonic-installer/issues{/number}","pulls_url":"https://api.github.com/repos/coreos/tectonic-installer/pulls{/number}","milestones_url":"https://api.github.com/repos/coreos/tectonic-installer/milestones{/number}","notifications_url":"https://api.github.com/repos/coreos/tectonic-installer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/coreos/tectonic-installer/labels{/name}","releases_url":"https://api.github.com/repos/coreos/tectonic-installer/releases{/id}","deployments_url":"https://api.github.com/repos/coreos/tectonic-installer/deployments","created_at":"2017-02-11T00:52:23Z","updated_at":"2017-07-10T16:44:28Z","pushed_at":"2017-07-10T18:15:52Z","git_url":"git://github.com/coreos/tectonic-installer.git","ssh_url":"git@github.com:coreos/tectonic-installer.git","clone_url":"https://github.com/coreos/tectonic-installer.git","svn_url":"https://github.com/coreos/tectonic-installer","homepage":"","size":25269,"stargazers_count":222,"watchers_count":222,"language":"HCL","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":133,"mirror_url":null,"open_issues_count":263,"forks":133,"open_issues":263,"watchers":222,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/coreos/tectonic-installer/pulls/1215"},"html":{"href":"https://github.com/coreos/tectonic-installer/pull/1215"},"issue":{"href":"https://api.github.com/repos/coreos/tectonic-installer/issues/1215"},"comments":{"href":"https://api.github.com/repos/coreos/tectonic-installer/issues/1215/comments"},"review_comments":{"href":"https://api.github.com/repos/coreos/tectonic-installer/pulls/1215/comments"},"review_comment":{"href":"https://api.github.com/repos/coreos/tectonic-installer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/coreos/tectonic-installer/pulls/1215/commits"},"statuses":{"href":"https://api.github.com/repos/coreos/tectonic-installer/statuses/2cc1100c2be9284ba4918a5f79507bdbf15a2796"}}}}
{"actor":{"display_login":"gopilal"}}