{"action":"created","comment":{"url":"https://api.github.com/repos/google/physical-web/pulls/comments/29707725","id":29707725,"diff_hunk":"@@ -14,15 +14,15 @@\n # See the License for the specific language governing permissions and\n # limitations under the License.\n #\n+import argparse\n import json\n+import os\n+import subprocess\n import urllib\n import urllib2\n \n-################################################################################\n \n-LOCAL_ENDPOINT = 'http://localhost:8080'\n-REMOTE_ENDPOINT = 'http://url-caster.appspot.com'\n-REMOTE_DEV_ENDPOINT = 'http://url-caster-dev.appspot.com'\n+LOCAL_TEST_PORT = 9002","path":"web-service/tests.py","position":16,"original_position":16,"commit_id":"7ec5f16e95dbfdfb893fb30e4f21a677b6fd404b","original_commit_id":"7ec5f16e95dbfdfb893fb30e4f21a677b6fd404b","user":{"login":"mmocny","id":474282,"avatar_url":"https://avatars.githubusercontent.com/u/474282?v=3","gravatar_id":"","url":"https://api.github.com/users/mmocny","html_url":"https://github.com/mmocny","followers_url":"https://api.github.com/users/mmocny/followers","following_url":"https://api.github.com/users/mmocny/following{/other_user}","gists_url":"https://api.github.com/users/mmocny/gists{/gist_id}","starred_url":"https://api.github.com/users/mmocny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmocny/subscriptions","organizations_url":"https://api.github.com/users/mmocny/orgs","repos_url":"https://api.github.com/users/mmocny/repos","events_url":"https://api.github.com/users/mmocny/events{/privacy}","received_events_url":"https://api.github.com/users/mmocny/received_events","type":"User","site_admin":false},"body":"We should update the docs to suggest starting the server with this port.","created_at":"2015-05-05T20:12:56Z","updated_at":"2015-05-05T20:12:56Z","html_url":"https://github.com/google/physical-web/pull/354#discussion_r29707725","pull_request_url":"https://api.github.com/repos/google/physical-web/pulls/354","_links":{"self":{"href":"https://api.github.com/repos/google/physical-web/pulls/comments/29707725"},"html":{"href":"https://github.com/google/physical-web/pull/354#discussion_r29707725"},"pull_request":{"href":"https://api.github.com/repos/google/physical-web/pulls/354"}}},"pull_request":{"url":"https://api.github.com/repos/google/physical-web/pulls/354","id":34759058,"html_url":"https://github.com/google/physical-web/pull/354","diff_url":"https://github.com/google/physical-web/pull/354.diff","patch_url":"https://github.com/google/physical-web/pull/354.patch","issue_url":"https://api.github.com/repos/google/physical-web/issues/354","number":354,"state":"open","locked":false,"title":"Add endpoint argument to web-service test","user":{"login":"cco3","id":236057,"avatar_url":"https://avatars.githubusercontent.com/u/236057?v=3","gravatar_id":"","url":"https://api.github.com/users/cco3","html_url":"https://github.com/cco3","followers_url":"https://api.github.com/users/cco3/followers","following_url":"https://api.github.com/users/cco3/following{/other_user}","gists_url":"https://api.github.com/users/cco3/gists{/gist_id}","starred_url":"https://api.github.com/users/cco3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cco3/subscriptions","organizations_url":"https://api.github.com/users/cco3/orgs","repos_url":"https://api.github.com/users/cco3/repos","events_url":"https://api.github.com/users/cco3/events{/privacy}","received_events_url":"https://api.github.com/users/cco3/received_events","type":"User","site_admin":false},"body":"The default behavior is to automatically start up a server locally.","created_at":"2015-05-05T19:36:53Z","updated_at":"2015-05-05T20:12:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4ed661f512cb4024be9779c8ae91b6e4f92f59d9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/google/physical-web/pulls/354/commits","review_comments_url":"https://api.github.com/repos/google/physical-web/pulls/354/comments","review_comment_url":"https://api.github.com/repos/google/physical-web/pulls/comments{/number}","comments_url":"https://api.github.com/repos/google/physical-web/issues/354/comments","statuses_url":"https://api.github.com/repos/google/physical-web/statuses/7ec5f16e95dbfdfb893fb30e4f21a677b6fd404b","head":{"label":"cco3:endpointarg","ref":"endpointarg","sha":"7ec5f16e95dbfdfb893fb30e4f21a677b6fd404b","user":{"login":"cco3","id":236057,"avatar_url":"https://avatars.githubusercontent.com/u/236057?v=3","gravatar_id":"","url":"https://api.github.com/users/cco3","html_url":"https://github.com/cco3","followers_url":"https://api.github.com/users/cco3/followers","following_url":"https://api.github.com/users/cco3/following{/other_user}","gists_url":"https://api.github.com/users/cco3/gists{/gist_id}","starred_url":"https://api.github.com/users/cco3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cco3/subscriptions","organizations_url":"https://api.github.com/users/cco3/orgs","repos_url":"https://api.github.com/users/cco3/repos","events_url":"https://api.github.com/users/cco3/events{/privacy}","received_events_url":"https://api.github.com/users/cco3/received_events","type":"User","site_admin":false},"repo":{"id":32601630,"name":"physical-web","full_name":"cco3/physical-web","owner":{"login":"cco3","id":236057,"avatar_url":"https://avatars.githubusercontent.com/u/236057?v=3","gravatar_id":"","url":"https://api.github.com/users/cco3","html_url":"https://github.com/cco3","followers_url":"https://api.github.com/users/cco3/followers","following_url":"https://api.github.com/users/cco3/following{/other_user}","gists_url":"https://api.github.com/users/cco3/gists{/gist_id}","starred_url":"https://api.github.com/users/cco3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cco3/subscriptions","organizations_url":"https://api.github.com/users/cco3/orgs","repos_url":"https://api.github.com/users/cco3/repos","events_url":"https://api.github.com/users/cco3/events{/privacy}","received_events_url":"https://api.github.com/users/cco3/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cco3/physical-web","description":"The Physical Web: walk up and use anything","fork":true,"url":"https://api.github.com/repos/cco3/physical-web","forks_url":"https://api.github.com/repos/cco3/physical-web/forks","keys_url":"https://api.github.com/repos/cco3/physical-web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cco3/physical-web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cco3/physical-web/teams","hooks_url":"https://api.github.com/repos/cco3/physical-web/hooks","issue_events_url":"https://api.github.com/repos/cco3/physical-web/issues/events{/number}","events_url":"https://api.github.com/repos/cco3/physical-web/events","assignees_url":"https://api.github.com/repos/cco3/physical-web/assignees{/user}","branches_url":"https://api.github.com/repos/cco3/physical-web/branches{/branch}","tags_url":"https://api.github.com/repos/cco3/physical-web/tags","blobs_url":"https://api.github.com/repos/cco3/physical-web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cco3/physical-web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cco3/physical-web/git/refs{/sha}","trees_url":"https://api.github.com/repos/cco3/physical-web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cco3/physical-web/statuses/{sha}","languages_url":"https://api.github.com/repos/cco3/physical-web/languages","stargazers_url":"https://api.github.com/repos/cco3/physical-web/stargazers","contributors_url":"https://api.github.com/repos/cco3/physical-web/contributors","subscribers_url":"https://api.github.com/repos/cco3/physical-web/subscribers","subscription_url":"https://api.github.com/repos/cco3/physical-web/subscription","commits_url":"https://api.github.com/repos/cco3/physical-web/commits{/sha}","git_commits_url":"https://api.github.com/repos/cco3/physical-web/git/commits{/sha}","comments_url":"https://api.github.com/repos/cco3/physical-web/comments{/number}","issue_comment_url":"https://api.github.com/repos/cco3/physical-web/issues/comments{/number}","contents_url":"https://api.github.com/repos/cco3/physical-web/contents/{+path}","compare_url":"https://api.github.com/repos/cco3/physical-web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cco3/physical-web/merges","archive_url":"https://api.github.com/repos/cco3/physical-web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cco3/physical-web/downloads","issues_url":"https://api.github.com/repos/cco3/physical-web/issues{/number}","pulls_url":"https://api.github.com/repos/cco3/physical-web/pulls{/number}","milestones_url":"https://api.github.com/repos/cco3/physical-web/milestones{/number}","notifications_url":"https://api.github.com/repos/cco3/physical-web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cco3/physical-web/labels{/name}","releases_url":"https://api.github.com/repos/cco3/physical-web/releases{/id}","created_at":"2015-03-20T18:58:58Z","updated_at":"2015-03-20T18:58:58Z","pushed_at":"2015-05-05T19:36:44Z","git_url":"git://github.com/cco3/physical-web.git","ssh_url":"git@github.com:cco3/physical-web.git","clone_url":"https://github.com/cco3/physical-web.git","svn_url":"https://github.com/cco3/physical-web","homepage":"http://physical-web.org","size":8470,"stargazers_count":0,"watchers_count":0,"language":"Objective-C","has_issues":false,"has_downloads":false,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"google:master","ref":"master","sha":"2c28997d3f3e85eb830ecea73bb412bcc69c4f40","user":{"login":"google","id":1342004,"avatar_url":"https://avatars.githubusercontent.com/u/1342004?v=3","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"repo":{"id":24650339,"name":"physical-web","full_name":"google/physical-web","owner":{"login":"google","id":1342004,"avatar_url":"https://avatars.githubusercontent.com/u/1342004?v=3","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/google/physical-web","description":"The Physical Web: walk up and use anything","fork":false,"url":"https://api.github.com/repos/google/physical-web","forks_url":"https://api.github.com/repos/google/physical-web/forks","keys_url":"https://api.github.com/repos/google/physical-web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/google/physical-web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/google/physical-web/teams","hooks_url":"https://api.github.com/repos/google/physical-web/hooks","issue_events_url":"https://api.github.com/repos/google/physical-web/issues/events{/number}","events_url":"https://api.github.com/repos/google/physical-web/events","assignees_url":"https://api.github.com/repos/google/physical-web/assignees{/user}","branches_url":"https://api.github.com/repos/google/physical-web/branches{/branch}","tags_url":"https://api.github.com/repos/google/physical-web/tags","blobs_url":"https://api.github.com/repos/google/physical-web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/google/physical-web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/google/physical-web/git/refs{/sha}","trees_url":"https://api.github.com/repos/google/physical-web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/google/physical-web/statuses/{sha}","languages_url":"https://api.github.com/repos/google/physical-web/languages","stargazers_url":"https://api.github.com/repos/google/physical-web/stargazers","contributors_url":"https://api.github.com/repos/google/physical-web/contributors","subscribers_url":"https://api.github.com/repos/google/physical-web/subscribers","subscription_url":"https://api.github.com/repos/google/physical-web/subscription","commits_url":"https://api.github.com/repos/google/physical-web/commits{/sha}","git_commits_url":"https://api.github.com/repos/google/physical-web/git/commits{/sha}","comments_url":"https://api.github.com/repos/google/physical-web/comments{/number}","issue_comment_url":"https://api.github.com/repos/google/physical-web/issues/comments{/number}","contents_url":"https://api.github.com/repos/google/physical-web/contents/{+path}","compare_url":"https://api.github.com/repos/google/physical-web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/google/physical-web/merges","archive_url":"https://api.github.com/repos/google/physical-web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/google/physical-web/downloads","issues_url":"https://api.github.com/repos/google/physical-web/issues{/number}","pulls_url":"https://api.github.com/repos/google/physical-web/pulls{/number}","milestones_url":"https://api.github.com/repos/google/physical-web/milestones{/number}","notifications_url":"https://api.github.com/repos/google/physical-web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/google/physical-web/labels{/name}","releases_url":"https://api.github.com/repos/google/physical-web/releases{/id}","created_at":"2014-09-30T18:32:14Z","updated_at":"2015-05-05T19:09:59Z","pushed_at":"2015-05-05T19:36:54Z","git_url":"git://github.com/google/physical-web.git","ssh_url":"git@github.com:google/physical-web.git","clone_url":"https://github.com/google/physical-web.git","svn_url":"https://github.com/google/physical-web","homepage":"http://physical-web.org","size":11272,"stargazers_count":3825,"watchers_count":3825,"language":"Objective-C","has_issues":true,"has_downloads":false,"has_wiki":true,"has_pages":true,"forks_count":379,"mirror_url":null,"open_issues_count":23,"forks":379,"open_issues":23,"watchers":3825,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/google/physical-web/pulls/354"},"html":{"href":"https://github.com/google/physical-web/pull/354"},"issue":{"href":"https://api.github.com/repos/google/physical-web/issues/354"},"comments":{"href":"https://api.github.com/repos/google/physical-web/issues/354/comments"},"review_comments":{"href":"https://api.github.com/repos/google/physical-web/pulls/354/comments"},"review_comment":{"href":"https://api.github.com/repos/google/physical-web/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/google/physical-web/pulls/354/commits"},"statuses":{"href":"https://api.github.com/repos/google/physical-web/statuses/7ec5f16e95dbfdfb893fb30e4f21a677b6fd404b"}}}}