{"action":"created","comment":{"url":"https://api.github.com/repos/grpc/grpc/pulls/comments/41308394","id":41308394,"diff_hunk":"@@ -288,22 +291,54 @@ def bash_login_cmdline(cmdline):\n   return ['bash', '-l', '-c', ' '.join(cmdline)]\n \n \n-def cloud_to_prod_jobspec(language, test_case, docker_image=None):\n+def add_auth_options(language, test_case, cmdline, env):\n+  \"\"\"Returns (cmdline, env) tuple with cloud_to_prod_auth test options.\"\"\"\n+\n+  language = str(language)\n+  cmdline = list(cmdline)\n+  env = env.copy()\n+\n+  # TODO(jtattermusch): this file path only works inside docker\n+  key_filepath = '/root/service_account/stubbyCloudTestingTest-ee3fce360ac5.json'","path":"tools/run_tests/run_interop_tests.py","position":50,"original_position":50,"commit_id":"fb8c77d477aaa0f4944e30ac591c440c1ef009cc","original_commit_id":"fb8c77d477aaa0f4944e30ac591c440c1ef009cc","user":{"login":"jtattermusch","id":9939684,"avatar_url":"https://avatars.githubusercontent.com/u/9939684?v=3","gravatar_id":"","url":"https://api.github.com/users/jtattermusch","html_url":"https://github.com/jtattermusch","followers_url":"https://api.github.com/users/jtattermusch/followers","following_url":"https://api.github.com/users/jtattermusch/following{/other_user}","gists_url":"https://api.github.com/users/jtattermusch/gists{/gist_id}","starred_url":"https://api.github.com/users/jtattermusch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtattermusch/subscriptions","organizations_url":"https://api.github.com/users/jtattermusch/orgs","repos_url":"https://api.github.com/users/jtattermusch/repos","events_url":"https://api.github.com/users/jtattermusch/events{/privacy}","received_events_url":"https://api.github.com/users/jtattermusch/received_events","type":"User","site_admin":false},"body":"Fine to leave this to be addressed later? I already have a TODO to revisit this (because like this it doesn't work if you are trying to locally and you choose not to use docker).\r\nThe expansion of env variable here is a bit tricky, otherwise I would just use $HOME (which would work both with and without docker).","created_at":"2015-10-06T19:10:06Z","updated_at":"2015-10-06T19:10:06Z","html_url":"https://github.com/grpc/grpc/pull/3675#discussion_r41308394","pull_request_url":"https://api.github.com/repos/grpc/grpc/pulls/3675","_links":{"self":{"href":"https://api.github.com/repos/grpc/grpc/pulls/comments/41308394"},"html":{"href":"https://github.com/grpc/grpc/pull/3675#discussion_r41308394"},"pull_request":{"href":"https://api.github.com/repos/grpc/grpc/pulls/3675"}}},"pull_request":{"url":"https://api.github.com/repos/grpc/grpc/pulls/3675","id":46938909,"html_url":"https://github.com/grpc/grpc/pull/3675","diff_url":"https://github.com/grpc/grpc/pull/3675.diff","patch_url":"https://github.com/grpc/grpc/pull/3675.patch","issue_url":"https://api.github.com/repos/grpc/grpc/issues/3675","number":3675,"state":"open","locked":false,"title":"Add auth interop test support to run_interop_tests.py","user":{"login":"jtattermusch","id":9939684,"avatar_url":"https://avatars.githubusercontent.com/u/9939684?v=3","gravatar_id":"","url":"https://api.github.com/users/jtattermusch","html_url":"https://github.com/jtattermusch","followers_url":"https://api.github.com/users/jtattermusch/followers","following_url":"https://api.github.com/users/jtattermusch/following{/other_user}","gists_url":"https://api.github.com/users/jtattermusch/gists{/gist_id}","starred_url":"https://api.github.com/users/jtattermusch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtattermusch/subscriptions","organizations_url":"https://api.github.com/users/jtattermusch/orgs","repos_url":"https://api.github.com/users/jtattermusch/repos","events_url":"https://api.github.com/users/jtattermusch/events{/privacy}","received_events_url":"https://api.github.com/users/jtattermusch/received_events","type":"User","site_admin":false},"body":"enable running interop tests: compute_engine_creds, jwt_token_creds, oauth2_auth_token, per_rpc_creds.\r\n\r\nthese tests will be run if --cloud_to_prod_auth flag is used.\r\n\r\nJenkins will not run these test by default, because it turns out many of auth tests are currently broken (I filed separate issues for some of the breakages). \r\n\r\nFixes #3633.\r\n\r\n","created_at":"2015-10-06T18:23:19Z","updated_at":"2015-10-06T19:10:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"322d74332bae6b882ee3ada0b557b10f12e24760","assignee":{"login":"sreecha","id":2754995,"avatar_url":"https://avatars.githubusercontent.com/u/2754995?v=3","gravatar_id":"","url":"https://api.github.com/users/sreecha","html_url":"https://github.com/sreecha","followers_url":"https://api.github.com/users/sreecha/followers","following_url":"https://api.github.com/users/sreecha/following{/other_user}","gists_url":"https://api.github.com/users/sreecha/gists{/gist_id}","starred_url":"https://api.github.com/users/sreecha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sreecha/subscriptions","organizations_url":"https://api.github.com/users/sreecha/orgs","repos_url":"https://api.github.com/users/sreecha/repos","events_url":"https://api.github.com/users/sreecha/events{/privacy}","received_events_url":"https://api.github.com/users/sreecha/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/grpc/grpc/pulls/3675/commits","review_comments_url":"https://api.github.com/repos/grpc/grpc/pulls/3675/comments","review_comment_url":"https://api.github.com/repos/grpc/grpc/pulls/comments{/number}","comments_url":"https://api.github.com/repos/grpc/grpc/issues/3675/comments","statuses_url":"https://api.github.com/repos/grpc/grpc/statuses/fb8c77d477aaa0f4944e30ac591c440c1ef009cc","head":{"label":"jtattermusch:interop_auth_tests","ref":"interop_auth_tests","sha":"fb8c77d477aaa0f4944e30ac591c440c1ef009cc","user":{"login":"jtattermusch","id":9939684,"avatar_url":"https://avatars.githubusercontent.com/u/9939684?v=3","gravatar_id":"","url":"https://api.github.com/users/jtattermusch","html_url":"https://github.com/jtattermusch","followers_url":"https://api.github.com/users/jtattermusch/followers","following_url":"https://api.github.com/users/jtattermusch/following{/other_user}","gists_url":"https://api.github.com/users/jtattermusch/gists{/gist_id}","starred_url":"https://api.github.com/users/jtattermusch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtattermusch/subscriptions","organizations_url":"https://api.github.com/users/jtattermusch/orgs","repos_url":"https://api.github.com/users/jtattermusch/repos","events_url":"https://api.github.com/users/jtattermusch/events{/privacy}","received_events_url":"https://api.github.com/users/jtattermusch/received_events","type":"User","site_admin":false},"repo":{"id":31382470,"name":"grpc","full_name":"jtattermusch/grpc","owner":{"login":"jtattermusch","id":9939684,"avatar_url":"https://avatars.githubusercontent.com/u/9939684?v=3","gravatar_id":"","url":"https://api.github.com/users/jtattermusch","html_url":"https://github.com/jtattermusch","followers_url":"https://api.github.com/users/jtattermusch/followers","following_url":"https://api.github.com/users/jtattermusch/following{/other_user}","gists_url":"https://api.github.com/users/jtattermusch/gists{/gist_id}","starred_url":"https://api.github.com/users/jtattermusch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jtattermusch/subscriptions","organizations_url":"https://api.github.com/users/jtattermusch/orgs","repos_url":"https://api.github.com/users/jtattermusch/repos","events_url":"https://api.github.com/users/jtattermusch/events{/privacy}","received_events_url":"https://api.github.com/users/jtattermusch/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jtattermusch/grpc","description":"The C based gRPC (C++, Node.js, Python, Ruby, Objective-C, PHP, C#)","fork":true,"url":"https://api.github.com/repos/jtattermusch/grpc","forks_url":"https://api.github.com/repos/jtattermusch/grpc/forks","keys_url":"https://api.github.com/repos/jtattermusch/grpc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jtattermusch/grpc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jtattermusch/grpc/teams","hooks_url":"https://api.github.com/repos/jtattermusch/grpc/hooks","issue_events_url":"https://api.github.com/repos/jtattermusch/grpc/issues/events{/number}","events_url":"https://api.github.com/repos/jtattermusch/grpc/events","assignees_url":"https://api.github.com/repos/jtattermusch/grpc/assignees{/user}","branches_url":"https://api.github.com/repos/jtattermusch/grpc/branches{/branch}","tags_url":"https://api.github.com/repos/jtattermusch/grpc/tags","blobs_url":"https://api.github.com/repos/jtattermusch/grpc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jtattermusch/grpc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jtattermusch/grpc/git/refs{/sha}","trees_url":"https://api.github.com/repos/jtattermusch/grpc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jtattermusch/grpc/statuses/{sha}","languages_url":"https://api.github.com/repos/jtattermusch/grpc/languages","stargazers_url":"https://api.github.com/repos/jtattermusch/grpc/stargazers","contributors_url":"https://api.github.com/repos/jtattermusch/grpc/contributors","subscribers_url":"https://api.github.com/repos/jtattermusch/grpc/subscribers","subscription_url":"https://api.github.com/repos/jtattermusch/grpc/subscription","commits_url":"https://api.github.com/repos/jtattermusch/grpc/commits{/sha}","git_commits_url":"https://api.github.com/repos/jtattermusch/grpc/git/commits{/sha}","comments_url":"https://api.github.com/repos/jtattermusch/grpc/comments{/number}","issue_comment_url":"https://api.github.com/repos/jtattermusch/grpc/issues/comments{/number}","contents_url":"https://api.github.com/repos/jtattermusch/grpc/contents/{+path}","compare_url":"https://api.github.com/repos/jtattermusch/grpc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jtattermusch/grpc/merges","archive_url":"https://api.github.com/repos/jtattermusch/grpc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jtattermusch/grpc/downloads","issues_url":"https://api.github.com/repos/jtattermusch/grpc/issues{/number}","pulls_url":"https://api.github.com/repos/jtattermusch/grpc/pulls{/number}","milestones_url":"https://api.github.com/repos/jtattermusch/grpc/milestones{/number}","notifications_url":"https://api.github.com/repos/jtattermusch/grpc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jtattermusch/grpc/labels{/name}","releases_url":"https://api.github.com/repos/jtattermusch/grpc/releases{/id}","created_at":"2015-02-26T18:39:52Z","updated_at":"2015-05-08T17:05:57Z","pushed_at":"2015-10-06T18:47:38Z","git_url":"git://github.com/jtattermusch/grpc.git","ssh_url":"git@github.com:jtattermusch/grpc.git","clone_url":"https://github.com/jtattermusch/grpc.git","svn_url":"https://github.com/jtattermusch/grpc","homepage":"","size":55850,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":false,"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":"grpc:master","ref":"master","sha":"a4aba6e66876d9f3babda8644949fd3cb4bb9745","user":{"login":"grpc","id":7802525,"avatar_url":"https://avatars.githubusercontent.com/u/7802525?v=3","gravatar_id":"","url":"https://api.github.com/users/grpc","html_url":"https://github.com/grpc","followers_url":"https://api.github.com/users/grpc/followers","following_url":"https://api.github.com/users/grpc/following{/other_user}","gists_url":"https://api.github.com/users/grpc/gists{/gist_id}","starred_url":"https://api.github.com/users/grpc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grpc/subscriptions","organizations_url":"https://api.github.com/users/grpc/orgs","repos_url":"https://api.github.com/users/grpc/repos","events_url":"https://api.github.com/users/grpc/events{/privacy}","received_events_url":"https://api.github.com/users/grpc/received_events","type":"Organization","site_admin":false},"repo":{"id":27729880,"name":"grpc","full_name":"grpc/grpc","owner":{"login":"grpc","id":7802525,"avatar_url":"https://avatars.githubusercontent.com/u/7802525?v=3","gravatar_id":"","url":"https://api.github.com/users/grpc","html_url":"https://github.com/grpc","followers_url":"https://api.github.com/users/grpc/followers","following_url":"https://api.github.com/users/grpc/following{/other_user}","gists_url":"https://api.github.com/users/grpc/gists{/gist_id}","starred_url":"https://api.github.com/users/grpc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grpc/subscriptions","organizations_url":"https://api.github.com/users/grpc/orgs","repos_url":"https://api.github.com/users/grpc/repos","events_url":"https://api.github.com/users/grpc/events{/privacy}","received_events_url":"https://api.github.com/users/grpc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/grpc/grpc","description":"The C based gRPC (C++, Node.js, Python, Ruby, Objective-C, PHP, C#)","fork":false,"url":"https://api.github.com/repos/grpc/grpc","forks_url":"https://api.github.com/repos/grpc/grpc/forks","keys_url":"https://api.github.com/repos/grpc/grpc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/grpc/grpc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/grpc/grpc/teams","hooks_url":"https://api.github.com/repos/grpc/grpc/hooks","issue_events_url":"https://api.github.com/repos/grpc/grpc/issues/events{/number}","events_url":"https://api.github.com/repos/grpc/grpc/events","assignees_url":"https://api.github.com/repos/grpc/grpc/assignees{/user}","branches_url":"https://api.github.com/repos/grpc/grpc/branches{/branch}","tags_url":"https://api.github.com/repos/grpc/grpc/tags","blobs_url":"https://api.github.com/repos/grpc/grpc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/grpc/grpc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/grpc/grpc/git/refs{/sha}","trees_url":"https://api.github.com/repos/grpc/grpc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/grpc/grpc/statuses/{sha}","languages_url":"https://api.github.com/repos/grpc/grpc/languages","stargazers_url":"https://api.github.com/repos/grpc/grpc/stargazers","contributors_url":"https://api.github.com/repos/grpc/grpc/contributors","subscribers_url":"https://api.github.com/repos/grpc/grpc/subscribers","subscription_url":"https://api.github.com/repos/grpc/grpc/subscription","commits_url":"https://api.github.com/repos/grpc/grpc/commits{/sha}","git_commits_url":"https://api.github.com/repos/grpc/grpc/git/commits{/sha}","comments_url":"https://api.github.com/repos/grpc/grpc/comments{/number}","issue_comment_url":"https://api.github.com/repos/grpc/grpc/issues/comments{/number}","contents_url":"https://api.github.com/repos/grpc/grpc/contents/{+path}","compare_url":"https://api.github.com/repos/grpc/grpc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/grpc/grpc/merges","archive_url":"https://api.github.com/repos/grpc/grpc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/grpc/grpc/downloads","issues_url":"https://api.github.com/repos/grpc/grpc/issues{/number}","pulls_url":"https://api.github.com/repos/grpc/grpc/pulls{/number}","milestones_url":"https://api.github.com/repos/grpc/grpc/milestones{/number}","notifications_url":"https://api.github.com/repos/grpc/grpc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/grpc/grpc/labels{/name}","releases_url":"https://api.github.com/repos/grpc/grpc/releases{/id}","created_at":"2014-12-08T18:58:53Z","updated_at":"2015-10-06T17:41:46Z","pushed_at":"2015-10-06T18:50:28Z","git_url":"git://github.com/grpc/grpc.git","ssh_url":"git@github.com:grpc/grpc.git","clone_url":"https://github.com/grpc/grpc.git","svn_url":"https://github.com/grpc/grpc","homepage":"","size":191357,"stargazers_count":3335,"watchers_count":3335,"language":"C","has_issues":true,"has_downloads":false,"has_wiki":true,"has_pages":true,"forks_count":501,"mirror_url":null,"open_issues_count":468,"forks":501,"open_issues":468,"watchers":3335,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/grpc/grpc/pulls/3675"},"html":{"href":"https://github.com/grpc/grpc/pull/3675"},"issue":{"href":"https://api.github.com/repos/grpc/grpc/issues/3675"},"comments":{"href":"https://api.github.com/repos/grpc/grpc/issues/3675/comments"},"review_comments":{"href":"https://api.github.com/repos/grpc/grpc/pulls/3675/comments"},"review_comment":{"href":"https://api.github.com/repos/grpc/grpc/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/grpc/grpc/pulls/3675/commits"},"statuses":{"href":"https://api.github.com/repos/grpc/grpc/statuses/fb8c77d477aaa0f4944e30ac591c440c1ef009cc"}}}}