{"action":"created","comment":{"url":"https://api.github.com/repos/pentaho/pentaho-platform/pulls/comments/128624789","pull_request_review_id":51323389,"id":128624789,"diff_hunk":"@@ -192,8 +192,30 @@ public void testRunnableRun() throws Exception {\n     // verify that invokeAction is called with the expected parameters\n     Mockito.verify( defaultActionInvoker, Mockito.times( 1 ) ).invokeAction( Mockito.eq( actionMock ), Mockito\n       .eq( actionUser ), Mockito.eq( actionMapMock ) );\n+\n   }\n-}\n+\n+\n+\n+  @Test\n+  public void testAuditInvoker() throws Exception {\n+\n+    // Mock the IPluginManager, so that when we call ActionHelper.createActionBean, IPluginManager is not null\n+    IPluginManager pluginManager = Mockito.mock( IPluginManager.class );\n+    PowerMockito.mockStatic( PentahoSystem.class );\n+    BDDMockito.given( PentahoSystem.get( IPluginManager.class ) ).willReturn( pluginManager );\n+    // mock the action invoker\n+    final IActionInvoker actionInvoker = Mockito.spy( MyDefaultActionInvoker.class );\n+\n+    final WorkerNodeActionInvokerAuditor wnActionInvokerAuditer = new WorkerNodeActionInvokerAuditor( actionInvoker );\n+    WorkerNodeActionInvokerAuditor wnaiu = Mockito.spy( wnActionInvokerAuditer );\n+    wnaiu.invokeAction( actionMock, actionUser, actionMapMock );\n+\n+    Mockito.verify( actionInvoker, Mockito.times( 1 ) ).invokeAction(  Mockito.eq( actionMock ), Mockito.eq( actionUser ),  Mockito.eq( actionMapMock ) );\n+\n+    Mockito.verify( wnaiu, Mockito.times( 2 ) ).makeAuditRecord( Mockito.anyLong() ,Mockito.anyString(), Mockito.anyMap() ,  Mockito.anyString() );\n+\n+  }}","path":"extensions/src/test/java/org/pentaho/platform/web/http/api/resources/ActionResourceTest.java","position":null,"original_position":28,"commit_id":"7c9c2f35281e0d1c6f8fb6cf32be2c03df2c41b1","original_commit_id":"ea0c93f7529fb67b2352efb0efbc226fc6d070bc","user":{"login":"chiltonj","id":20404582,"avatar_url":"https://avatars1.githubusercontent.com/u/20404582?v=4","gravatar_id":"","url":"https://api.github.com/users/chiltonj","html_url":"https://github.com/chiltonj","followers_url":"https://api.github.com/users/chiltonj/followers","following_url":"https://api.github.com/users/chiltonj/following{/other_user}","gists_url":"https://api.github.com/users/chiltonj/gists{/gist_id}","starred_url":"https://api.github.com/users/chiltonj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chiltonj/subscriptions","organizations_url":"https://api.github.com/users/chiltonj/orgs","repos_url":"https://api.github.com/users/chiltonj/repos","events_url":"https://api.github.com/users/chiltonj/events{/privacy}","received_events_url":"https://api.github.com/users/chiltonj/received_events","type":"User","site_admin":false},"body":"Done: fixed a bunch of checkstyle atrocities","created_at":"2017-07-20T20:38:21Z","updated_at":"2017-07-20T20:38:21Z","html_url":"https://github.com/pentaho/pentaho-platform/pull/3712#discussion_r128624789","pull_request_url":"https://api.github.com/repos/pentaho/pentaho-platform/pulls/3712","_links":{"self":{"href":"https://api.github.com/repos/pentaho/pentaho-platform/pulls/comments/128624789"},"html":{"href":"https://github.com/pentaho/pentaho-platform/pull/3712#discussion_r128624789"},"pull_request":{"href":"https://api.github.com/repos/pentaho/pentaho-platform/pulls/3712"}}},"pull_request":{"url":"https://api.github.com/repos/pentaho/pentaho-platform/pulls/3712","id":131585787,"html_url":"https://github.com/pentaho/pentaho-platform/pull/3712","diff_url":"https://github.com/pentaho/pentaho-platform/pull/3712.diff","patch_url":"https://github.com/pentaho/pentaho-platform/pull/3712.patch","issue_url":"https://api.github.com/repos/pentaho/pentaho-platform/issues/3712","number":3712,"state":"open","locked":false,"title":"[BACKLOG-17675] audit entry for remote execution","user":{"login":"chiltonj","id":20404582,"avatar_url":"https://avatars1.githubusercontent.com/u/20404582?v=4","gravatar_id":"","url":"https://api.github.com/users/chiltonj","html_url":"https://github.com/chiltonj","followers_url":"https://api.github.com/users/chiltonj/followers","following_url":"https://api.github.com/users/chiltonj/following{/other_user}","gists_url":"https://api.github.com/users/chiltonj/gists{/gist_id}","starred_url":"https://api.github.com/users/chiltonj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chiltonj/subscriptions","organizations_url":"https://api.github.com/users/chiltonj/orgs","repos_url":"https://api.github.com/users/chiltonj/repos","events_url":"https://api.github.com/users/chiltonj/events{/privacy}","received_events_url":"https://api.github.com/users/chiltonj/received_events","type":"User","site_admin":false},"body":"@pentaho/rebelalliance @pentaho/rogueone \r\n\r\nAdds audit entry for start / finish. Since the same id is used for the complete audit trail the duration per item is cumulative -- which is the accurate duration. ","created_at":"2017-07-20T15:36:16Z","updated_at":"2017-07-20T20:38:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a9662227b7e0e4a1e893a84a909ea9706d71062b","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/pentaho/pentaho-platform/pulls/3712/commits","review_comments_url":"https://api.github.com/repos/pentaho/pentaho-platform/pulls/3712/comments","review_comment_url":"https://api.github.com/repos/pentaho/pentaho-platform/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pentaho/pentaho-platform/issues/3712/comments","statuses_url":"https://api.github.com/repos/pentaho/pentaho-platform/statuses/7c9c2f35281e0d1c6f8fb6cf32be2c03df2c41b1","head":{"label":"chiltonj:BACKLOG-17675","ref":"BACKLOG-17675","sha":"7c9c2f35281e0d1c6f8fb6cf32be2c03df2c41b1","user":{"login":"chiltonj","id":20404582,"avatar_url":"https://avatars1.githubusercontent.com/u/20404582?v=4","gravatar_id":"","url":"https://api.github.com/users/chiltonj","html_url":"https://github.com/chiltonj","followers_url":"https://api.github.com/users/chiltonj/followers","following_url":"https://api.github.com/users/chiltonj/following{/other_user}","gists_url":"https://api.github.com/users/chiltonj/gists{/gist_id}","starred_url":"https://api.github.com/users/chiltonj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chiltonj/subscriptions","organizations_url":"https://api.github.com/users/chiltonj/orgs","repos_url":"https://api.github.com/users/chiltonj/repos","events_url":"https://api.github.com/users/chiltonj/events{/privacy}","received_events_url":"https://api.github.com/users/chiltonj/received_events","type":"User","site_admin":false},"repo":{"id":63275751,"name":"pentaho-platform","full_name":"chiltonj/pentaho-platform","owner":{"login":"chiltonj","id":20404582,"avatar_url":"https://avatars1.githubusercontent.com/u/20404582?v=4","gravatar_id":"","url":"https://api.github.com/users/chiltonj","html_url":"https://github.com/chiltonj","followers_url":"https://api.github.com/users/chiltonj/followers","following_url":"https://api.github.com/users/chiltonj/following{/other_user}","gists_url":"https://api.github.com/users/chiltonj/gists{/gist_id}","starred_url":"https://api.github.com/users/chiltonj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chiltonj/subscriptions","organizations_url":"https://api.github.com/users/chiltonj/orgs","repos_url":"https://api.github.com/users/chiltonj/repos","events_url":"https://api.github.com/users/chiltonj/events{/privacy}","received_events_url":"https://api.github.com/users/chiltonj/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chiltonj/pentaho-platform","description":"Pentaho BA Server Core","fork":true,"url":"https://api.github.com/repos/chiltonj/pentaho-platform","forks_url":"https://api.github.com/repos/chiltonj/pentaho-platform/forks","keys_url":"https://api.github.com/repos/chiltonj/pentaho-platform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chiltonj/pentaho-platform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chiltonj/pentaho-platform/teams","hooks_url":"https://api.github.com/repos/chiltonj/pentaho-platform/hooks","issue_events_url":"https://api.github.com/repos/chiltonj/pentaho-platform/issues/events{/number}","events_url":"https://api.github.com/repos/chiltonj/pentaho-platform/events","assignees_url":"https://api.github.com/repos/chiltonj/pentaho-platform/assignees{/user}","branches_url":"https://api.github.com/repos/chiltonj/pentaho-platform/branches{/branch}","tags_url":"https://api.github.com/repos/chiltonj/pentaho-platform/tags","blobs_url":"https://api.github.com/repos/chiltonj/pentaho-platform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chiltonj/pentaho-platform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chiltonj/pentaho-platform/git/refs{/sha}","trees_url":"https://api.github.com/repos/chiltonj/pentaho-platform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chiltonj/pentaho-platform/statuses/{sha}","languages_url":"https://api.github.com/repos/chiltonj/pentaho-platform/languages","stargazers_url":"https://api.github.com/repos/chiltonj/pentaho-platform/stargazers","contributors_url":"https://api.github.com/repos/chiltonj/pentaho-platform/contributors","subscribers_url":"https://api.github.com/repos/chiltonj/pentaho-platform/subscribers","subscription_url":"https://api.github.com/repos/chiltonj/pentaho-platform/subscription","commits_url":"https://api.github.com/repos/chiltonj/pentaho-platform/commits{/sha}","git_commits_url":"https://api.github.com/repos/chiltonj/pentaho-platform/git/commits{/sha}","comments_url":"https://api.github.com/repos/chiltonj/pentaho-platform/comments{/number}","issue_comment_url":"https://api.github.com/repos/chiltonj/pentaho-platform/issues/comments{/number}","contents_url":"https://api.github.com/repos/chiltonj/pentaho-platform/contents/{+path}","compare_url":"https://api.github.com/repos/chiltonj/pentaho-platform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chiltonj/pentaho-platform/merges","archive_url":"https://api.github.com/repos/chiltonj/pentaho-platform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chiltonj/pentaho-platform/downloads","issues_url":"https://api.github.com/repos/chiltonj/pentaho-platform/issues{/number}","pulls_url":"https://api.github.com/repos/chiltonj/pentaho-platform/pulls{/number}","milestones_url":"https://api.github.com/repos/chiltonj/pentaho-platform/milestones{/number}","notifications_url":"https://api.github.com/repos/chiltonj/pentaho-platform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chiltonj/pentaho-platform/labels{/name}","releases_url":"https://api.github.com/repos/chiltonj/pentaho-platform/releases{/id}","deployments_url":"https://api.github.com/repos/chiltonj/pentaho-platform/deployments","created_at":"2016-07-13T20:04:08Z","updated_at":"2016-07-13T20:04:25Z","pushed_at":"2017-07-20T20:37:37Z","git_url":"git://github.com/chiltonj/pentaho-platform.git","ssh_url":"git@github.com:chiltonj/pentaho-platform.git","clone_url":"https://github.com/chiltonj/pentaho-platform.git","svn_url":"https://github.com/chiltonj/pentaho-platform","homepage":"http://www.pentaho.com","size":160003,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"pentaho:master","ref":"master","sha":"c36aedcfd38a07f3bde88352528ad2a2adafe3d1","user":{"login":"pentaho","id":1022787,"avatar_url":"https://avatars3.githubusercontent.com/u/1022787?v=4","gravatar_id":"","url":"https://api.github.com/users/pentaho","html_url":"https://github.com/pentaho","followers_url":"https://api.github.com/users/pentaho/followers","following_url":"https://api.github.com/users/pentaho/following{/other_user}","gists_url":"https://api.github.com/users/pentaho/gists{/gist_id}","starred_url":"https://api.github.com/users/pentaho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pentaho/subscriptions","organizations_url":"https://api.github.com/users/pentaho/orgs","repos_url":"https://api.github.com/users/pentaho/repos","events_url":"https://api.github.com/users/pentaho/events{/privacy}","received_events_url":"https://api.github.com/users/pentaho/received_events","type":"Organization","site_admin":false},"repo":{"id":4597760,"name":"pentaho-platform","full_name":"pentaho/pentaho-platform","owner":{"login":"pentaho","id":1022787,"avatar_url":"https://avatars3.githubusercontent.com/u/1022787?v=4","gravatar_id":"","url":"https://api.github.com/users/pentaho","html_url":"https://github.com/pentaho","followers_url":"https://api.github.com/users/pentaho/followers","following_url":"https://api.github.com/users/pentaho/following{/other_user}","gists_url":"https://api.github.com/users/pentaho/gists{/gist_id}","starred_url":"https://api.github.com/users/pentaho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pentaho/subscriptions","organizations_url":"https://api.github.com/users/pentaho/orgs","repos_url":"https://api.github.com/users/pentaho/repos","events_url":"https://api.github.com/users/pentaho/events{/privacy}","received_events_url":"https://api.github.com/users/pentaho/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pentaho/pentaho-platform","description":"Pentaho BA Server Core","fork":false,"url":"https://api.github.com/repos/pentaho/pentaho-platform","forks_url":"https://api.github.com/repos/pentaho/pentaho-platform/forks","keys_url":"https://api.github.com/repos/pentaho/pentaho-platform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pentaho/pentaho-platform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pentaho/pentaho-platform/teams","hooks_url":"https://api.github.com/repos/pentaho/pentaho-platform/hooks","issue_events_url":"https://api.github.com/repos/pentaho/pentaho-platform/issues/events{/number}","events_url":"https://api.github.com/repos/pentaho/pentaho-platform/events","assignees_url":"https://api.github.com/repos/pentaho/pentaho-platform/assignees{/user}","branches_url":"https://api.github.com/repos/pentaho/pentaho-platform/branches{/branch}","tags_url":"https://api.github.com/repos/pentaho/pentaho-platform/tags","blobs_url":"https://api.github.com/repos/pentaho/pentaho-platform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pentaho/pentaho-platform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pentaho/pentaho-platform/git/refs{/sha}","trees_url":"https://api.github.com/repos/pentaho/pentaho-platform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pentaho/pentaho-platform/statuses/{sha}","languages_url":"https://api.github.com/repos/pentaho/pentaho-platform/languages","stargazers_url":"https://api.github.com/repos/pentaho/pentaho-platform/stargazers","contributors_url":"https://api.github.com/repos/pentaho/pentaho-platform/contributors","subscribers_url":"https://api.github.com/repos/pentaho/pentaho-platform/subscribers","subscription_url":"https://api.github.com/repos/pentaho/pentaho-platform/subscription","commits_url":"https://api.github.com/repos/pentaho/pentaho-platform/commits{/sha}","git_commits_url":"https://api.github.com/repos/pentaho/pentaho-platform/git/commits{/sha}","comments_url":"https://api.github.com/repos/pentaho/pentaho-platform/comments{/number}","issue_comment_url":"https://api.github.com/repos/pentaho/pentaho-platform/issues/comments{/number}","contents_url":"https://api.github.com/repos/pentaho/pentaho-platform/contents/{+path}","compare_url":"https://api.github.com/repos/pentaho/pentaho-platform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pentaho/pentaho-platform/merges","archive_url":"https://api.github.com/repos/pentaho/pentaho-platform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pentaho/pentaho-platform/downloads","issues_url":"https://api.github.com/repos/pentaho/pentaho-platform/issues{/number}","pulls_url":"https://api.github.com/repos/pentaho/pentaho-platform/pulls{/number}","milestones_url":"https://api.github.com/repos/pentaho/pentaho-platform/milestones{/number}","notifications_url":"https://api.github.com/repos/pentaho/pentaho-platform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pentaho/pentaho-platform/labels{/name}","releases_url":"https://api.github.com/repos/pentaho/pentaho-platform/releases{/id}","deployments_url":"https://api.github.com/repos/pentaho/pentaho-platform/deployments","created_at":"2012-06-08T13:48:12Z","updated_at":"2017-07-18T09:39:35Z","pushed_at":"2017-07-20T20:37:38Z","git_url":"git://github.com/pentaho/pentaho-platform.git","ssh_url":"git@github.com:pentaho/pentaho-platform.git","clone_url":"https://github.com/pentaho/pentaho-platform.git","svn_url":"https://github.com/pentaho/pentaho-platform","homepage":"http://www.pentaho.com","size":160623,"stargazers_count":270,"watchers_count":270,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":546,"mirror_url":null,"open_issues_count":23,"forks":546,"open_issues":23,"watchers":270,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pentaho/pentaho-platform/pulls/3712"},"html":{"href":"https://github.com/pentaho/pentaho-platform/pull/3712"},"issue":{"href":"https://api.github.com/repos/pentaho/pentaho-platform/issues/3712"},"comments":{"href":"https://api.github.com/repos/pentaho/pentaho-platform/issues/3712/comments"},"review_comments":{"href":"https://api.github.com/repos/pentaho/pentaho-platform/pulls/3712/comments"},"review_comment":{"href":"https://api.github.com/repos/pentaho/pentaho-platform/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pentaho/pentaho-platform/pulls/3712/commits"},"statuses":{"href":"https://api.github.com/repos/pentaho/pentaho-platform/statuses/7c9c2f35281e0d1c6f8fb6cf32be2c03df2c41b1"}}}}
{"actor":{"display_login":"chiltonj"}}