{"action":"created","comment":{"url":"https://api.github.com/repos/twitter/heron/pulls/comments/73198444","id":73198444,"diff_hunk":"@@ -0,0 +1,85 @@\n+# Copyright 2016 Twitter. All rights reserved.\n+#\n+# Licensed under the Apache License, Version 2.0 (the \"License\");\n+# you may not use this file except in compliance with the License.\n+# You may obtain a copy of the License at\n+#\n+#    http://www.apache.org/licenses/LICENSE-2.0\n+#\n+# Unless required by applicable law or agreed to in writing, software\n+# distributed under the License is distributed on an \"AS IS\" BASIS,\n+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+# See the License for the specific language governing permissions and\n+# limitations under the License.\n+''' opts_unittest.py '''\n+import unittest2 as unittest\n+import heron.cli.src.python.activate as activate\n+import heron.common.src.python.argparser as argparser\n+import heron.common.src.python.utils.config as config\n+from heron.common.src.python.color import Log\n+import logging\n+import heron.cli.src.python.opts as opts\n+import os\n+import sys\n+#pylint: disable=missing-docstring, no-self-use\n+help_epilog = '''Getting more help:\n+  heron help <command> Prints help and options for <command>\n+\n+For detailed documentation, go to http://heronstreaming.io'''\n+\n+class HeronRCTest(unittest.TestCase):\n+  logging.basicConfig(level=logging.WARNING)\n+\n+  def setUp(self):\n+    dir_path = os.path.dirname(os.path.realpath(__file__))\n+    self.testrcfile = dir_path + \"/.heronrc\"\n+    pass\n+\n+\n+  def test_parser_commandline(self):\n+    sys.argv=[]\n+\n+    parser = argparser.HeronRCArgumentParser(\n+      prog = 'heron',\n+      epilog = help_epilog,\n+      formatter_class=config.SubcommandHelpFormatter,\n+      fromfile_prefix_chars='@',\n+      add_help = False,\n+      rcfile = self.testrcfile,\n+      rccommand = \"activate\",","path":"heron/cli/tests/python/argparser_unittest.py","position":49,"original_position":49,"commit_id":"68c26c4cfdc0ed5d93c52489c6b0bf3298241280","original_commit_id":"68c26c4cfdc0ed5d93c52489c6b0bf3298241280","user":{"login":"objmagic","id":3656079,"avatar_url":"https://avatars.githubusercontent.com/u/3656079?v=3","gravatar_id":"","url":"https://api.github.com/users/objmagic","html_url":"https://github.com/objmagic","followers_url":"https://api.github.com/users/objmagic/followers","following_url":"https://api.github.com/users/objmagic/following{/other_user}","gists_url":"https://api.github.com/users/objmagic/gists{/gist_id}","starred_url":"https://api.github.com/users/objmagic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/objmagic/subscriptions","organizations_url":"https://api.github.com/users/objmagic/orgs","repos_url":"https://api.github.com/users/objmagic/repos","events_url":"https://api.github.com/users/objmagic/events{/privacy}","received_events_url":"https://api.github.com/users/objmagic/received_events","type":"User","site_admin":false},"body":"you're right. I didn't look carefully.","created_at":"2016-08-02T17:21:37Z","updated_at":"2016-08-02T17:21:37Z","html_url":"https://github.com/twitter/heron/pull/1119#discussion_r73198444","pull_request_url":"https://api.github.com/repos/twitter/heron/pulls/1119","_links":{"self":{"href":"https://api.github.com/repos/twitter/heron/pulls/comments/73198444"},"html":{"href":"https://github.com/twitter/heron/pull/1119#discussion_r73198444"},"pull_request":{"href":"https://api.github.com/repos/twitter/heron/pulls/1119"}}},"pull_request":{"url":"https://api.github.com/repos/twitter/heron/pulls/1119","id":78206940,"html_url":"https://github.com/twitter/heron/pull/1119","diff_url":"https://github.com/twitter/heron/pull/1119.diff","patch_url":"https://github.com/twitter/heron/pull/1119.patch","issue_url":"https://api.github.com/repos/twitter/heron/issues/1119","number":1119,"state":"open","locked":false,"title":"#138 support for heronrc","user":{"login":"prabhuinbarajan","id":4031715,"avatar_url":"https://avatars.githubusercontent.com/u/4031715?v=3","gravatar_id":"","url":"https://api.github.com/users/prabhuinbarajan","html_url":"https://github.com/prabhuinbarajan","followers_url":"https://api.github.com/users/prabhuinbarajan/followers","following_url":"https://api.github.com/users/prabhuinbarajan/following{/other_user}","gists_url":"https://api.github.com/users/prabhuinbarajan/gists{/gist_id}","starred_url":"https://api.github.com/users/prabhuinbarajan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prabhuinbarajan/subscriptions","organizations_url":"https://api.github.com/users/prabhuinbarajan/orgs","repos_url":"https://api.github.com/users/prabhuinbarajan/repos","events_url":"https://api.github.com/users/prabhuinbarajan/events{/privacy}","received_events_url":"https://api.github.com/users/prabhuinbarajan/received_events","type":"User","site_admin":false},"body":"see readme","created_at":"2016-07-20T19:43:14Z","updated_at":"2016-08-02T17:21:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9a2a435e5ceebf6c928511b34af167dd9aa23fbc","assignee":{"login":"objmagic","id":3656079,"avatar_url":"https://avatars.githubusercontent.com/u/3656079?v=3","gravatar_id":"","url":"https://api.github.com/users/objmagic","html_url":"https://github.com/objmagic","followers_url":"https://api.github.com/users/objmagic/followers","following_url":"https://api.github.com/users/objmagic/following{/other_user}","gists_url":"https://api.github.com/users/objmagic/gists{/gist_id}","starred_url":"https://api.github.com/users/objmagic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/objmagic/subscriptions","organizations_url":"https://api.github.com/users/objmagic/orgs","repos_url":"https://api.github.com/users/objmagic/repos","events_url":"https://api.github.com/users/objmagic/events{/privacy}","received_events_url":"https://api.github.com/users/objmagic/received_events","type":"User","site_admin":false},"assignees":[{"login":"objmagic","id":3656079,"avatar_url":"https://avatars.githubusercontent.com/u/3656079?v=3","gravatar_id":"","url":"https://api.github.com/users/objmagic","html_url":"https://github.com/objmagic","followers_url":"https://api.github.com/users/objmagic/followers","following_url":"https://api.github.com/users/objmagic/following{/other_user}","gists_url":"https://api.github.com/users/objmagic/gists{/gist_id}","starred_url":"https://api.github.com/users/objmagic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/objmagic/subscriptions","organizations_url":"https://api.github.com/users/objmagic/orgs","repos_url":"https://api.github.com/users/objmagic/repos","events_url":"https://api.github.com/users/objmagic/events{/privacy}","received_events_url":"https://api.github.com/users/objmagic/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/twitter/heron/pulls/1119/commits","review_comments_url":"https://api.github.com/repos/twitter/heron/pulls/1119/comments","review_comment_url":"https://api.github.com/repos/twitter/heron/pulls/comments{/number}","comments_url":"https://api.github.com/repos/twitter/heron/issues/1119/comments","statuses_url":"https://api.github.com/repos/twitter/heron/statuses/68c26c4cfdc0ed5d93c52489c6b0bf3298241280","head":{"label":"prabhuinbarajan:heronrc","ref":"heronrc","sha":"68c26c4cfdc0ed5d93c52489c6b0bf3298241280","user":{"login":"prabhuinbarajan","id":4031715,"avatar_url":"https://avatars.githubusercontent.com/u/4031715?v=3","gravatar_id":"","url":"https://api.github.com/users/prabhuinbarajan","html_url":"https://github.com/prabhuinbarajan","followers_url":"https://api.github.com/users/prabhuinbarajan/followers","following_url":"https://api.github.com/users/prabhuinbarajan/following{/other_user}","gists_url":"https://api.github.com/users/prabhuinbarajan/gists{/gist_id}","starred_url":"https://api.github.com/users/prabhuinbarajan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prabhuinbarajan/subscriptions","organizations_url":"https://api.github.com/users/prabhuinbarajan/orgs","repos_url":"https://api.github.com/users/prabhuinbarajan/repos","events_url":"https://api.github.com/users/prabhuinbarajan/events{/privacy}","received_events_url":"https://api.github.com/users/prabhuinbarajan/received_events","type":"User","site_admin":false},"repo":{"id":62821190,"name":"heron-1","full_name":"prabhuinbarajan/heron-1","owner":{"login":"prabhuinbarajan","id":4031715,"avatar_url":"https://avatars.githubusercontent.com/u/4031715?v=3","gravatar_id":"","url":"https://api.github.com/users/prabhuinbarajan","html_url":"https://github.com/prabhuinbarajan","followers_url":"https://api.github.com/users/prabhuinbarajan/followers","following_url":"https://api.github.com/users/prabhuinbarajan/following{/other_user}","gists_url":"https://api.github.com/users/prabhuinbarajan/gists{/gist_id}","starred_url":"https://api.github.com/users/prabhuinbarajan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prabhuinbarajan/subscriptions","organizations_url":"https://api.github.com/users/prabhuinbarajan/orgs","repos_url":"https://api.github.com/users/prabhuinbarajan/repos","events_url":"https://api.github.com/users/prabhuinbarajan/events{/privacy}","received_events_url":"https://api.github.com/users/prabhuinbarajan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/prabhuinbarajan/heron-1","description":"Heron is a realtime, distributed, fault-tolerant stream processing engine from Twitter","fork":true,"url":"https://api.github.com/repos/prabhuinbarajan/heron-1","forks_url":"https://api.github.com/repos/prabhuinbarajan/heron-1/forks","keys_url":"https://api.github.com/repos/prabhuinbarajan/heron-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/prabhuinbarajan/heron-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/prabhuinbarajan/heron-1/teams","hooks_url":"https://api.github.com/repos/prabhuinbarajan/heron-1/hooks","issue_events_url":"https://api.github.com/repos/prabhuinbarajan/heron-1/issues/events{/number}","events_url":"https://api.github.com/repos/prabhuinbarajan/heron-1/events","assignees_url":"https://api.github.com/repos/prabhuinbarajan/heron-1/assignees{/user}","branches_url":"https://api.github.com/repos/prabhuinbarajan/heron-1/branches{/branch}","tags_url":"https://api.github.com/repos/prabhuinbarajan/heron-1/tags","blobs_url":"https://api.github.com/repos/prabhuinbarajan/heron-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/prabhuinbarajan/heron-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/prabhuinbarajan/heron-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/prabhuinbarajan/heron-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/prabhuinbarajan/heron-1/statuses/{sha}","languages_url":"https://api.github.com/repos/prabhuinbarajan/heron-1/languages","stargazers_url":"https://api.github.com/repos/prabhuinbarajan/heron-1/stargazers","contributors_url":"https://api.github.com/repos/prabhuinbarajan/heron-1/contributors","subscribers_url":"https://api.github.com/repos/prabhuinbarajan/heron-1/subscribers","subscription_url":"https://api.github.com/repos/prabhuinbarajan/heron-1/subscription","commits_url":"https://api.github.com/repos/prabhuinbarajan/heron-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/prabhuinbarajan/heron-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/prabhuinbarajan/heron-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/prabhuinbarajan/heron-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/prabhuinbarajan/heron-1/contents/{+path}","compare_url":"https://api.github.com/repos/prabhuinbarajan/heron-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/prabhuinbarajan/heron-1/merges","archive_url":"https://api.github.com/repos/prabhuinbarajan/heron-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/prabhuinbarajan/heron-1/downloads","issues_url":"https://api.github.com/repos/prabhuinbarajan/heron-1/issues{/number}","pulls_url":"https://api.github.com/repos/prabhuinbarajan/heron-1/pulls{/number}","milestones_url":"https://api.github.com/repos/prabhuinbarajan/heron-1/milestones{/number}","notifications_url":"https://api.github.com/repos/prabhuinbarajan/heron-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/prabhuinbarajan/heron-1/labels{/name}","releases_url":"https://api.github.com/repos/prabhuinbarajan/heron-1/releases{/id}","deployments_url":"https://api.github.com/repos/prabhuinbarajan/heron-1/deployments","created_at":"2016-07-07T16:19:21Z","updated_at":"2016-07-07T16:19:24Z","pushed_at":"2016-08-02T00:46:46Z","git_url":"git://github.com/prabhuinbarajan/heron-1.git","ssh_url":"git@github.com:prabhuinbarajan/heron-1.git","clone_url":"https://github.com/prabhuinbarajan/heron-1.git","svn_url":"https://github.com/prabhuinbarajan/heron-1","homepage":"http://heronstreaming.io","size":113491,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"twitter:master","ref":"master","sha":"ebc251d986216117509c6d52c16238b82c78b5a8","user":{"login":"twitter","id":50278,"avatar_url":"https://avatars.githubusercontent.com/u/50278?v=3","gravatar_id":"","url":"https://api.github.com/users/twitter","html_url":"https://github.com/twitter","followers_url":"https://api.github.com/users/twitter/followers","following_url":"https://api.github.com/users/twitter/following{/other_user}","gists_url":"https://api.github.com/users/twitter/gists{/gist_id}","starred_url":"https://api.github.com/users/twitter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twitter/subscriptions","organizations_url":"https://api.github.com/users/twitter/orgs","repos_url":"https://api.github.com/users/twitter/repos","events_url":"https://api.github.com/users/twitter/events{/privacy}","received_events_url":"https://api.github.com/users/twitter/received_events","type":"Organization","site_admin":false},"repo":{"id":43158694,"name":"heron","full_name":"twitter/heron","owner":{"login":"twitter","id":50278,"avatar_url":"https://avatars.githubusercontent.com/u/50278?v=3","gravatar_id":"","url":"https://api.github.com/users/twitter","html_url":"https://github.com/twitter","followers_url":"https://api.github.com/users/twitter/followers","following_url":"https://api.github.com/users/twitter/following{/other_user}","gists_url":"https://api.github.com/users/twitter/gists{/gist_id}","starred_url":"https://api.github.com/users/twitter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twitter/subscriptions","organizations_url":"https://api.github.com/users/twitter/orgs","repos_url":"https://api.github.com/users/twitter/repos","events_url":"https://api.github.com/users/twitter/events{/privacy}","received_events_url":"https://api.github.com/users/twitter/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/twitter/heron","description":"Heron is a realtime, distributed, fault-tolerant stream processing engine from Twitter","fork":false,"url":"https://api.github.com/repos/twitter/heron","forks_url":"https://api.github.com/repos/twitter/heron/forks","keys_url":"https://api.github.com/repos/twitter/heron/keys{/key_id}","collaborators_url":"https://api.github.com/repos/twitter/heron/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/twitter/heron/teams","hooks_url":"https://api.github.com/repos/twitter/heron/hooks","issue_events_url":"https://api.github.com/repos/twitter/heron/issues/events{/number}","events_url":"https://api.github.com/repos/twitter/heron/events","assignees_url":"https://api.github.com/repos/twitter/heron/assignees{/user}","branches_url":"https://api.github.com/repos/twitter/heron/branches{/branch}","tags_url":"https://api.github.com/repos/twitter/heron/tags","blobs_url":"https://api.github.com/repos/twitter/heron/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/twitter/heron/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/twitter/heron/git/refs{/sha}","trees_url":"https://api.github.com/repos/twitter/heron/git/trees{/sha}","statuses_url":"https://api.github.com/repos/twitter/heron/statuses/{sha}","languages_url":"https://api.github.com/repos/twitter/heron/languages","stargazers_url":"https://api.github.com/repos/twitter/heron/stargazers","contributors_url":"https://api.github.com/repos/twitter/heron/contributors","subscribers_url":"https://api.github.com/repos/twitter/heron/subscribers","subscription_url":"https://api.github.com/repos/twitter/heron/subscription","commits_url":"https://api.github.com/repos/twitter/heron/commits{/sha}","git_commits_url":"https://api.github.com/repos/twitter/heron/git/commits{/sha}","comments_url":"https://api.github.com/repos/twitter/heron/comments{/number}","issue_comment_url":"https://api.github.com/repos/twitter/heron/issues/comments{/number}","contents_url":"https://api.github.com/repos/twitter/heron/contents/{+path}","compare_url":"https://api.github.com/repos/twitter/heron/compare/{base}...{head}","merges_url":"https://api.github.com/repos/twitter/heron/merges","archive_url":"https://api.github.com/repos/twitter/heron/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/twitter/heron/downloads","issues_url":"https://api.github.com/repos/twitter/heron/issues{/number}","pulls_url":"https://api.github.com/repos/twitter/heron/pulls{/number}","milestones_url":"https://api.github.com/repos/twitter/heron/milestones{/number}","notifications_url":"https://api.github.com/repos/twitter/heron/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/twitter/heron/labels{/name}","releases_url":"https://api.github.com/repos/twitter/heron/releases{/id}","deployments_url":"https://api.github.com/repos/twitter/heron/deployments","created_at":"2015-09-25T16:09:24Z","updated_at":"2016-08-02T16:15:45Z","pushed_at":"2016-08-02T04:34:01Z","git_url":"git://github.com/twitter/heron.git","ssh_url":"git@github.com:twitter/heron.git","clone_url":"https://github.com/twitter/heron.git","svn_url":"https://github.com/twitter/heron","homepage":"http://heronstreaming.io","size":137157,"stargazers_count":2210,"watchers_count":2210,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":342,"mirror_url":null,"open_issues_count":169,"forks":342,"open_issues":169,"watchers":2210,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/twitter/heron/pulls/1119"},"html":{"href":"https://github.com/twitter/heron/pull/1119"},"issue":{"href":"https://api.github.com/repos/twitter/heron/issues/1119"},"comments":{"href":"https://api.github.com/repos/twitter/heron/issues/1119/comments"},"review_comments":{"href":"https://api.github.com/repos/twitter/heron/pulls/1119/comments"},"review_comment":{"href":"https://api.github.com/repos/twitter/heron/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/twitter/heron/pulls/1119/commits"},"statuses":{"href":"https://api.github.com/repos/twitter/heron/statuses/68c26c4cfdc0ed5d93c52489c6b0bf3298241280"}}}}
{"actor":{"display_login":"objmagic"}}