{"action":"created","comment":{"url":"https://api.github.com/repos/edx/edx-load-tests/pulls/comments/51024911","id":51024911,"diff_hunk":"@@ -0,0 +1,68 @@\n+import datetime\n+import uuid\n+\n+import jwt\n+from locust import TaskSet, task, HttpLocust\n+from locust.clients import HttpSession\n+from locust.exception import LocustError\n+\n+from helpers.api import LocustEdxRestApiClient\n+from credentials.config import CREDENTIAL_API_URL, JWT_AUDIENCE, JWT_ISSUER, JWT_EXPIRATION_DELTA, JWT_SECRET_KEY\n+\n+\n+class CredentialTaskSet(TaskSet):","path":"credentials/locustfile.py","position":13,"original_position":13,"commit_id":"a4b5c1d940889e28815488f5acadbc60615640a3","original_commit_id":"a4b5c1d940889e28815488f5acadbc60615640a3","user":{"login":"tasawernawaz","id":4245618,"avatar_url":"https://avatars.githubusercontent.com/u/4245618?v=3","gravatar_id":"","url":"https://api.github.com/users/tasawernawaz","html_url":"https://github.com/tasawernawaz","followers_url":"https://api.github.com/users/tasawernawaz/followers","following_url":"https://api.github.com/users/tasawernawaz/following{/other_user}","gists_url":"https://api.github.com/users/tasawernawaz/gists{/gist_id}","starred_url":"https://api.github.com/users/tasawernawaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tasawernawaz/subscriptions","organizations_url":"https://api.github.com/users/tasawernawaz/orgs","repos_url":"https://api.github.com/users/tasawernawaz/repos","events_url":"https://api.github.com/users/tasawernawaz/events{/privacy}","received_events_url":"https://api.github.com/users/tasawernawaz/received_events","type":"User","site_admin":false},"body":"Yes, actually this is a basic structure of load testing, we have follow up tasks to add tasks for other endpoints as well. After this branch get merged we will start adding tasks for other endpoints. ","created_at":"2016-01-27T18:16:38Z","updated_at":"2016-01-27T18:16:38Z","html_url":"https://github.com/edx/edx-load-tests/pull/41#discussion_r51024911","pull_request_url":"https://api.github.com/repos/edx/edx-load-tests/pulls/41","_links":{"self":{"href":"https://api.github.com/repos/edx/edx-load-tests/pulls/comments/51024911"},"html":{"href":"https://github.com/edx/edx-load-tests/pull/41#discussion_r51024911"},"pull_request":{"href":"https://api.github.com/repos/edx/edx-load-tests/pulls/41"}}},"pull_request":{"url":"https://api.github.com/repos/edx/edx-load-tests/pulls/41","id":57081918,"html_url":"https://github.com/edx/edx-load-tests/pull/41","diff_url":"https://github.com/edx/edx-load-tests/pull/41.diff","patch_url":"https://github.com/edx/edx-load-tests/pull/41.patch","issue_url":"https://api.github.com/repos/edx/edx-load-tests/issues/41","number":41,"state":"open","locked":false,"title":"Added basic structure for load testing","user":{"login":"tasawernawaz","id":4245618,"avatar_url":"https://avatars.githubusercontent.com/u/4245618?v=3","gravatar_id":"","url":"https://api.github.com/users/tasawernawaz","html_url":"https://github.com/tasawernawaz","followers_url":"https://api.github.com/users/tasawernawaz/followers","following_url":"https://api.github.com/users/tasawernawaz/following{/other_user}","gists_url":"https://api.github.com/users/tasawernawaz/gists{/gist_id}","starred_url":"https://api.github.com/users/tasawernawaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tasawernawaz/subscriptions","organizations_url":"https://api.github.com/users/tasawernawaz/orgs","repos_url":"https://api.github.com/users/tasawernawaz/repos","events_url":"https://api.github.com/users/tasawernawaz/events{/privacy}","received_events_url":"https://api.github.com/users/tasawernawaz/received_events","type":"User","site_admin":false},"body":"ECOM-3483\r\n\r\n* Added basic structure for load testing of credential service\r\n* Added load tests for list endpoint of credential service.\r\n\r\n@awais786 @ahsan-ul-haq @zubair-arbi ","created_at":"2016-01-25T15:01:16Z","updated_at":"2016-01-27T18:16:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3ae35138b2e1865c92b95b01d3b3481906a21ec6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/edx/edx-load-tests/pulls/41/commits","review_comments_url":"https://api.github.com/repos/edx/edx-load-tests/pulls/41/comments","review_comment_url":"https://api.github.com/repos/edx/edx-load-tests/pulls/comments{/number}","comments_url":"https://api.github.com/repos/edx/edx-load-tests/issues/41/comments","statuses_url":"https://api.github.com/repos/edx/edx-load-tests/statuses/a4b5c1d940889e28815488f5acadbc60615640a3","head":{"label":"edx:tasawer/ecom-3483-add-loadtest-for-credentials","ref":"tasawer/ecom-3483-add-loadtest-for-credentials","sha":"a4b5c1d940889e28815488f5acadbc60615640a3","user":{"login":"edx","id":3179841,"avatar_url":"https://avatars.githubusercontent.com/u/3179841?v=3","gravatar_id":"","url":"https://api.github.com/users/edx","html_url":"https://github.com/edx","followers_url":"https://api.github.com/users/edx/followers","following_url":"https://api.github.com/users/edx/following{/other_user}","gists_url":"https://api.github.com/users/edx/gists{/gist_id}","starred_url":"https://api.github.com/users/edx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edx/subscriptions","organizations_url":"https://api.github.com/users/edx/orgs","repos_url":"https://api.github.com/users/edx/repos","events_url":"https://api.github.com/users/edx/events{/privacy}","received_events_url":"https://api.github.com/users/edx/received_events","type":"Organization","site_admin":false},"repo":{"id":39958996,"name":"edx-load-tests","full_name":"edx/edx-load-tests","owner":{"login":"edx","id":3179841,"avatar_url":"https://avatars.githubusercontent.com/u/3179841?v=3","gravatar_id":"","url":"https://api.github.com/users/edx","html_url":"https://github.com/edx","followers_url":"https://api.github.com/users/edx/followers","following_url":"https://api.github.com/users/edx/following{/other_user}","gists_url":"https://api.github.com/users/edx/gists{/gist_id}","starred_url":"https://api.github.com/users/edx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edx/subscriptions","organizations_url":"https://api.github.com/users/edx/orgs","repos_url":"https://api.github.com/users/edx/repos","events_url":"https://api.github.com/users/edx/events{/privacy}","received_events_url":"https://api.github.com/users/edx/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/edx/edx-load-tests","description":"Open source load tests for edX software components","fork":false,"url":"https://api.github.com/repos/edx/edx-load-tests","forks_url":"https://api.github.com/repos/edx/edx-load-tests/forks","keys_url":"https://api.github.com/repos/edx/edx-load-tests/keys{/key_id}","collaborators_url":"https://api.github.com/repos/edx/edx-load-tests/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/edx/edx-load-tests/teams","hooks_url":"https://api.github.com/repos/edx/edx-load-tests/hooks","issue_events_url":"https://api.github.com/repos/edx/edx-load-tests/issues/events{/number}","events_url":"https://api.github.com/repos/edx/edx-load-tests/events","assignees_url":"https://api.github.com/repos/edx/edx-load-tests/assignees{/user}","branches_url":"https://api.github.com/repos/edx/edx-load-tests/branches{/branch}","tags_url":"https://api.github.com/repos/edx/edx-load-tests/tags","blobs_url":"https://api.github.com/repos/edx/edx-load-tests/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/edx/edx-load-tests/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/edx/edx-load-tests/git/refs{/sha}","trees_url":"https://api.github.com/repos/edx/edx-load-tests/git/trees{/sha}","statuses_url":"https://api.github.com/repos/edx/edx-load-tests/statuses/{sha}","languages_url":"https://api.github.com/repos/edx/edx-load-tests/languages","stargazers_url":"https://api.github.com/repos/edx/edx-load-tests/stargazers","contributors_url":"https://api.github.com/repos/edx/edx-load-tests/contributors","subscribers_url":"https://api.github.com/repos/edx/edx-load-tests/subscribers","subscription_url":"https://api.github.com/repos/edx/edx-load-tests/subscription","commits_url":"https://api.github.com/repos/edx/edx-load-tests/commits{/sha}","git_commits_url":"https://api.github.com/repos/edx/edx-load-tests/git/commits{/sha}","comments_url":"https://api.github.com/repos/edx/edx-load-tests/comments{/number}","issue_comment_url":"https://api.github.com/repos/edx/edx-load-tests/issues/comments{/number}","contents_url":"https://api.github.com/repos/edx/edx-load-tests/contents/{+path}","compare_url":"https://api.github.com/repos/edx/edx-load-tests/compare/{base}...{head}","merges_url":"https://api.github.com/repos/edx/edx-load-tests/merges","archive_url":"https://api.github.com/repos/edx/edx-load-tests/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/edx/edx-load-tests/downloads","issues_url":"https://api.github.com/repos/edx/edx-load-tests/issues{/number}","pulls_url":"https://api.github.com/repos/edx/edx-load-tests/pulls{/number}","milestones_url":"https://api.github.com/repos/edx/edx-load-tests/milestones{/number}","notifications_url":"https://api.github.com/repos/edx/edx-load-tests/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/edx/edx-load-tests/labels{/name}","releases_url":"https://api.github.com/repos/edx/edx-load-tests/releases{/id}","deployments_url":"https://api.github.com/repos/edx/edx-load-tests/deployments","created_at":"2015-07-30T15:52:54Z","updated_at":"2016-01-19T19:42:56Z","pushed_at":"2016-01-27T15:49:34Z","git_url":"git://github.com/edx/edx-load-tests.git","ssh_url":"git@github.com:edx/edx-load-tests.git","clone_url":"https://github.com/edx/edx-load-tests.git","svn_url":"https://github.com/edx/edx-load-tests","homepage":null,"size":10880,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":4,"forks":3,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"edx:master","ref":"master","sha":"751dd8a4c057bb6ff5efcc11b26603976151ba4e","user":{"login":"edx","id":3179841,"avatar_url":"https://avatars.githubusercontent.com/u/3179841?v=3","gravatar_id":"","url":"https://api.github.com/users/edx","html_url":"https://github.com/edx","followers_url":"https://api.github.com/users/edx/followers","following_url":"https://api.github.com/users/edx/following{/other_user}","gists_url":"https://api.github.com/users/edx/gists{/gist_id}","starred_url":"https://api.github.com/users/edx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edx/subscriptions","organizations_url":"https://api.github.com/users/edx/orgs","repos_url":"https://api.github.com/users/edx/repos","events_url":"https://api.github.com/users/edx/events{/privacy}","received_events_url":"https://api.github.com/users/edx/received_events","type":"Organization","site_admin":false},"repo":{"id":39958996,"name":"edx-load-tests","full_name":"edx/edx-load-tests","owner":{"login":"edx","id":3179841,"avatar_url":"https://avatars.githubusercontent.com/u/3179841?v=3","gravatar_id":"","url":"https://api.github.com/users/edx","html_url":"https://github.com/edx","followers_url":"https://api.github.com/users/edx/followers","following_url":"https://api.github.com/users/edx/following{/other_user}","gists_url":"https://api.github.com/users/edx/gists{/gist_id}","starred_url":"https://api.github.com/users/edx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edx/subscriptions","organizations_url":"https://api.github.com/users/edx/orgs","repos_url":"https://api.github.com/users/edx/repos","events_url":"https://api.github.com/users/edx/events{/privacy}","received_events_url":"https://api.github.com/users/edx/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/edx/edx-load-tests","description":"Open source load tests for edX software components","fork":false,"url":"https://api.github.com/repos/edx/edx-load-tests","forks_url":"https://api.github.com/repos/edx/edx-load-tests/forks","keys_url":"https://api.github.com/repos/edx/edx-load-tests/keys{/key_id}","collaborators_url":"https://api.github.com/repos/edx/edx-load-tests/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/edx/edx-load-tests/teams","hooks_url":"https://api.github.com/repos/edx/edx-load-tests/hooks","issue_events_url":"https://api.github.com/repos/edx/edx-load-tests/issues/events{/number}","events_url":"https://api.github.com/repos/edx/edx-load-tests/events","assignees_url":"https://api.github.com/repos/edx/edx-load-tests/assignees{/user}","branches_url":"https://api.github.com/repos/edx/edx-load-tests/branches{/branch}","tags_url":"https://api.github.com/repos/edx/edx-load-tests/tags","blobs_url":"https://api.github.com/repos/edx/edx-load-tests/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/edx/edx-load-tests/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/edx/edx-load-tests/git/refs{/sha}","trees_url":"https://api.github.com/repos/edx/edx-load-tests/git/trees{/sha}","statuses_url":"https://api.github.com/repos/edx/edx-load-tests/statuses/{sha}","languages_url":"https://api.github.com/repos/edx/edx-load-tests/languages","stargazers_url":"https://api.github.com/repos/edx/edx-load-tests/stargazers","contributors_url":"https://api.github.com/repos/edx/edx-load-tests/contributors","subscribers_url":"https://api.github.com/repos/edx/edx-load-tests/subscribers","subscription_url":"https://api.github.com/repos/edx/edx-load-tests/subscription","commits_url":"https://api.github.com/repos/edx/edx-load-tests/commits{/sha}","git_commits_url":"https://api.github.com/repos/edx/edx-load-tests/git/commits{/sha}","comments_url":"https://api.github.com/repos/edx/edx-load-tests/comments{/number}","issue_comment_url":"https://api.github.com/repos/edx/edx-load-tests/issues/comments{/number}","contents_url":"https://api.github.com/repos/edx/edx-load-tests/contents/{+path}","compare_url":"https://api.github.com/repos/edx/edx-load-tests/compare/{base}...{head}","merges_url":"https://api.github.com/repos/edx/edx-load-tests/merges","archive_url":"https://api.github.com/repos/edx/edx-load-tests/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/edx/edx-load-tests/downloads","issues_url":"https://api.github.com/repos/edx/edx-load-tests/issues{/number}","pulls_url":"https://api.github.com/repos/edx/edx-load-tests/pulls{/number}","milestones_url":"https://api.github.com/repos/edx/edx-load-tests/milestones{/number}","notifications_url":"https://api.github.com/repos/edx/edx-load-tests/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/edx/edx-load-tests/labels{/name}","releases_url":"https://api.github.com/repos/edx/edx-load-tests/releases{/id}","deployments_url":"https://api.github.com/repos/edx/edx-load-tests/deployments","created_at":"2015-07-30T15:52:54Z","updated_at":"2016-01-19T19:42:56Z","pushed_at":"2016-01-27T15:49:34Z","git_url":"git://github.com/edx/edx-load-tests.git","ssh_url":"git@github.com:edx/edx-load-tests.git","clone_url":"https://github.com/edx/edx-load-tests.git","svn_url":"https://github.com/edx/edx-load-tests","homepage":null,"size":10880,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":4,"forks":3,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/edx/edx-load-tests/pulls/41"},"html":{"href":"https://github.com/edx/edx-load-tests/pull/41"},"issue":{"href":"https://api.github.com/repos/edx/edx-load-tests/issues/41"},"comments":{"href":"https://api.github.com/repos/edx/edx-load-tests/issues/41/comments"},"review_comments":{"href":"https://api.github.com/repos/edx/edx-load-tests/pulls/41/comments"},"review_comment":{"href":"https://api.github.com/repos/edx/edx-load-tests/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/edx/edx-load-tests/pulls/41/commits"},"statuses":{"href":"https://api.github.com/repos/edx/edx-load-tests/statuses/a4b5c1d940889e28815488f5acadbc60615640a3"}}}}