{"action":"created","comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/comments/136961640","pull_request_review_id":60569516,"id":136961640,"diff_hunk":"@@ -127,3 +138,32 @@ func TestParserV1beta1(t *testing.T) {\n \t\tt.Errorf(\"Unexpected policy! Diff:\\n%s\", diff.ObjectDiff(policy, expectedPolicy))\n \t}\n }\n+\n+func TestPolicyCntCheckV1alpha1(t *testing.T) {","path":"staging/src/k8s.io/apiserver/pkg/audit/policy/reader_test.go","position":30,"original_position":30,"commit_id":"df15c9ee5a0b642c1af2d6a1ffe52ff648fd671b","original_commit_id":"df15c9ee5a0b642c1af2d6a1ffe52ff648fd671b","user":{"login":"crassirostris","id":1756505,"avatar_url":"https://avatars1.githubusercontent.com/u/1756505?v=4","gravatar_id":"","url":"https://api.github.com/users/crassirostris","html_url":"https://github.com/crassirostris","followers_url":"https://api.github.com/users/crassirostris/followers","following_url":"https://api.github.com/users/crassirostris/following{/other_user}","gists_url":"https://api.github.com/users/crassirostris/gists{/gist_id}","starred_url":"https://api.github.com/users/crassirostris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crassirostris/subscriptions","organizations_url":"https://api.github.com/users/crassirostris/orgs","repos_url":"https://api.github.com/users/crassirostris/repos","events_url":"https://api.github.com/users/crassirostris/events{/privacy}","received_events_url":"https://api.github.com/users/crassirostris/received_events","type":"User","site_admin":false},"body":"I think we should parameterize the tests instead of duplicating the logic","created_at":"2017-09-05T11:36:04Z","updated_at":"2017-09-05T11:36:04Z","html_url":"https://github.com/kubernetes/kubernetes/pull/51782#discussion_r136961640","pull_request_url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/51782","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/comments/136961640"},"html":{"href":"https://github.com/kubernetes/kubernetes/pull/51782#discussion_r136961640"},"pull_request":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/51782"}}},"pull_request":{"url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/51782","id":138848183,"html_url":"https://github.com/kubernetes/kubernetes/pull/51782","diff_url":"https://github.com/kubernetes/kubernetes/pull/51782.diff","patch_url":"https://github.com/kubernetes/kubernetes/pull/51782.patch","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/51782","number":51782,"state":"open","locked":false,"title":"A policy with 0 rules should return an error","user":{"login":"charrywanganthony","id":9130328,"avatar_url":"https://avatars2.githubusercontent.com/u/9130328?v=4","gravatar_id":"","url":"https://api.github.com/users/charrywanganthony","html_url":"https://github.com/charrywanganthony","followers_url":"https://api.github.com/users/charrywanganthony/followers","following_url":"https://api.github.com/users/charrywanganthony/following{/other_user}","gists_url":"https://api.github.com/users/charrywanganthony/gists{/gist_id}","starred_url":"https://api.github.com/users/charrywanganthony/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charrywanganthony/subscriptions","organizations_url":"https://api.github.com/users/charrywanganthony/orgs","repos_url":"https://api.github.com/users/charrywanganthony/repos","events_url":"https://api.github.com/users/charrywanganthony/events{/privacy}","received_events_url":"https://api.github.com/users/charrywanganthony/received_events","type":"User","site_admin":false},"body":"\r\n\r\n**Which issue this PR fixes** \r\n[isuue#51565](https://github.com/kubernetes/kubernetes/issues/51565)","created_at":"2017-09-01T09:17:40Z","updated_at":"2017-09-05T11:36:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f5219102cdaa6a983956925bea89263896c13fa9","assignee":{"login":"sttts","id":730123,"avatar_url":"https://avatars0.githubusercontent.com/u/730123?v=4","gravatar_id":"","url":"https://api.github.com/users/sttts","html_url":"https://github.com/sttts","followers_url":"https://api.github.com/users/sttts/followers","following_url":"https://api.github.com/users/sttts/following{/other_user}","gists_url":"https://api.github.com/users/sttts/gists{/gist_id}","starred_url":"https://api.github.com/users/sttts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sttts/subscriptions","organizations_url":"https://api.github.com/users/sttts/orgs","repos_url":"https://api.github.com/users/sttts/repos","events_url":"https://api.github.com/users/sttts/events{/privacy}","received_events_url":"https://api.github.com/users/sttts/received_events","type":"User","site_admin":false},"assignees":[{"login":"sttts","id":730123,"avatar_url":"https://avatars0.githubusercontent.com/u/730123?v=4","gravatar_id":"","url":"https://api.github.com/users/sttts","html_url":"https://github.com/sttts","followers_url":"https://api.github.com/users/sttts/followers","following_url":"https://api.github.com/users/sttts/following{/other_user}","gists_url":"https://api.github.com/users/sttts/gists{/gist_id}","starred_url":"https://api.github.com/users/sttts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sttts/subscriptions","organizations_url":"https://api.github.com/users/sttts/orgs","repos_url":"https://api.github.com/users/sttts/repos","events_url":"https://api.github.com/users/sttts/events{/privacy}","received_events_url":"https://api.github.com/users/sttts/received_events","type":"User","site_admin":false},{"login":"CaoShuFeng","id":20855209,"avatar_url":"https://avatars0.githubusercontent.com/u/20855209?v=4","gravatar_id":"","url":"https://api.github.com/users/CaoShuFeng","html_url":"https://github.com/CaoShuFeng","followers_url":"https://api.github.com/users/CaoShuFeng/followers","following_url":"https://api.github.com/users/CaoShuFeng/following{/other_user}","gists_url":"https://api.github.com/users/CaoShuFeng/gists{/gist_id}","starred_url":"https://api.github.com/users/CaoShuFeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CaoShuFeng/subscriptions","organizations_url":"https://api.github.com/users/CaoShuFeng/orgs","repos_url":"https://api.github.com/users/CaoShuFeng/repos","events_url":"https://api.github.com/users/CaoShuFeng/events{/privacy}","received_events_url":"https://api.github.com/users/CaoShuFeng/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/51782/commits","review_comments_url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/51782/comments","review_comment_url":"https://api.github.com/repos/kubernetes/kubernetes/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/51782/comments","statuses_url":"https://api.github.com/repos/kubernetes/kubernetes/statuses/df15c9ee5a0b642c1af2d6a1ffe52ff648fd671b","head":{"label":"charrywanganthony:audit-1","ref":"audit-1","sha":"df15c9ee5a0b642c1af2d6a1ffe52ff648fd671b","user":{"login":"charrywanganthony","id":9130328,"avatar_url":"https://avatars2.githubusercontent.com/u/9130328?v=4","gravatar_id":"","url":"https://api.github.com/users/charrywanganthony","html_url":"https://github.com/charrywanganthony","followers_url":"https://api.github.com/users/charrywanganthony/followers","following_url":"https://api.github.com/users/charrywanganthony/following{/other_user}","gists_url":"https://api.github.com/users/charrywanganthony/gists{/gist_id}","starred_url":"https://api.github.com/users/charrywanganthony/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charrywanganthony/subscriptions","organizations_url":"https://api.github.com/users/charrywanganthony/orgs","repos_url":"https://api.github.com/users/charrywanganthony/repos","events_url":"https://api.github.com/users/charrywanganthony/events{/privacy}","received_events_url":"https://api.github.com/users/charrywanganthony/received_events","type":"User","site_admin":false},"repo":{"id":102065011,"name":"kubernetes","full_name":"charrywanganthony/kubernetes","owner":{"login":"charrywanganthony","id":9130328,"avatar_url":"https://avatars2.githubusercontent.com/u/9130328?v=4","gravatar_id":"","url":"https://api.github.com/users/charrywanganthony","html_url":"https://github.com/charrywanganthony","followers_url":"https://api.github.com/users/charrywanganthony/followers","following_url":"https://api.github.com/users/charrywanganthony/following{/other_user}","gists_url":"https://api.github.com/users/charrywanganthony/gists{/gist_id}","starred_url":"https://api.github.com/users/charrywanganthony/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charrywanganthony/subscriptions","organizations_url":"https://api.github.com/users/charrywanganthony/orgs","repos_url":"https://api.github.com/users/charrywanganthony/repos","events_url":"https://api.github.com/users/charrywanganthony/events{/privacy}","received_events_url":"https://api.github.com/users/charrywanganthony/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/charrywanganthony/kubernetes","description":"Production-Grade Container Scheduling and Management","fork":true,"url":"https://api.github.com/repos/charrywanganthony/kubernetes","forks_url":"https://api.github.com/repos/charrywanganthony/kubernetes/forks","keys_url":"https://api.github.com/repos/charrywanganthony/kubernetes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/charrywanganthony/kubernetes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/charrywanganthony/kubernetes/teams","hooks_url":"https://api.github.com/repos/charrywanganthony/kubernetes/hooks","issue_events_url":"https://api.github.com/repos/charrywanganthony/kubernetes/issues/events{/number}","events_url":"https://api.github.com/repos/charrywanganthony/kubernetes/events","assignees_url":"https://api.github.com/repos/charrywanganthony/kubernetes/assignees{/user}","branches_url":"https://api.github.com/repos/charrywanganthony/kubernetes/branches{/branch}","tags_url":"https://api.github.com/repos/charrywanganthony/kubernetes/tags","blobs_url":"https://api.github.com/repos/charrywanganthony/kubernetes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/charrywanganthony/kubernetes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/charrywanganthony/kubernetes/git/refs{/sha}","trees_url":"https://api.github.com/repos/charrywanganthony/kubernetes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/charrywanganthony/kubernetes/statuses/{sha}","languages_url":"https://api.github.com/repos/charrywanganthony/kubernetes/languages","stargazers_url":"https://api.github.com/repos/charrywanganthony/kubernetes/stargazers","contributors_url":"https://api.github.com/repos/charrywanganthony/kubernetes/contributors","subscribers_url":"https://api.github.com/repos/charrywanganthony/kubernetes/subscribers","subscription_url":"https://api.github.com/repos/charrywanganthony/kubernetes/subscription","commits_url":"https://api.github.com/repos/charrywanganthony/kubernetes/commits{/sha}","git_commits_url":"https://api.github.com/repos/charrywanganthony/kubernetes/git/commits{/sha}","comments_url":"https://api.github.com/repos/charrywanganthony/kubernetes/comments{/number}","issue_comment_url":"https://api.github.com/repos/charrywanganthony/kubernetes/issues/comments{/number}","contents_url":"https://api.github.com/repos/charrywanganthony/kubernetes/contents/{+path}","compare_url":"https://api.github.com/repos/charrywanganthony/kubernetes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/charrywanganthony/kubernetes/merges","archive_url":"https://api.github.com/repos/charrywanganthony/kubernetes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/charrywanganthony/kubernetes/downloads","issues_url":"https://api.github.com/repos/charrywanganthony/kubernetes/issues{/number}","pulls_url":"https://api.github.com/repos/charrywanganthony/kubernetes/pulls{/number}","milestones_url":"https://api.github.com/repos/charrywanganthony/kubernetes/milestones{/number}","notifications_url":"https://api.github.com/repos/charrywanganthony/kubernetes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/charrywanganthony/kubernetes/labels{/name}","releases_url":"https://api.github.com/repos/charrywanganthony/kubernetes/releases{/id}","deployments_url":"https://api.github.com/repos/charrywanganthony/kubernetes/deployments","created_at":"2017-09-01T02:26:59Z","updated_at":"2017-09-01T02:27:40Z","pushed_at":"2017-09-05T11:30:52Z","git_url":"git://github.com/charrywanganthony/kubernetes.git","ssh_url":"git@github.com:charrywanganthony/kubernetes.git","clone_url":"https://github.com/charrywanganthony/kubernetes.git","svn_url":"https://github.com/charrywanganthony/kubernetes","homepage":"http://kubernetes.io","size":472310,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"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":"kubernetes:master","ref":"master","sha":"156c4b443b005e13731f12cf772ec4590dc8914e","user":{"login":"kubernetes","id":13629408,"avatar_url":"https://avatars2.githubusercontent.com/u/13629408?v=4","gravatar_id":"","url":"https://api.github.com/users/kubernetes","html_url":"https://github.com/kubernetes","followers_url":"https://api.github.com/users/kubernetes/followers","following_url":"https://api.github.com/users/kubernetes/following{/other_user}","gists_url":"https://api.github.com/users/kubernetes/gists{/gist_id}","starred_url":"https://api.github.com/users/kubernetes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kubernetes/subscriptions","organizations_url":"https://api.github.com/users/kubernetes/orgs","repos_url":"https://api.github.com/users/kubernetes/repos","events_url":"https://api.github.com/users/kubernetes/events{/privacy}","received_events_url":"https://api.github.com/users/kubernetes/received_events","type":"Organization","site_admin":false},"repo":{"id":20580498,"name":"kubernetes","full_name":"kubernetes/kubernetes","owner":{"login":"kubernetes","id":13629408,"avatar_url":"https://avatars2.githubusercontent.com/u/13629408?v=4","gravatar_id":"","url":"https://api.github.com/users/kubernetes","html_url":"https://github.com/kubernetes","followers_url":"https://api.github.com/users/kubernetes/followers","following_url":"https://api.github.com/users/kubernetes/following{/other_user}","gists_url":"https://api.github.com/users/kubernetes/gists{/gist_id}","starred_url":"https://api.github.com/users/kubernetes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kubernetes/subscriptions","organizations_url":"https://api.github.com/users/kubernetes/orgs","repos_url":"https://api.github.com/users/kubernetes/repos","events_url":"https://api.github.com/users/kubernetes/events{/privacy}","received_events_url":"https://api.github.com/users/kubernetes/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kubernetes/kubernetes","description":"Production-Grade Container Scheduling and Management","fork":false,"url":"https://api.github.com/repos/kubernetes/kubernetes","forks_url":"https://api.github.com/repos/kubernetes/kubernetes/forks","keys_url":"https://api.github.com/repos/kubernetes/kubernetes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kubernetes/kubernetes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kubernetes/kubernetes/teams","hooks_url":"https://api.github.com/repos/kubernetes/kubernetes/hooks","issue_events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/events{/number}","events_url":"https://api.github.com/repos/kubernetes/kubernetes/events","assignees_url":"https://api.github.com/repos/kubernetes/kubernetes/assignees{/user}","branches_url":"https://api.github.com/repos/kubernetes/kubernetes/branches{/branch}","tags_url":"https://api.github.com/repos/kubernetes/kubernetes/tags","blobs_url":"https://api.github.com/repos/kubernetes/kubernetes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kubernetes/kubernetes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kubernetes/kubernetes/git/refs{/sha}","trees_url":"https://api.github.com/repos/kubernetes/kubernetes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kubernetes/kubernetes/statuses/{sha}","languages_url":"https://api.github.com/repos/kubernetes/kubernetes/languages","stargazers_url":"https://api.github.com/repos/kubernetes/kubernetes/stargazers","contributors_url":"https://api.github.com/repos/kubernetes/kubernetes/contributors","subscribers_url":"https://api.github.com/repos/kubernetes/kubernetes/subscribers","subscription_url":"https://api.github.com/repos/kubernetes/kubernetes/subscription","commits_url":"https://api.github.com/repos/kubernetes/kubernetes/commits{/sha}","git_commits_url":"https://api.github.com/repos/kubernetes/kubernetes/git/commits{/sha}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/comments{/number}","issue_comment_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments{/number}","contents_url":"https://api.github.com/repos/kubernetes/kubernetes/contents/{+path}","compare_url":"https://api.github.com/repos/kubernetes/kubernetes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kubernetes/kubernetes/merges","archive_url":"https://api.github.com/repos/kubernetes/kubernetes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kubernetes/kubernetes/downloads","issues_url":"https://api.github.com/repos/kubernetes/kubernetes/issues{/number}","pulls_url":"https://api.github.com/repos/kubernetes/kubernetes/pulls{/number}","milestones_url":"https://api.github.com/repos/kubernetes/kubernetes/milestones{/number}","notifications_url":"https://api.github.com/repos/kubernetes/kubernetes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/labels{/name}","releases_url":"https://api.github.com/repos/kubernetes/kubernetes/releases{/id}","deployments_url":"https://api.github.com/repos/kubernetes/kubernetes/deployments","created_at":"2014-06-06T22:56:04Z","updated_at":"2017-09-05T11:06:01Z","pushed_at":"2017-09-05T11:31:02Z","git_url":"git://github.com/kubernetes/kubernetes.git","ssh_url":"git@github.com:kubernetes/kubernetes.git","clone_url":"https://github.com/kubernetes/kubernetes.git","svn_url":"https://github.com/kubernetes/kubernetes","homepage":"http://kubernetes.io","size":690841,"stargazers_count":26559,"watchers_count":26559,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9477,"mirror_url":null,"open_issues_count":5323,"forks":9477,"open_issues":5323,"watchers":26559,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/51782"},"html":{"href":"https://github.com/kubernetes/kubernetes/pull/51782"},"issue":{"href":"https://api.github.com/repos/kubernetes/kubernetes/issues/51782"},"comments":{"href":"https://api.github.com/repos/kubernetes/kubernetes/issues/51782/comments"},"review_comments":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/51782/comments"},"review_comment":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kubernetes/kubernetes/pulls/51782/commits"},"statuses":{"href":"https://api.github.com/repos/kubernetes/kubernetes/statuses/df15c9ee5a0b642c1af2d6a1ffe52ff648fd671b"}},"author_association":"NONE"}}
{"actor":{"display_login":"crassirostris"}}