{"action":"created","comment":{"url":"https://api.github.com/repos/codacy/codacy-plugins-test/pulls/comments/218036299","pull_request_review_id":155882490,"id":218036299,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxODAzNjI5OQ==","diff_hunk":"@@ -15,50 +13,54 @@ object DockerTest {\n   private lazy val config = Map(\n     \"all\" -> possibleTests,\n     \"allWithUdas\" -> possibleTestsWithUda\n-  ) ++ possibleTestsWithUda.map { case test =>\n+  ) ++ possibleTestsWithUda.map { test =>\n     test.opt -> Seq(test)\n   }\n   private lazy val possibleTests = Seq(JsonTests, PluginsTests, PatternTests)\n   private lazy val possibleTestsWithUda = SourceTests +: possibleTests\n   private lazy val possibleTestNames = config.keySet\n \n-  def main(args: Array[String]) {\n+  def main(args: Array[String]): Unit = {\n     val typeOfTests = args.headOption\n-    val dockerImageName = args.drop(1).headOption\n+    val dockerImageNameAndVersionOpt = args.drop(1).headOption\n     val optArgs = args.drop(2)\n \n-    typeOfTests.collect { case typeOfTest if possibleTestNames.contains(typeOfTest) =>\n-      dockerImageName.map { dockerName =>\n-        val plugin = new DockerPlugin(DockerImageName(dockerName))\n-        val testSources = DockerHelpers.testFoldersInDocker(plugin.dockerImageName)\n+    typeOfTests.fold(Printer.red(s\"[Missing] test type -> [${possibleTestNames.mkString(\", \")}]\")) {\n+      case typeOfTest if possibleTestNames.contains(typeOfTest) =>\n+        dockerImageNameAndVersionOpt.fold(Printer.red(\"[Missing] docker ref -> dockerName:dockerVersion\")) {\n+          dockerImageNameAndVersion =>\n \n-        val result = possibleTestsWithUda\n-          .map(test => run(plugin, testSources, test, typeOfTest, dockerName, optArgs))\n-          .forall(identity)\n+            val testSources = DockerHelpers.testFoldersInDocker(dockerImageNameAndVersion)\n \n-        testSources.foreach(dir => FileUtils.deleteQuietly(dir.toFile))\n+            val result = possibleTestsWithUda","path":"src/main/scala/codacy/plugins/DockerTest.scala","position":null,"original_position":46,"commit_id":"45ee473061c96d4e0b17d6362d54dd3618075541","original_commit_id":"9c5f2669ca4c27f61904dcce5b08e5e4e3d46c7c","user":{"login":"bmbferreira","id":626180,"node_id":"MDQ6VXNlcjYyNjE4MA==","avatar_url":"https://avatars0.githubusercontent.com/u/626180?v=4","gravatar_id":"","url":"https://api.github.com/users/bmbferreira","html_url":"https://github.com/bmbferreira","followers_url":"https://api.github.com/users/bmbferreira/followers","following_url":"https://api.github.com/users/bmbferreira/following{/other_user}","gists_url":"https://api.github.com/users/bmbferreira/gists{/gist_id}","starred_url":"https://api.github.com/users/bmbferreira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmbferreira/subscriptions","organizations_url":"https://api.github.com/users/bmbferreira/orgs","repos_url":"https://api.github.com/users/bmbferreira/repos","events_url":"https://api.github.com/users/bmbferreira/events{/privacy}","received_events_url":"https://api.github.com/users/bmbferreira/received_events","type":"User","site_admin":false},"body":"done, called it allTestsPassed 👍 ","created_at":"2018-09-17T11:37:35Z","updated_at":"2018-09-17T11:37:36Z","html_url":"https://github.com/codacy/codacy-plugins-test/pull/35#discussion_r218036299","pull_request_url":"https://api.github.com/repos/codacy/codacy-plugins-test/pulls/35","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/codacy/codacy-plugins-test/pulls/comments/218036299"},"html":{"href":"https://github.com/codacy/codacy-plugins-test/pull/35#discussion_r218036299"},"pull_request":{"href":"https://api.github.com/repos/codacy/codacy-plugins-test/pulls/35"}},"in_reply_to_id":218009609},"pull_request":{"url":"https://api.github.com/repos/codacy/codacy-plugins-test/pulls/35","id":215363312,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE1MzYzMzEy","html_url":"https://github.com/codacy/codacy-plugins-test/pull/35","diff_url":"https://github.com/codacy/codacy-plugins-test/pull/35.diff","patch_url":"https://github.com/codacy/codacy-plugins-test/pull/35.patch","issue_url":"https://api.github.com/repos/codacy/codacy-plugins-test/issues/35","number":35,"state":"open","locked":false,"title":"Update with cli core library FT-5871","user":{"login":"bmbferreira","id":626180,"node_id":"MDQ6VXNlcjYyNjE4MA==","avatar_url":"https://avatars0.githubusercontent.com/u/626180?v=4","gravatar_id":"","url":"https://api.github.com/users/bmbferreira","html_url":"https://github.com/bmbferreira","followers_url":"https://api.github.com/users/bmbferreira/followers","following_url":"https://api.github.com/users/bmbferreira/following{/other_user}","gists_url":"https://api.github.com/users/bmbferreira/gists{/gist_id}","starred_url":"https://api.github.com/users/bmbferreira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmbferreira/subscriptions","organizations_url":"https://api.github.com/users/bmbferreira/orgs","repos_url":"https://api.github.com/users/bmbferreira/repos","events_url":"https://api.github.com/users/bmbferreira/events{/privacy}","received_events_url":"https://api.github.com/users/bmbferreira/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-09-13T17:51:14Z","updated_at":"2018-09-17T11:37:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b523cd6fb59b7ddacea05e92edd56e5d730c5731","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/codacy/codacy-plugins-test/pulls/35/commits","review_comments_url":"https://api.github.com/repos/codacy/codacy-plugins-test/pulls/35/comments","review_comment_url":"https://api.github.com/repos/codacy/codacy-plugins-test/pulls/comments{/number}","comments_url":"https://api.github.com/repos/codacy/codacy-plugins-test/issues/35/comments","statuses_url":"https://api.github.com/repos/codacy/codacy-plugins-test/statuses/45ee473061c96d4e0b17d6362d54dd3618075541","head":{"label":"codacy:update_with_CLI_core_library_FT-5871","ref":"update_with_CLI_core_library_FT-5871","sha":"45ee473061c96d4e0b17d6362d54dd3618075541","user":{"login":"codacy","id":1834093,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4MzQwOTM=","avatar_url":"https://avatars0.githubusercontent.com/u/1834093?v=4","gravatar_id":"","url":"https://api.github.com/users/codacy","html_url":"https://github.com/codacy","followers_url":"https://api.github.com/users/codacy/followers","following_url":"https://api.github.com/users/codacy/following{/other_user}","gists_url":"https://api.github.com/users/codacy/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy/subscriptions","organizations_url":"https://api.github.com/users/codacy/orgs","repos_url":"https://api.github.com/users/codacy/repos","events_url":"https://api.github.com/users/codacy/events{/privacy}","received_events_url":"https://api.github.com/users/codacy/received_events","type":"Organization","site_admin":false},"repo":{"id":39913866,"node_id":"MDEwOlJlcG9zaXRvcnkzOTkxMzg2Ng==","name":"codacy-plugins-test","full_name":"codacy/codacy-plugins-test","private":false,"owner":{"login":"codacy","id":1834093,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4MzQwOTM=","avatar_url":"https://avatars0.githubusercontent.com/u/1834093?v=4","gravatar_id":"","url":"https://api.github.com/users/codacy","html_url":"https://github.com/codacy","followers_url":"https://api.github.com/users/codacy/followers","following_url":"https://api.github.com/users/codacy/following{/other_user}","gists_url":"https://api.github.com/users/codacy/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy/subscriptions","organizations_url":"https://api.github.com/users/codacy/orgs","repos_url":"https://api.github.com/users/codacy/repos","events_url":"https://api.github.com/users/codacy/events{/privacy}","received_events_url":"https://api.github.com/users/codacy/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/codacy/codacy-plugins-test","description":"Testing interface for external docker tools","fork":false,"url":"https://api.github.com/repos/codacy/codacy-plugins-test","forks_url":"https://api.github.com/repos/codacy/codacy-plugins-test/forks","keys_url":"https://api.github.com/repos/codacy/codacy-plugins-test/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codacy/codacy-plugins-test/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codacy/codacy-plugins-test/teams","hooks_url":"https://api.github.com/repos/codacy/codacy-plugins-test/hooks","issue_events_url":"https://api.github.com/repos/codacy/codacy-plugins-test/issues/events{/number}","events_url":"https://api.github.com/repos/codacy/codacy-plugins-test/events","assignees_url":"https://api.github.com/repos/codacy/codacy-plugins-test/assignees{/user}","branches_url":"https://api.github.com/repos/codacy/codacy-plugins-test/branches{/branch}","tags_url":"https://api.github.com/repos/codacy/codacy-plugins-test/tags","blobs_url":"https://api.github.com/repos/codacy/codacy-plugins-test/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codacy/codacy-plugins-test/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codacy/codacy-plugins-test/git/refs{/sha}","trees_url":"https://api.github.com/repos/codacy/codacy-plugins-test/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codacy/codacy-plugins-test/statuses/{sha}","languages_url":"https://api.github.com/repos/codacy/codacy-plugins-test/languages","stargazers_url":"https://api.github.com/repos/codacy/codacy-plugins-test/stargazers","contributors_url":"https://api.github.com/repos/codacy/codacy-plugins-test/contributors","subscribers_url":"https://api.github.com/repos/codacy/codacy-plugins-test/subscribers","subscription_url":"https://api.github.com/repos/codacy/codacy-plugins-test/subscription","commits_url":"https://api.github.com/repos/codacy/codacy-plugins-test/commits{/sha}","git_commits_url":"https://api.github.com/repos/codacy/codacy-plugins-test/git/commits{/sha}","comments_url":"https://api.github.com/repos/codacy/codacy-plugins-test/comments{/number}","issue_comment_url":"https://api.github.com/repos/codacy/codacy-plugins-test/issues/comments{/number}","contents_url":"https://api.github.com/repos/codacy/codacy-plugins-test/contents/{+path}","compare_url":"https://api.github.com/repos/codacy/codacy-plugins-test/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codacy/codacy-plugins-test/merges","archive_url":"https://api.github.com/repos/codacy/codacy-plugins-test/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codacy/codacy-plugins-test/downloads","issues_url":"https://api.github.com/repos/codacy/codacy-plugins-test/issues{/number}","pulls_url":"https://api.github.com/repos/codacy/codacy-plugins-test/pulls{/number}","milestones_url":"https://api.github.com/repos/codacy/codacy-plugins-test/milestones{/number}","notifications_url":"https://api.github.com/repos/codacy/codacy-plugins-test/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codacy/codacy-plugins-test/labels{/name}","releases_url":"https://api.github.com/repos/codacy/codacy-plugins-test/releases{/id}","deployments_url":"https://api.github.com/repos/codacy/codacy-plugins-test/deployments","created_at":"2015-07-29T20:09:49Z","updated_at":"2018-09-17T10:03:14Z","pushed_at":"2018-09-17T11:33:11Z","git_url":"git://github.com/codacy/codacy-plugins-test.git","ssh_url":"git@github.com:codacy/codacy-plugins-test.git","clone_url":"https://github.com/codacy/codacy-plugins-test.git","svn_url":"https://github.com/codacy/codacy-plugins-test","homepage":"","size":5574,"stargazers_count":3,"watchers_count":3,"language":"Scala","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":1,"watchers":3,"default_branch":"master"}},"base":{"label":"codacy:master","ref":"master","sha":"b33a547dbc1d51f721416668842d13d1bdf9a3ca","user":{"login":"codacy","id":1834093,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4MzQwOTM=","avatar_url":"https://avatars0.githubusercontent.com/u/1834093?v=4","gravatar_id":"","url":"https://api.github.com/users/codacy","html_url":"https://github.com/codacy","followers_url":"https://api.github.com/users/codacy/followers","following_url":"https://api.github.com/users/codacy/following{/other_user}","gists_url":"https://api.github.com/users/codacy/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy/subscriptions","organizations_url":"https://api.github.com/users/codacy/orgs","repos_url":"https://api.github.com/users/codacy/repos","events_url":"https://api.github.com/users/codacy/events{/privacy}","received_events_url":"https://api.github.com/users/codacy/received_events","type":"Organization","site_admin":false},"repo":{"id":39913866,"node_id":"MDEwOlJlcG9zaXRvcnkzOTkxMzg2Ng==","name":"codacy-plugins-test","full_name":"codacy/codacy-plugins-test","private":false,"owner":{"login":"codacy","id":1834093,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4MzQwOTM=","avatar_url":"https://avatars0.githubusercontent.com/u/1834093?v=4","gravatar_id":"","url":"https://api.github.com/users/codacy","html_url":"https://github.com/codacy","followers_url":"https://api.github.com/users/codacy/followers","following_url":"https://api.github.com/users/codacy/following{/other_user}","gists_url":"https://api.github.com/users/codacy/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy/subscriptions","organizations_url":"https://api.github.com/users/codacy/orgs","repos_url":"https://api.github.com/users/codacy/repos","events_url":"https://api.github.com/users/codacy/events{/privacy}","received_events_url":"https://api.github.com/users/codacy/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/codacy/codacy-plugins-test","description":"Testing interface for external docker tools","fork":false,"url":"https://api.github.com/repos/codacy/codacy-plugins-test","forks_url":"https://api.github.com/repos/codacy/codacy-plugins-test/forks","keys_url":"https://api.github.com/repos/codacy/codacy-plugins-test/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codacy/codacy-plugins-test/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codacy/codacy-plugins-test/teams","hooks_url":"https://api.github.com/repos/codacy/codacy-plugins-test/hooks","issue_events_url":"https://api.github.com/repos/codacy/codacy-plugins-test/issues/events{/number}","events_url":"https://api.github.com/repos/codacy/codacy-plugins-test/events","assignees_url":"https://api.github.com/repos/codacy/codacy-plugins-test/assignees{/user}","branches_url":"https://api.github.com/repos/codacy/codacy-plugins-test/branches{/branch}","tags_url":"https://api.github.com/repos/codacy/codacy-plugins-test/tags","blobs_url":"https://api.github.com/repos/codacy/codacy-plugins-test/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codacy/codacy-plugins-test/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codacy/codacy-plugins-test/git/refs{/sha}","trees_url":"https://api.github.com/repos/codacy/codacy-plugins-test/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codacy/codacy-plugins-test/statuses/{sha}","languages_url":"https://api.github.com/repos/codacy/codacy-plugins-test/languages","stargazers_url":"https://api.github.com/repos/codacy/codacy-plugins-test/stargazers","contributors_url":"https://api.github.com/repos/codacy/codacy-plugins-test/contributors","subscribers_url":"https://api.github.com/repos/codacy/codacy-plugins-test/subscribers","subscription_url":"https://api.github.com/repos/codacy/codacy-plugins-test/subscription","commits_url":"https://api.github.com/repos/codacy/codacy-plugins-test/commits{/sha}","git_commits_url":"https://api.github.com/repos/codacy/codacy-plugins-test/git/commits{/sha}","comments_url":"https://api.github.com/repos/codacy/codacy-plugins-test/comments{/number}","issue_comment_url":"https://api.github.com/repos/codacy/codacy-plugins-test/issues/comments{/number}","contents_url":"https://api.github.com/repos/codacy/codacy-plugins-test/contents/{+path}","compare_url":"https://api.github.com/repos/codacy/codacy-plugins-test/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codacy/codacy-plugins-test/merges","archive_url":"https://api.github.com/repos/codacy/codacy-plugins-test/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codacy/codacy-plugins-test/downloads","issues_url":"https://api.github.com/repos/codacy/codacy-plugins-test/issues{/number}","pulls_url":"https://api.github.com/repos/codacy/codacy-plugins-test/pulls{/number}","milestones_url":"https://api.github.com/repos/codacy/codacy-plugins-test/milestones{/number}","notifications_url":"https://api.github.com/repos/codacy/codacy-plugins-test/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codacy/codacy-plugins-test/labels{/name}","releases_url":"https://api.github.com/repos/codacy/codacy-plugins-test/releases{/id}","deployments_url":"https://api.github.com/repos/codacy/codacy-plugins-test/deployments","created_at":"2015-07-29T20:09:49Z","updated_at":"2018-09-17T10:03:14Z","pushed_at":"2018-09-17T11:33:11Z","git_url":"git://github.com/codacy/codacy-plugins-test.git","ssh_url":"git@github.com:codacy/codacy-plugins-test.git","clone_url":"https://github.com/codacy/codacy-plugins-test.git","svn_url":"https://github.com/codacy/codacy-plugins-test","homepage":"","size":5574,"stargazers_count":3,"watchers_count":3,"language":"Scala","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":1,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/codacy/codacy-plugins-test/pulls/35"},"html":{"href":"https://github.com/codacy/codacy-plugins-test/pull/35"},"issue":{"href":"https://api.github.com/repos/codacy/codacy-plugins-test/issues/35"},"comments":{"href":"https://api.github.com/repos/codacy/codacy-plugins-test/issues/35/comments"},"review_comments":{"href":"https://api.github.com/repos/codacy/codacy-plugins-test/pulls/35/comments"},"review_comment":{"href":"https://api.github.com/repos/codacy/codacy-plugins-test/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/codacy/codacy-plugins-test/pulls/35/commits"},"statuses":{"href":"https://api.github.com/repos/codacy/codacy-plugins-test/statuses/45ee473061c96d4e0b17d6362d54dd3618075541"}},"author_association":"NONE"}}
{"actor":{"display_login":"bmbferreira"}}