{"action":"created","comment":{"url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/pulls/comments/34026461","id":34026461,"diff_hunk":"@@ -0,0 +1,45 @@\n+require \"rubygems\"\n+require \"ruby-jmeter\"\n+require \"cgi\"\n+\n+if ARGV.size != 3\n+  puts \"\\n\\n------- Tsuru perf test: ERROR! --------\"\n+  puts \"      Usage:\"\n+  puts \"      Please specify a tsuru target domain,  \"\n+  puts \"  a thread count and a loop count for each thread.\\n\"\n+  puts \"      Example:\"\n+  puts \"          \\n\\n\"\n+  exit 1\n+end\n+\n+test do\n+  counter \"CounterConfig.name\" => \"app_id\",\n+          \"CounterConfig.start\" => 1,\n+          \"CounterConfig.incr\" => 1,\n+          \"CounterConfig.per_user\" => \"false\",\n+          \"CounterConfig.reset_on_tg_iteration\" => \"false\"\n+\n+  defaults domain: ARGV[0], protocol: \"https\"\n+\n+  header [\n+    { name: \"Content-Type\", value: \"application/json\" }\n+  ]\n+  auth_url = \"/users/\" + CGI.escape(\"administrator@gds.tsuru.gov\") + \"/tokens\"\n+  threads count: ARGV[1].to_i, loops: ARGV[2].to_i do\n+    Once do\n+      post url: auth_url,\n+        raw_body: '{ \"password\": \"admin123\" }' do","path":"dsl/cleanup_apps.rb","position":31,"original_position":31,"commit_id":"f97c528b3d4fec0d0651ac7178f7639edaa8cd66","original_commit_id":"913fe39efe89b25811eda82237ddc458ec2fa789","user":{"login":"keymon","id":280032,"avatar_url":"https://avatars.githubusercontent.com/u/280032?v=3","gravatar_id":"","url":"https://api.github.com/users/keymon","html_url":"https://github.com/keymon","followers_url":"https://api.github.com/users/keymon/followers","following_url":"https://api.github.com/users/keymon/following{/other_user}","gists_url":"https://api.github.com/users/keymon/gists{/gist_id}","starred_url":"https://api.github.com/users/keymon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keymon/subscriptions","organizations_url":"https://api.github.com/users/keymon/orgs","repos_url":"https://api.github.com/users/keymon/repos","events_url":"https://api.github.com/users/keymon/events{/privacy}","received_events_url":"https://api.github.com/users/keymon/received_events","type":"User","site_admin":false},"body":"In the end-to-end test we are lucky of being in the same repo than the vault. I think we need common secret manager, as we grow in number of repos and components.\r\n","created_at":"2015-07-07T10:25:48Z","updated_at":"2015-07-07T10:25:48Z","html_url":"https://github.com/alphagov/tsuru-performance-tests/pull/1#discussion_r34026461","pull_request_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/alphagov/tsuru-performance-tests/pulls/comments/34026461"},"html":{"href":"https://github.com/alphagov/tsuru-performance-tests/pull/1#discussion_r34026461"},"pull_request":{"href":"https://api.github.com/repos/alphagov/tsuru-performance-tests/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/pulls/1","id":39244555,"html_url":"https://github.com/alphagov/tsuru-performance-tests/pull/1","diff_url":"https://github.com/alphagov/tsuru-performance-tests/pull/1.diff","patch_url":"https://github.com/alphagov/tsuru-performance-tests/pull/1.patch","issue_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/issues/1","number":1,"state":"open","locked":false,"title":"[98091996] Deploy multiple apps to tsuru to load test app deployment.","user":{"login":"dhilton","id":47292,"avatar_url":"https://avatars.githubusercontent.com/u/47292?v=3","gravatar_id":"","url":"https://api.github.com/users/dhilton","html_url":"https://github.com/dhilton","followers_url":"https://api.github.com/users/dhilton/followers","following_url":"https://api.github.com/users/dhilton/following{/other_user}","gists_url":"https://api.github.com/users/dhilton/gists{/gist_id}","starred_url":"https://api.github.com/users/dhilton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhilton/subscriptions","organizations_url":"https://api.github.com/users/dhilton/orgs","repos_url":"https://api.github.com/users/dhilton/repos","events_url":"https://api.github.com/users/dhilton/events{/privacy}","received_events_url":"https://api.github.com/users/dhilton/received_events","type":"User","site_admin":false},"body":"https://www.pivotaltracker.com/story/show/98091996\r\n\r\n__What__\r\n\r\nThis PR sets up a load test for creating and deploying apps to a Tsuru platform endpoint. We make use of the SSH helper created as part of the integration tests, to enable us to deploy using `git push` as part of the deployment load test. We have used https://github.com/flood-io/ruby-jmeter as a DSL to speed up the writing of tests. However, in this usecase we have an issue with calling an os process sampler (a way of running a command outside of the load test). \r\n\r\n__How to test__\r\n\r\nClone the repo and then follow the README.md setup instructions (as we need to test those as part of the PR) then run a set of deploy apps and cleanup apps scripts. You should get a set of results from jmeter to prove that the tests have been run and output from running `tsuru app-list` will show you the created apps after running the `deploy_apps.rb` generated jmeter run. \r\n\r\n__Who can test__\r\n\r\nAnyone on the core team apart from @saliceti \r\n","created_at":"2015-07-06T08:14:46Z","updated_at":"2015-07-07T10:25:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"61c435d6616f12b771361d742353d4e098ded34e","assignee":{"login":"keymon","id":280032,"avatar_url":"https://avatars.githubusercontent.com/u/280032?v=3","gravatar_id":"","url":"https://api.github.com/users/keymon","html_url":"https://github.com/keymon","followers_url":"https://api.github.com/users/keymon/followers","following_url":"https://api.github.com/users/keymon/following{/other_user}","gists_url":"https://api.github.com/users/keymon/gists{/gist_id}","starred_url":"https://api.github.com/users/keymon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keymon/subscriptions","organizations_url":"https://api.github.com/users/keymon/orgs","repos_url":"https://api.github.com/users/keymon/repos","events_url":"https://api.github.com/users/keymon/events{/privacy}","received_events_url":"https://api.github.com/users/keymon/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/pulls/1/commits","review_comments_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/pulls/1/comments","review_comment_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/issues/1/comments","statuses_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/statuses/f97c528b3d4fec0d0651ac7178f7639edaa8cd66","head":{"label":"alphagov:98091996-deploy-mulitple-apps-tsuru","ref":"98091996-deploy-mulitple-apps-tsuru","sha":"f97c528b3d4fec0d0651ac7178f7639edaa8cd66","user":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"repo":{"id":38481089,"name":"tsuru-performance-tests","full_name":"alphagov/tsuru-performance-tests","owner":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alphagov/tsuru-performance-tests","description":"","fork":false,"url":"https://api.github.com/repos/alphagov/tsuru-performance-tests","forks_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/forks","keys_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/teams","hooks_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/hooks","issue_events_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/events","assignees_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/tags","blobs_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/languages","stargazers_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/stargazers","contributors_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/contributors","subscribers_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/subscribers","subscription_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/subscription","commits_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/merges","archive_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/downloads","issues_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/releases{/id}","created_at":"2015-07-03T08:15:28Z","updated_at":"2015-07-03T08:15:28Z","pushed_at":"2015-07-06T15:38:53Z","git_url":"git://github.com/alphagov/tsuru-performance-tests.git","ssh_url":"git@github.com:alphagov/tsuru-performance-tests.git","clone_url":"https://github.com/alphagov/tsuru-performance-tests.git","svn_url":"https://github.com/alphagov/tsuru-performance-tests","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"alphagov:master","ref":"master","sha":"ec7c81e812b1f5991fa660796f3402b7be0d67c2","user":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"repo":{"id":38481089,"name":"tsuru-performance-tests","full_name":"alphagov/tsuru-performance-tests","owner":{"login":"alphagov","id":596977,"avatar_url":"https://avatars.githubusercontent.com/u/596977?v=3","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alphagov/tsuru-performance-tests","description":"","fork":false,"url":"https://api.github.com/repos/alphagov/tsuru-performance-tests","forks_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/forks","keys_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/teams","hooks_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/hooks","issue_events_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/events","assignees_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/tags","blobs_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/languages","stargazers_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/stargazers","contributors_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/contributors","subscribers_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/subscribers","subscription_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/subscription","commits_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/merges","archive_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/downloads","issues_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/tsuru-performance-tests/releases{/id}","created_at":"2015-07-03T08:15:28Z","updated_at":"2015-07-03T08:15:28Z","pushed_at":"2015-07-06T15:38:53Z","git_url":"git://github.com/alphagov/tsuru-performance-tests.git","ssh_url":"git@github.com:alphagov/tsuru-performance-tests.git","clone_url":"https://github.com/alphagov/tsuru-performance-tests.git","svn_url":"https://github.com/alphagov/tsuru-performance-tests","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alphagov/tsuru-performance-tests/pulls/1"},"html":{"href":"https://github.com/alphagov/tsuru-performance-tests/pull/1"},"issue":{"href":"https://api.github.com/repos/alphagov/tsuru-performance-tests/issues/1"},"comments":{"href":"https://api.github.com/repos/alphagov/tsuru-performance-tests/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/alphagov/tsuru-performance-tests/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/alphagov/tsuru-performance-tests/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alphagov/tsuru-performance-tests/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/alphagov/tsuru-performance-tests/statuses/f97c528b3d4fec0d0651ac7178f7639edaa8cd66"}}}}