{"action":"created","comment":{"url":"https://api.github.com/repos/hortonworks/cloudbreak/pulls/comments/221925043","pull_request_review_id":160688350,"id":221925043,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMTkyNTA0Mw==","diff_hunk":"@@ -0,0 +1,52 @@\n+package com.sequenceiq.it;\n+\n+import java.io.File;\n+import java.util.List;\n+\n+import org.apache.velocity.VelocityContext;\n+import org.testng.ISuite;\n+import org.testng.xml.XmlSuite;\n+import org.uncommons.reportng.HTMLReporter;\n+import org.uncommons.reportng.ReportNGException;\n+\n+public class CustomHTMLReporter extends HTMLReporter {\n+\n+    private static final String INDEX_FILE = \"custom.index.html\";\n+\n+    private static final String SUITES_KEY = \"suites\";\n+\n+    private static final String ONLY_FAILURES_KEY = \"onlyReportFailures\";\n+\n+    private static final String ONLY_FAILURES_PROPERTY = \"org.uncommons.reportng.failures-only\";\n+\n+    private static final String SUITES_FILE = \"custom.suites.html\";\n+\n+    private static final String REPORT_DIRECTORY = \"html\";\n+\n+    @Override\n+    public void generateReport(List<XmlSuite> xmlSuites, List<ISuite> suites, String outputDirectoryName) {\n+        try {\n+            super.generateReport(xmlSuites, suites, outputDirectoryName);\n+            boolean onlyFailures = System.getProperty(ONLY_FAILURES_PROPERTY, \"false\").equals(\"true\");","path":"integration-test/src/main/java/com/sequenceiq/it/CustomHTMLReporter.java","position":30,"original_position":30,"commit_id":"f880b095ef9967dbb0e117b111178e441b2cec99","original_commit_id":"f880b095ef9967dbb0e117b111178e441b2cec99","user":{"login":"gregito","id":16577123,"node_id":"MDQ6VXNlcjE2NTc3MTIz","avatar_url":"https://avatars3.githubusercontent.com/u/16577123?v=4","gravatar_id":"","url":"https://api.github.com/users/gregito","html_url":"https://github.com/gregito","followers_url":"https://api.github.com/users/gregito/followers","following_url":"https://api.github.com/users/gregito/following{/other_user}","gists_url":"https://api.github.com/users/gregito/gists{/gist_id}","starred_url":"https://api.github.com/users/gregito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gregito/subscriptions","organizations_url":"https://api.github.com/users/gregito/orgs","repos_url":"https://api.github.com/users/gregito/repos","events_url":"https://api.github.com/users/gregito/events{/privacy}","received_events_url":"https://api.github.com/users/gregito/received_events","type":"User","site_admin":false},"body":"I know it comes from the original method but would prefer to change the comparison order (dodging NPEs) and maybe hardcoded strings are unnecessary.\r\n\r\nsuggestion:\r\n`Boolean.TRUE.toString().equals(System.getProperty(ONLY_FAILURES_PROPERTY, Boolean.FALSE.toString()))`","created_at":"2018-10-02T12:11:04Z","updated_at":"2018-10-02T12:15:59Z","html_url":"https://github.com/hortonworks/cloudbreak/pull/4034#discussion_r221925043","pull_request_url":"https://api.github.com/repos/hortonworks/cloudbreak/pulls/4034","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/hortonworks/cloudbreak/pulls/comments/221925043"},"html":{"href":"https://github.com/hortonworks/cloudbreak/pull/4034#discussion_r221925043"},"pull_request":{"href":"https://api.github.com/repos/hortonworks/cloudbreak/pulls/4034"}}},"pull_request":{"url":"https://api.github.com/repos/hortonworks/cloudbreak/pulls/4034","id":219663827,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE5NjYzODI3","html_url":"https://github.com/hortonworks/cloudbreak/pull/4034","diff_url":"https://github.com/hortonworks/cloudbreak/pull/4034.diff","patch_url":"https://github.com/hortonworks/cloudbreak/pull/4034.patch","issue_url":"https://api.github.com/repos/hortonworks/cloudbreak/issues/4034","number":4034,"state":"open","locked":false,"title":"BUG-111490 Include Logsearch url into the test results","user":{"login":"horadla23","id":26329499,"node_id":"MDQ6VXNlcjI2MzI5NDk5","avatar_url":"https://avatars0.githubusercontent.com/u/26329499?v=4","gravatar_id":"","url":"https://api.github.com/users/horadla23","html_url":"https://github.com/horadla23","followers_url":"https://api.github.com/users/horadla23/followers","following_url":"https://api.github.com/users/horadla23/following{/other_user}","gists_url":"https://api.github.com/users/horadla23/gists{/gist_id}","starred_url":"https://api.github.com/users/horadla23/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/horadla23/subscriptions","organizations_url":"https://api.github.com/users/horadla23/orgs","repos_url":"https://api.github.com/users/horadla23/repos","events_url":"https://api.github.com/users/horadla23/events{/privacy}","received_events_url":"https://api.github.com/users/horadla23/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-10-02T11:01:33Z","updated_at":"2018-10-02T12:15:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8532ed1af78f517639b7bdf16e6dda35eb9f7b83","assignee":null,"assignees":[],"requested_reviewers":[{"login":"schfeca75","id":4092731,"node_id":"MDQ6VXNlcjQwOTI3MzE=","avatar_url":"https://avatars3.githubusercontent.com/u/4092731?v=4","gravatar_id":"","url":"https://api.github.com/users/schfeca75","html_url":"https://github.com/schfeca75","followers_url":"https://api.github.com/users/schfeca75/followers","following_url":"https://api.github.com/users/schfeca75/following{/other_user}","gists_url":"https://api.github.com/users/schfeca75/gists{/gist_id}","starred_url":"https://api.github.com/users/schfeca75/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schfeca75/subscriptions","organizations_url":"https://api.github.com/users/schfeca75/orgs","repos_url":"https://api.github.com/users/schfeca75/repos","events_url":"https://api.github.com/users/schfeca75/events{/privacy}","received_events_url":"https://api.github.com/users/schfeca75/received_events","type":"User","site_admin":false},{"login":"sodre90","id":6430206,"node_id":"MDQ6VXNlcjY0MzAyMDY=","avatar_url":"https://avatars2.githubusercontent.com/u/6430206?v=4","gravatar_id":"","url":"https://api.github.com/users/sodre90","html_url":"https://github.com/sodre90","followers_url":"https://api.github.com/users/sodre90/followers","following_url":"https://api.github.com/users/sodre90/following{/other_user}","gists_url":"https://api.github.com/users/sodre90/gists{/gist_id}","starred_url":"https://api.github.com/users/sodre90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sodre90/subscriptions","organizations_url":"https://api.github.com/users/sodre90/orgs","repos_url":"https://api.github.com/users/sodre90/repos","events_url":"https://api.github.com/users/sodre90/events{/privacy}","received_events_url":"https://api.github.com/users/sodre90/received_events","type":"User","site_admin":false},{"login":"afarsang","id":20153793,"node_id":"MDQ6VXNlcjIwMTUzNzkz","avatar_url":"https://avatars3.githubusercontent.com/u/20153793?v=4","gravatar_id":"","url":"https://api.github.com/users/afarsang","html_url":"https://github.com/afarsang","followers_url":"https://api.github.com/users/afarsang/followers","following_url":"https://api.github.com/users/afarsang/following{/other_user}","gists_url":"https://api.github.com/users/afarsang/gists{/gist_id}","starred_url":"https://api.github.com/users/afarsang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afarsang/subscriptions","organizations_url":"https://api.github.com/users/afarsang/orgs","repos_url":"https://api.github.com/users/afarsang/repos","events_url":"https://api.github.com/users/afarsang/events{/privacy}","received_events_url":"https://api.github.com/users/afarsang/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/hortonworks/cloudbreak/pulls/4034/commits","review_comments_url":"https://api.github.com/repos/hortonworks/cloudbreak/pulls/4034/comments","review_comment_url":"https://api.github.com/repos/hortonworks/cloudbreak/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hortonworks/cloudbreak/issues/4034/comments","statuses_url":"https://api.github.com/repos/hortonworks/cloudbreak/statuses/f880b095ef9967dbb0e117b111178e441b2cec99","head":{"label":"hortonworks:logsearchurl","ref":"logsearchurl","sha":"f880b095ef9967dbb0e117b111178e441b2cec99","user":{"login":"hortonworks","id":898785,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg5ODc4NQ==","avatar_url":"https://avatars2.githubusercontent.com/u/898785?v=4","gravatar_id":"","url":"https://api.github.com/users/hortonworks","html_url":"https://github.com/hortonworks","followers_url":"https://api.github.com/users/hortonworks/followers","following_url":"https://api.github.com/users/hortonworks/following{/other_user}","gists_url":"https://api.github.com/users/hortonworks/gists{/gist_id}","starred_url":"https://api.github.com/users/hortonworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hortonworks/subscriptions","organizations_url":"https://api.github.com/users/hortonworks/orgs","repos_url":"https://api.github.com/users/hortonworks/repos","events_url":"https://api.github.com/users/hortonworks/events{/privacy}","received_events_url":"https://api.github.com/users/hortonworks/received_events","type":"Organization","site_admin":false},"repo":{"id":19638422,"node_id":"MDEwOlJlcG9zaXRvcnkxOTYzODQyMg==","name":"cloudbreak","full_name":"hortonworks/cloudbreak","private":false,"owner":{"login":"hortonworks","id":898785,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg5ODc4NQ==","avatar_url":"https://avatars2.githubusercontent.com/u/898785?v=4","gravatar_id":"","url":"https://api.github.com/users/hortonworks","html_url":"https://github.com/hortonworks","followers_url":"https://api.github.com/users/hortonworks/followers","following_url":"https://api.github.com/users/hortonworks/following{/other_user}","gists_url":"https://api.github.com/users/hortonworks/gists{/gist_id}","starred_url":"https://api.github.com/users/hortonworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hortonworks/subscriptions","organizations_url":"https://api.github.com/users/hortonworks/orgs","repos_url":"https://api.github.com/users/hortonworks/repos","events_url":"https://api.github.com/users/hortonworks/events{/privacy}","received_events_url":"https://api.github.com/users/hortonworks/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/hortonworks/cloudbreak","description":"A tool for provisioning and managing Apache Hadoop clusters in the cloud. Cloudbreak, as part of the Hortonworks Data Platform, makes it easy to provision, configure and elastically grow HDP clusters on cloud infrastructure. Cloudbreak can be used to provision Hadoop across cloud infrastructure providers including AWS, Azure, GCP and OpenStack.","fork":false,"url":"https://api.github.com/repos/hortonworks/cloudbreak","forks_url":"https://api.github.com/repos/hortonworks/cloudbreak/forks","keys_url":"https://api.github.com/repos/hortonworks/cloudbreak/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hortonworks/cloudbreak/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hortonworks/cloudbreak/teams","hooks_url":"https://api.github.com/repos/hortonworks/cloudbreak/hooks","issue_events_url":"https://api.github.com/repos/hortonworks/cloudbreak/issues/events{/number}","events_url":"https://api.github.com/repos/hortonworks/cloudbreak/events","assignees_url":"https://api.github.com/repos/hortonworks/cloudbreak/assignees{/user}","branches_url":"https://api.github.com/repos/hortonworks/cloudbreak/branches{/branch}","tags_url":"https://api.github.com/repos/hortonworks/cloudbreak/tags","blobs_url":"https://api.github.com/repos/hortonworks/cloudbreak/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hortonworks/cloudbreak/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hortonworks/cloudbreak/git/refs{/sha}","trees_url":"https://api.github.com/repos/hortonworks/cloudbreak/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hortonworks/cloudbreak/statuses/{sha}","languages_url":"https://api.github.com/repos/hortonworks/cloudbreak/languages","stargazers_url":"https://api.github.com/repos/hortonworks/cloudbreak/stargazers","contributors_url":"https://api.github.com/repos/hortonworks/cloudbreak/contributors","subscribers_url":"https://api.github.com/repos/hortonworks/cloudbreak/subscribers","subscription_url":"https://api.github.com/repos/hortonworks/cloudbreak/subscription","commits_url":"https://api.github.com/repos/hortonworks/cloudbreak/commits{/sha}","git_commits_url":"https://api.github.com/repos/hortonworks/cloudbreak/git/commits{/sha}","comments_url":"https://api.github.com/repos/hortonworks/cloudbreak/comments{/number}","issue_comment_url":"https://api.github.com/repos/hortonworks/cloudbreak/issues/comments{/number}","contents_url":"https://api.github.com/repos/hortonworks/cloudbreak/contents/{+path}","compare_url":"https://api.github.com/repos/hortonworks/cloudbreak/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hortonworks/cloudbreak/merges","archive_url":"https://api.github.com/repos/hortonworks/cloudbreak/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hortonworks/cloudbreak/downloads","issues_url":"https://api.github.com/repos/hortonworks/cloudbreak/issues{/number}","pulls_url":"https://api.github.com/repos/hortonworks/cloudbreak/pulls{/number}","milestones_url":"https://api.github.com/repos/hortonworks/cloudbreak/milestones{/number}","notifications_url":"https://api.github.com/repos/hortonworks/cloudbreak/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hortonworks/cloudbreak/labels{/name}","releases_url":"https://api.github.com/repos/hortonworks/cloudbreak/releases{/id}","deployments_url":"https://api.github.com/repos/hortonworks/cloudbreak/deployments","created_at":"2014-05-10T10:03:07Z","updated_at":"2018-10-02T08:53:21Z","pushed_at":"2018-10-02T12:10:21Z","git_url":"git://github.com/hortonworks/cloudbreak.git","ssh_url":"git@github.com:hortonworks/cloudbreak.git","clone_url":"https://github.com/hortonworks/cloudbreak.git","svn_url":"https://github.com/hortonworks/cloudbreak","homepage":"http://hortonworks.github.io/cloudbreak-docs","size":45806,"stargazers_count":218,"watchers_count":218,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":96,"mirror_url":null,"archived":false,"open_issues_count":11,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":96,"open_issues":11,"watchers":218,"default_branch":"master"}},"base":{"label":"hortonworks:rc-2.8","ref":"rc-2.8","sha":"75d34ea6911c8d26dfcffc924000f7ca91463115","user":{"login":"hortonworks","id":898785,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg5ODc4NQ==","avatar_url":"https://avatars2.githubusercontent.com/u/898785?v=4","gravatar_id":"","url":"https://api.github.com/users/hortonworks","html_url":"https://github.com/hortonworks","followers_url":"https://api.github.com/users/hortonworks/followers","following_url":"https://api.github.com/users/hortonworks/following{/other_user}","gists_url":"https://api.github.com/users/hortonworks/gists{/gist_id}","starred_url":"https://api.github.com/users/hortonworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hortonworks/subscriptions","organizations_url":"https://api.github.com/users/hortonworks/orgs","repos_url":"https://api.github.com/users/hortonworks/repos","events_url":"https://api.github.com/users/hortonworks/events{/privacy}","received_events_url":"https://api.github.com/users/hortonworks/received_events","type":"Organization","site_admin":false},"repo":{"id":19638422,"node_id":"MDEwOlJlcG9zaXRvcnkxOTYzODQyMg==","name":"cloudbreak","full_name":"hortonworks/cloudbreak","private":false,"owner":{"login":"hortonworks","id":898785,"node_id":"MDEyOk9yZ2FuaXphdGlvbjg5ODc4NQ==","avatar_url":"https://avatars2.githubusercontent.com/u/898785?v=4","gravatar_id":"","url":"https://api.github.com/users/hortonworks","html_url":"https://github.com/hortonworks","followers_url":"https://api.github.com/users/hortonworks/followers","following_url":"https://api.github.com/users/hortonworks/following{/other_user}","gists_url":"https://api.github.com/users/hortonworks/gists{/gist_id}","starred_url":"https://api.github.com/users/hortonworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hortonworks/subscriptions","organizations_url":"https://api.github.com/users/hortonworks/orgs","repos_url":"https://api.github.com/users/hortonworks/repos","events_url":"https://api.github.com/users/hortonworks/events{/privacy}","received_events_url":"https://api.github.com/users/hortonworks/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/hortonworks/cloudbreak","description":"A tool for provisioning and managing Apache Hadoop clusters in the cloud. Cloudbreak, as part of the Hortonworks Data Platform, makes it easy to provision, configure and elastically grow HDP clusters on cloud infrastructure. Cloudbreak can be used to provision Hadoop across cloud infrastructure providers including AWS, Azure, GCP and OpenStack.","fork":false,"url":"https://api.github.com/repos/hortonworks/cloudbreak","forks_url":"https://api.github.com/repos/hortonworks/cloudbreak/forks","keys_url":"https://api.github.com/repos/hortonworks/cloudbreak/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hortonworks/cloudbreak/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hortonworks/cloudbreak/teams","hooks_url":"https://api.github.com/repos/hortonworks/cloudbreak/hooks","issue_events_url":"https://api.github.com/repos/hortonworks/cloudbreak/issues/events{/number}","events_url":"https://api.github.com/repos/hortonworks/cloudbreak/events","assignees_url":"https://api.github.com/repos/hortonworks/cloudbreak/assignees{/user}","branches_url":"https://api.github.com/repos/hortonworks/cloudbreak/branches{/branch}","tags_url":"https://api.github.com/repos/hortonworks/cloudbreak/tags","blobs_url":"https://api.github.com/repos/hortonworks/cloudbreak/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hortonworks/cloudbreak/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hortonworks/cloudbreak/git/refs{/sha}","trees_url":"https://api.github.com/repos/hortonworks/cloudbreak/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hortonworks/cloudbreak/statuses/{sha}","languages_url":"https://api.github.com/repos/hortonworks/cloudbreak/languages","stargazers_url":"https://api.github.com/repos/hortonworks/cloudbreak/stargazers","contributors_url":"https://api.github.com/repos/hortonworks/cloudbreak/contributors","subscribers_url":"https://api.github.com/repos/hortonworks/cloudbreak/subscribers","subscription_url":"https://api.github.com/repos/hortonworks/cloudbreak/subscription","commits_url":"https://api.github.com/repos/hortonworks/cloudbreak/commits{/sha}","git_commits_url":"https://api.github.com/repos/hortonworks/cloudbreak/git/commits{/sha}","comments_url":"https://api.github.com/repos/hortonworks/cloudbreak/comments{/number}","issue_comment_url":"https://api.github.com/repos/hortonworks/cloudbreak/issues/comments{/number}","contents_url":"https://api.github.com/repos/hortonworks/cloudbreak/contents/{+path}","compare_url":"https://api.github.com/repos/hortonworks/cloudbreak/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hortonworks/cloudbreak/merges","archive_url":"https://api.github.com/repos/hortonworks/cloudbreak/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hortonworks/cloudbreak/downloads","issues_url":"https://api.github.com/repos/hortonworks/cloudbreak/issues{/number}","pulls_url":"https://api.github.com/repos/hortonworks/cloudbreak/pulls{/number}","milestones_url":"https://api.github.com/repos/hortonworks/cloudbreak/milestones{/number}","notifications_url":"https://api.github.com/repos/hortonworks/cloudbreak/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hortonworks/cloudbreak/labels{/name}","releases_url":"https://api.github.com/repos/hortonworks/cloudbreak/releases{/id}","deployments_url":"https://api.github.com/repos/hortonworks/cloudbreak/deployments","created_at":"2014-05-10T10:03:07Z","updated_at":"2018-10-02T08:53:21Z","pushed_at":"2018-10-02T12:10:21Z","git_url":"git://github.com/hortonworks/cloudbreak.git","ssh_url":"git@github.com:hortonworks/cloudbreak.git","clone_url":"https://github.com/hortonworks/cloudbreak.git","svn_url":"https://github.com/hortonworks/cloudbreak","homepage":"http://hortonworks.github.io/cloudbreak-docs","size":45806,"stargazers_count":218,"watchers_count":218,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":96,"mirror_url":null,"archived":false,"open_issues_count":11,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":96,"open_issues":11,"watchers":218,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hortonworks/cloudbreak/pulls/4034"},"html":{"href":"https://github.com/hortonworks/cloudbreak/pull/4034"},"issue":{"href":"https://api.github.com/repos/hortonworks/cloudbreak/issues/4034"},"comments":{"href":"https://api.github.com/repos/hortonworks/cloudbreak/issues/4034/comments"},"review_comments":{"href":"https://api.github.com/repos/hortonworks/cloudbreak/pulls/4034/comments"},"review_comment":{"href":"https://api.github.com/repos/hortonworks/cloudbreak/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hortonworks/cloudbreak/pulls/4034/commits"},"statuses":{"href":"https://api.github.com/repos/hortonworks/cloudbreak/statuses/f880b095ef9967dbb0e117b111178e441b2cec99"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"gregito"}}