{"action":"created","comment":{"url":"https://api.github.com/repos/deis/workflow-e2e/pulls/comments/54498561","id":54498561,"diff_hunk":"@@ -1,21 +1,134 @@\n package tests\n \n import (\n+\t\"fmt\"\n+\t\"math/rand\"\n+\t\"os\"\n+\t\"strconv\"\n+\n \t. \"github.com/onsi/ginkgo\"\n-\t// . \"github.com/onsi/gomega\"\n+\t. \"github.com/onsi/gomega\"\n+\t. \"github.com/onsi/gomega/gbytes\"\n+\t. \"github.com/onsi/gomega/gexec\"\n )\n \n+func getRandDomain() string {\n+\treturn fmt.Sprintf(\"my-custom-%d.domain.com\", rand.Intn(999999999))\n+}\n+\n var _ = Describe(\"Domains\", func() {\n+\tvar testApp App\n+\tvar domain string\n+\n+\tContext(\"with app yet to be deployed\", func() {\n+\n+\t\tBeforeEach(func() {\n+\t\t\tdomain = getRandDomain()\n+\t\t\t// TODO: gitInit()\n+\t\t\tcmd, err := start(\"git init\")\n+\t\t\tExpect(err).NotTo(HaveOccurred())\n+\t\t\tEventually(cmd).Should(Say(\"Initialized empty Git repository\"))\n+\n+\t\t\ttestApp.Name = getRandAppName()\n+\t\t\tcmd = createApp(testApp.Name)\n+\t\t\tEventually(cmd).Should(SatisfyAll(\n+\t\t\t\tSay(\"Git remote deis added\"),\n+\t\t\t\tSay(\"remote available at \")))\n+\t\t})\n+\n+\t\tAfterEach(func() {\n+\t\t\tdestroyApp(testApp)\n+\t\t\t// TODO: gitClean()\n+\t\t\tcmd, err := start(\"rm -rf .git\")","path":"tests/domains_test.go","position":43,"original_position":43,"commit_id":"1bb8706343f5890aa0c3d646b0f8bf7242486bfa","original_commit_id":"1bb8706343f5890aa0c3d646b0f8bf7242486bfa","user":{"login":"bacongobbler","id":1360539,"avatar_url":"https://avatars.githubusercontent.com/u/1360539?v=3","gravatar_id":"","url":"https://api.github.com/users/bacongobbler","html_url":"https://github.com/bacongobbler","followers_url":"https://api.github.com/users/bacongobbler/followers","following_url":"https://api.github.com/users/bacongobbler/following{/other_user}","gists_url":"https://api.github.com/users/bacongobbler/gists{/gist_id}","starred_url":"https://api.github.com/users/bacongobbler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bacongobbler/subscriptions","organizations_url":"https://api.github.com/users/bacongobbler/orgs","repos_url":"https://api.github.com/users/bacongobbler/repos","events_url":"https://api.github.com/users/bacongobbler/events{/privacy}","received_events_url":"https://api.github.com/users/bacongobbler/received_events","type":"User","site_admin":false},"body":"`git remote rm deis`?","created_at":"2016-02-29T23:30:56Z","updated_at":"2016-02-29T23:30:56Z","html_url":"https://github.com/deis/workflow-e2e/pull/61#discussion_r54498561","pull_request_url":"https://api.github.com/repos/deis/workflow-e2e/pulls/61","_links":{"self":{"href":"https://api.github.com/repos/deis/workflow-e2e/pulls/comments/54498561"},"html":{"href":"https://github.com/deis/workflow-e2e/pull/61#discussion_r54498561"},"pull_request":{"href":"https://api.github.com/repos/deis/workflow-e2e/pulls/61"}}},"pull_request":{"url":"https://api.github.com/repos/deis/workflow-e2e/pulls/61","id":61154622,"html_url":"https://github.com/deis/workflow-e2e/pull/61","diff_url":"https://github.com/deis/workflow-e2e/pull/61.diff","patch_url":"https://github.com/deis/workflow-e2e/pull/61.patch","issue_url":"https://api.github.com/repos/deis/workflow-e2e/issues/61","number":61,"state":"open","locked":false,"title":"feat(domains_tests): add domains tests","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":null,"created_at":"2016-02-29T22:10:22Z","updated_at":"2016-02-29T23:30:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ccb5ef1ac97ce40aa810ae0f7683821a495bd6f6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/deis/workflow-e2e/pulls/61/commits","review_comments_url":"https://api.github.com/repos/deis/workflow-e2e/pulls/61/comments","review_comment_url":"https://api.github.com/repos/deis/workflow-e2e/pulls/comments{/number}","comments_url":"https://api.github.com/repos/deis/workflow-e2e/issues/61/comments","statuses_url":"https://api.github.com/repos/deis/workflow-e2e/statuses/1bb8706343f5890aa0c3d646b0f8bf7242486bfa","head":{"label":"vdice:add-domains-tests","ref":"add-domains-tests","sha":"1bb8706343f5890aa0c3d646b0f8bf7242486bfa","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},"repo":{"id":51404679,"name":"workflow-e2e","full_name":"vdice/workflow-e2e","owner":{"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},"private":false,"html_url":"https://github.com/vdice/workflow-e2e","description":"End-to-end tests for Deis Workflow","fork":true,"url":"https://api.github.com/repos/vdice/workflow-e2e","forks_url":"https://api.github.com/repos/vdice/workflow-e2e/forks","keys_url":"https://api.github.com/repos/vdice/workflow-e2e/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vdice/workflow-e2e/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vdice/workflow-e2e/teams","hooks_url":"https://api.github.com/repos/vdice/workflow-e2e/hooks","issue_events_url":"https://api.github.com/repos/vdice/workflow-e2e/issues/events{/number}","events_url":"https://api.github.com/repos/vdice/workflow-e2e/events","assignees_url":"https://api.github.com/repos/vdice/workflow-e2e/assignees{/user}","branches_url":"https://api.github.com/repos/vdice/workflow-e2e/branches{/branch}","tags_url":"https://api.github.com/repos/vdice/workflow-e2e/tags","blobs_url":"https://api.github.com/repos/vdice/workflow-e2e/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vdice/workflow-e2e/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vdice/workflow-e2e/git/refs{/sha}","trees_url":"https://api.github.com/repos/vdice/workflow-e2e/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vdice/workflow-e2e/statuses/{sha}","languages_url":"https://api.github.com/repos/vdice/workflow-e2e/languages","stargazers_url":"https://api.github.com/repos/vdice/workflow-e2e/stargazers","contributors_url":"https://api.github.com/repos/vdice/workflow-e2e/contributors","subscribers_url":"https://api.github.com/repos/vdice/workflow-e2e/subscribers","subscription_url":"https://api.github.com/repos/vdice/workflow-e2e/subscription","commits_url":"https://api.github.com/repos/vdice/workflow-e2e/commits{/sha}","git_commits_url":"https://api.github.com/repos/vdice/workflow-e2e/git/commits{/sha}","comments_url":"https://api.github.com/repos/vdice/workflow-e2e/comments{/number}","issue_comment_url":"https://api.github.com/repos/vdice/workflow-e2e/issues/comments{/number}","contents_url":"https://api.github.com/repos/vdice/workflow-e2e/contents/{+path}","compare_url":"https://api.github.com/repos/vdice/workflow-e2e/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vdice/workflow-e2e/merges","archive_url":"https://api.github.com/repos/vdice/workflow-e2e/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vdice/workflow-e2e/downloads","issues_url":"https://api.github.com/repos/vdice/workflow-e2e/issues{/number}","pulls_url":"https://api.github.com/repos/vdice/workflow-e2e/pulls{/number}","milestones_url":"https://api.github.com/repos/vdice/workflow-e2e/milestones{/number}","notifications_url":"https://api.github.com/repos/vdice/workflow-e2e/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vdice/workflow-e2e/labels{/name}","releases_url":"https://api.github.com/repos/vdice/workflow-e2e/releases{/id}","deployments_url":"https://api.github.com/repos/vdice/workflow-e2e/deployments","created_at":"2016-02-09T22:21:09Z","updated_at":"2016-02-09T22:21:10Z","pushed_at":"2016-02-29T22:31:12Z","git_url":"git://github.com/vdice/workflow-e2e.git","ssh_url":"git@github.com:vdice/workflow-e2e.git","clone_url":"https://github.com/vdice/workflow-e2e.git","svn_url":"https://github.com/vdice/workflow-e2e","homepage":null,"size":17986,"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":"a0d40bc44efdcf79037f2f0f011b6b038397c977","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":48503688,"name":"workflow-e2e","full_name":"deis/workflow-e2e","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-e2e","description":"End-to-end tests for Deis Workflow","fork":false,"url":"https://api.github.com/repos/deis/workflow-e2e","forks_url":"https://api.github.com/repos/deis/workflow-e2e/forks","keys_url":"https://api.github.com/repos/deis/workflow-e2e/keys{/key_id}","collaborators_url":"https://api.github.com/repos/deis/workflow-e2e/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/deis/workflow-e2e/teams","hooks_url":"https://api.github.com/repos/deis/workflow-e2e/hooks","issue_events_url":"https://api.github.com/repos/deis/workflow-e2e/issues/events{/number}","events_url":"https://api.github.com/repos/deis/workflow-e2e/events","assignees_url":"https://api.github.com/repos/deis/workflow-e2e/assignees{/user}","branches_url":"https://api.github.com/repos/deis/workflow-e2e/branches{/branch}","tags_url":"https://api.github.com/repos/deis/workflow-e2e/tags","blobs_url":"https://api.github.com/repos/deis/workflow-e2e/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/deis/workflow-e2e/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/deis/workflow-e2e/git/refs{/sha}","trees_url":"https://api.github.com/repos/deis/workflow-e2e/git/trees{/sha}","statuses_url":"https://api.github.com/repos/deis/workflow-e2e/statuses/{sha}","languages_url":"https://api.github.com/repos/deis/workflow-e2e/languages","stargazers_url":"https://api.github.com/repos/deis/workflow-e2e/stargazers","contributors_url":"https://api.github.com/repos/deis/workflow-e2e/contributors","subscribers_url":"https://api.github.com/repos/deis/workflow-e2e/subscribers","subscription_url":"https://api.github.com/repos/deis/workflow-e2e/subscription","commits_url":"https://api.github.com/repos/deis/workflow-e2e/commits{/sha}","git_commits_url":"https://api.github.com/repos/deis/workflow-e2e/git/commits{/sha}","comments_url":"https://api.github.com/repos/deis/workflow-e2e/comments{/number}","issue_comment_url":"https://api.github.com/repos/deis/workflow-e2e/issues/comments{/number}","contents_url":"https://api.github.com/repos/deis/workflow-e2e/contents/{+path}","compare_url":"https://api.github.com/repos/deis/workflow-e2e/compare/{base}...{head}","merges_url":"https://api.github.com/repos/deis/workflow-e2e/merges","archive_url":"https://api.github.com/repos/deis/workflow-e2e/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/deis/workflow-e2e/downloads","issues_url":"https://api.github.com/repos/deis/workflow-e2e/issues{/number}","pulls_url":"https://api.github.com/repos/deis/workflow-e2e/pulls{/number}","milestones_url":"https://api.github.com/repos/deis/workflow-e2e/milestones{/number}","notifications_url":"https://api.github.com/repos/deis/workflow-e2e/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/deis/workflow-e2e/labels{/name}","releases_url":"https://api.github.com/repos/deis/workflow-e2e/releases{/id}","deployments_url":"https://api.github.com/repos/deis/workflow-e2e/deployments","created_at":"2015-12-23T17:50:37Z","updated_at":"2016-02-11T23:00:04Z","pushed_at":"2016-02-29T22:31:12Z","git_url":"git://github.com/deis/workflow-e2e.git","ssh_url":"git@github.com:deis/workflow-e2e.git","clone_url":"https://github.com/deis/workflow-e2e.git","svn_url":"https://github.com/deis/workflow-e2e","homepage":null,"size":17984,"stargazers_count":3,"watchers_count":3,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":17,"forks":7,"open_issues":17,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/deis/workflow-e2e/pulls/61"},"html":{"href":"https://github.com/deis/workflow-e2e/pull/61"},"issue":{"href":"https://api.github.com/repos/deis/workflow-e2e/issues/61"},"comments":{"href":"https://api.github.com/repos/deis/workflow-e2e/issues/61/comments"},"review_comments":{"href":"https://api.github.com/repos/deis/workflow-e2e/pulls/61/comments"},"review_comment":{"href":"https://api.github.com/repos/deis/workflow-e2e/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/deis/workflow-e2e/pulls/61/commits"},"statuses":{"href":"https://api.github.com/repos/deis/workflow-e2e/statuses/1bb8706343f5890aa0c3d646b0f8bf7242486bfa"}}}}