{"action":"created","comment":{"url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/pulls/comments/180405106","pull_request_review_id":110811327,"id":180405106,"diff_hunk":"@@ -0,0 +1,22 @@\n+package com.bardsoftware.backend.fleet.rmarkdown\n+\n+import org.junit.Assert.assertEquals\n+import org.junit.Test\n+\n+class DockerTest {\n+    private val dockerProcessor = DockerProcessor()\n+\n+    @Test\n+    fun testMessageSum() {\n+        val messages = listOf(\"test\", \"hello\", \"\", \"0123\")\n+        val answers = listOf(\n+                \"d8e8fca2dc0f896fd7cb4cb0031ba249  -\\n\",\n+                \"b1946ac92492d2347c6235b4d2611184  -\\n\",\n+                \"68b329da9893e34099c7d8ad5cb9c940  -\\n\",\n+                \"e5870c1091c20ed693976546d23b4841  -\\n\")\n+\n+        for ((index, _) in messages.withIndex()) {","path":"src/test/kotlin/com/bardsoftware/backend/fleet/rmarkdown/DockerProcessorTest.kt","position":18,"original_position":18,"commit_id":"eda2528c8034892cc6b1b57fd5ffdf07071a4373","original_commit_id":"eda2528c8034892cc6b1b57fd5ffdf07071a4373","user":{"login":"dbarashev","id":2028330,"avatar_url":"https://avatars2.githubusercontent.com/u/2028330?v=4","gravatar_id":"","url":"https://api.github.com/users/dbarashev","html_url":"https://github.com/dbarashev","followers_url":"https://api.github.com/users/dbarashev/followers","following_url":"https://api.github.com/users/dbarashev/following{/other_user}","gists_url":"https://api.github.com/users/dbarashev/gists{/gist_id}","starred_url":"https://api.github.com/users/dbarashev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbarashev/subscriptions","organizations_url":"https://api.github.com/users/dbarashev/orgs","repos_url":"https://api.github.com/users/dbarashev/repos","events_url":"https://api.github.com/users/dbarashev/events{/privacy}","received_events_url":"https://api.github.com/users/dbarashev/received_events","type":"User","site_admin":false},"body":"If you only need index, you can use `for (index in 0 until answrs.size)`, \r\nbut I see that you actually need `messages` values and access them with `messages[index]`. Why don't you use one which you currently forget in `_`?\r\n\r\nBut in fact, unleash the full power of Kotlin with ([`messages zip answers`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/zip.html)).forEach","created_at":"2018-04-10T12:42:47Z","updated_at":"2018-04-10T12:43:31Z","html_url":"https://github.com/bardsoftware/papeeria-compiler-fleet/pull/9#discussion_r180405106","pull_request_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/pulls/9","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/pulls/comments/180405106"},"html":{"href":"https://github.com/bardsoftware/papeeria-compiler-fleet/pull/9#discussion_r180405106"},"pull_request":{"href":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/pulls/9","id":180116147,"html_url":"https://github.com/bardsoftware/papeeria-compiler-fleet/pull/9","diff_url":"https://github.com/bardsoftware/papeeria-compiler-fleet/pull/9.diff","patch_url":"https://github.com/bardsoftware/papeeria-compiler-fleet/pull/9.patch","issue_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/issues/9","number":9,"state":"open","locked":false,"title":"Added unit tests","user":{"login":"shavkunov","id":15617786,"avatar_url":"https://avatars3.githubusercontent.com/u/15617786?v=4","gravatar_id":"","url":"https://api.github.com/users/shavkunov","html_url":"https://github.com/shavkunov","followers_url":"https://api.github.com/users/shavkunov/followers","following_url":"https://api.github.com/users/shavkunov/following{/other_user}","gists_url":"https://api.github.com/users/shavkunov/gists{/gist_id}","starred_url":"https://api.github.com/users/shavkunov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shavkunov/subscriptions","organizations_url":"https://api.github.com/users/shavkunov/orgs","repos_url":"https://api.github.com/users/shavkunov/repos","events_url":"https://api.github.com/users/shavkunov/events{/privacy}","received_events_url":"https://api.github.com/users/shavkunov/received_events","type":"User","site_admin":false},"body":"It's a strange thing about docker. Md5 sum stays same for different messages. But I don't understand where I could be wrong, I'm just executing unix shell command with quoted message.\r\n\r\nAnother issue is about GOOGLE_APPLICATION_CREDENTIALS.\r\nHow this should be installed in travis? \r\n\r\nAlso, it will be useful, if we create topic and subscription for testing purposes.","created_at":"2018-04-07T17:35:11Z","updated_at":"2018-04-10T12:43:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9fa3c22b18079877dda62397c0e5211214104018","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/pulls/9/commits","review_comments_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/pulls/9/comments","review_comment_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/issues/9/comments","statuses_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/statuses/eda2528c8034892cc6b1b57fd5ffdf07071a4373","head":{"label":"bardsoftware:tkt-7-testing","ref":"tkt-7-testing","sha":"eda2528c8034892cc6b1b57fd5ffdf07071a4373","user":{"login":"bardsoftware","id":2625618,"avatar_url":"https://avatars1.githubusercontent.com/u/2625618?v=4","gravatar_id":"","url":"https://api.github.com/users/bardsoftware","html_url":"https://github.com/bardsoftware","followers_url":"https://api.github.com/users/bardsoftware/followers","following_url":"https://api.github.com/users/bardsoftware/following{/other_user}","gists_url":"https://api.github.com/users/bardsoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/bardsoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bardsoftware/subscriptions","organizations_url":"https://api.github.com/users/bardsoftware/orgs","repos_url":"https://api.github.com/users/bardsoftware/repos","events_url":"https://api.github.com/users/bardsoftware/events{/privacy}","received_events_url":"https://api.github.com/users/bardsoftware/received_events","type":"Organization","site_admin":false},"repo":{"id":126503654,"name":"papeeria-compiler-fleet","full_name":"bardsoftware/papeeria-compiler-fleet","owner":{"login":"bardsoftware","id":2625618,"avatar_url":"https://avatars1.githubusercontent.com/u/2625618?v=4","gravatar_id":"","url":"https://api.github.com/users/bardsoftware","html_url":"https://github.com/bardsoftware","followers_url":"https://api.github.com/users/bardsoftware/followers","following_url":"https://api.github.com/users/bardsoftware/following{/other_user}","gists_url":"https://api.github.com/users/bardsoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/bardsoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bardsoftware/subscriptions","organizations_url":"https://api.github.com/users/bardsoftware/orgs","repos_url":"https://api.github.com/users/bardsoftware/repos","events_url":"https://api.github.com/users/bardsoftware/events{/privacy}","received_events_url":"https://api.github.com/users/bardsoftware/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bardsoftware/papeeria-compiler-fleet","description":null,"fork":false,"url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet","forks_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/forks","keys_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/teams","hooks_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/hooks","issue_events_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/issues/events{/number}","events_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/events","assignees_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/assignees{/user}","branches_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/branches{/branch}","tags_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/tags","blobs_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/git/refs{/sha}","trees_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/statuses/{sha}","languages_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/languages","stargazers_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/stargazers","contributors_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/contributors","subscribers_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/subscribers","subscription_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/subscription","commits_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/commits{/sha}","git_commits_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/git/commits{/sha}","comments_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/comments{/number}","issue_comment_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/issues/comments{/number}","contents_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/contents/{+path}","compare_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/merges","archive_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/downloads","issues_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/issues{/number}","pulls_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/pulls{/number}","milestones_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/milestones{/number}","notifications_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/labels{/name}","releases_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/releases{/id}","deployments_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/deployments","created_at":"2018-03-23T15:22:45Z","updated_at":"2018-03-29T17:46:12Z","pushed_at":"2018-04-10T00:30:45Z","git_url":"git://github.com/bardsoftware/papeeria-compiler-fleet.git","ssh_url":"git@github.com:bardsoftware/papeeria-compiler-fleet.git","clone_url":"https://github.com/bardsoftware/papeeria-compiler-fleet.git","svn_url":"https://github.com/bardsoftware/papeeria-compiler-fleet","homepage":null,"size":45,"stargazers_count":0,"watchers_count":0,"language":"Kotlin","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"bardsoftware:master","ref":"master","sha":"6186ab582348fa58038b2ea2a5a6fc7ee1bacee8","user":{"login":"bardsoftware","id":2625618,"avatar_url":"https://avatars1.githubusercontent.com/u/2625618?v=4","gravatar_id":"","url":"https://api.github.com/users/bardsoftware","html_url":"https://github.com/bardsoftware","followers_url":"https://api.github.com/users/bardsoftware/followers","following_url":"https://api.github.com/users/bardsoftware/following{/other_user}","gists_url":"https://api.github.com/users/bardsoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/bardsoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bardsoftware/subscriptions","organizations_url":"https://api.github.com/users/bardsoftware/orgs","repos_url":"https://api.github.com/users/bardsoftware/repos","events_url":"https://api.github.com/users/bardsoftware/events{/privacy}","received_events_url":"https://api.github.com/users/bardsoftware/received_events","type":"Organization","site_admin":false},"repo":{"id":126503654,"name":"papeeria-compiler-fleet","full_name":"bardsoftware/papeeria-compiler-fleet","owner":{"login":"bardsoftware","id":2625618,"avatar_url":"https://avatars1.githubusercontent.com/u/2625618?v=4","gravatar_id":"","url":"https://api.github.com/users/bardsoftware","html_url":"https://github.com/bardsoftware","followers_url":"https://api.github.com/users/bardsoftware/followers","following_url":"https://api.github.com/users/bardsoftware/following{/other_user}","gists_url":"https://api.github.com/users/bardsoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/bardsoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bardsoftware/subscriptions","organizations_url":"https://api.github.com/users/bardsoftware/orgs","repos_url":"https://api.github.com/users/bardsoftware/repos","events_url":"https://api.github.com/users/bardsoftware/events{/privacy}","received_events_url":"https://api.github.com/users/bardsoftware/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bardsoftware/papeeria-compiler-fleet","description":null,"fork":false,"url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet","forks_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/forks","keys_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/teams","hooks_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/hooks","issue_events_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/issues/events{/number}","events_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/events","assignees_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/assignees{/user}","branches_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/branches{/branch}","tags_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/tags","blobs_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/git/refs{/sha}","trees_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/statuses/{sha}","languages_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/languages","stargazers_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/stargazers","contributors_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/contributors","subscribers_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/subscribers","subscription_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/subscription","commits_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/commits{/sha}","git_commits_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/git/commits{/sha}","comments_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/comments{/number}","issue_comment_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/issues/comments{/number}","contents_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/contents/{+path}","compare_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/merges","archive_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/downloads","issues_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/issues{/number}","pulls_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/pulls{/number}","milestones_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/milestones{/number}","notifications_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/labels{/name}","releases_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/releases{/id}","deployments_url":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/deployments","created_at":"2018-03-23T15:22:45Z","updated_at":"2018-03-29T17:46:12Z","pushed_at":"2018-04-10T00:30:45Z","git_url":"git://github.com/bardsoftware/papeeria-compiler-fleet.git","ssh_url":"git@github.com:bardsoftware/papeeria-compiler-fleet.git","clone_url":"https://github.com/bardsoftware/papeeria-compiler-fleet.git","svn_url":"https://github.com/bardsoftware/papeeria-compiler-fleet","homepage":null,"size":45,"stargazers_count":0,"watchers_count":0,"language":"Kotlin","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/pulls/9"},"html":{"href":"https://github.com/bardsoftware/papeeria-compiler-fleet/pull/9"},"issue":{"href":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/issues/9"},"comments":{"href":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/bardsoftware/papeeria-compiler-fleet/statuses/eda2528c8034892cc6b1b57fd5ffdf07071a4373"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"dbarashev"}}