{"action":"created","comment":{"url":"https://api.github.com/repos/vimc/montagu-api/pulls/comments/210289327","pull_request_review_id":146471313,"id":210289327,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMDI4OTMyNw==","diff_hunk":"@@ -0,0 +1,35 @@\n+package org.vaccineimpact.api.tests.logic\n+\n+import com.nhaarman.mockito_kotlin.*\n+import org.assertj.core.api.Assertions.assertThat\n+import org.junit.Test\n+import org.vaccineimpact.api.app.logic.RepositoriesUserLogic\n+import org.vaccineimpact.api.app.repositories.UserRepository\n+import org.vaccineimpact.api.security.WebTokenHelper\n+import org.vaccineimpact.api.test_helpers.MontaguTests\n+import org.vaccineimpact.api.test_helpers.exampleInternalUser\n+\n+class UserLogicTests : MontaguTests()\n+{\n+    @Test\n+    fun `getUserByUsername passes through to repository`()\n+    {\n+        val repo = mock<UserRepository>()\n+        val sut = RepositoriesUserLogic(repo, mock())\n+        sut.getUserByUsername(\"user\")\n+        verify(repo).getUserByUsername(\"user\")\n+    }\n+\n+    @Test\n+    fun `logInAndGetToken gets token and updates last logged in`()","path":"src/app/src/test/kotlin/org/vaccineimpact/api/tests/logic/UserLogicTests.kt","position":24,"original_position":24,"commit_id":"aee81f2234e3ece219d368f5e3d9664aaea96064","original_commit_id":"aee81f2234e3ece219d368f5e3d9664aaea96064","user":{"login":"littledice","id":6736820,"node_id":"MDQ6VXNlcjY3MzY4MjA=","avatar_url":"https://avatars3.githubusercontent.com/u/6736820?v=4","gravatar_id":"","url":"https://api.github.com/users/littledice","html_url":"https://github.com/littledice","followers_url":"https://api.github.com/users/littledice/followers","following_url":"https://api.github.com/users/littledice/following{/other_user}","gists_url":"https://api.github.com/users/littledice/gists{/gist_id}","starred_url":"https://api.github.com/users/littledice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/littledice/subscriptions","organizations_url":"https://api.github.com/users/littledice/orgs","repos_url":"https://api.github.com/users/littledice/repos","events_url":"https://api.github.com/users/littledice/events{/privacy}","received_events_url":"https://api.github.com/users/littledice/received_events","type":"User","site_admin":false},"body":"Looks like we had a test before that checked that `lastLoggedIn` wasn't updated on a failed login, but that's no longer under test? Unless I've missed it","created_at":"2018-08-15T14:35:47Z","updated_at":"2018-08-15T14:39:08Z","html_url":"https://github.com/vimc/montagu-api/pull/306#discussion_r210289327","pull_request_url":"https://api.github.com/repos/vimc/montagu-api/pulls/306","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/vimc/montagu-api/pulls/comments/210289327"},"html":{"href":"https://github.com/vimc/montagu-api/pull/306#discussion_r210289327"},"pull_request":{"href":"https://api.github.com/repos/vimc/montagu-api/pulls/306"}}},"pull_request":{"url":"https://api.github.com/repos/vimc/montagu-api/pulls/306","id":208578056,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA4NTc4MDU2","html_url":"https://github.com/vimc/montagu-api/pull/306","diff_url":"https://github.com/vimc/montagu-api/pull/306.diff","patch_url":"https://github.com/vimc/montagu-api/pull/306.patch","issue_url":"https://api.github.com/repos/vimc/montagu-api/issues/306","number":306,"state":"open","locked":false,"title":"i2073: Issue cookie on login","user":{"login":"MartinEden","id":1148055,"node_id":"MDQ6VXNlcjExNDgwNTU=","avatar_url":"https://avatars3.githubusercontent.com/u/1148055?v=4","gravatar_id":"","url":"https://api.github.com/users/MartinEden","html_url":"https://github.com/MartinEden","followers_url":"https://api.github.com/users/MartinEden/followers","following_url":"https://api.github.com/users/MartinEden/following{/other_user}","gists_url":"https://api.github.com/users/MartinEden/gists{/gist_id}","starred_url":"https://api.github.com/users/MartinEden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MartinEden/subscriptions","organizations_url":"https://api.github.com/users/MartinEden/orgs","repos_url":"https://api.github.com/users/MartinEden/repos","events_url":"https://api.github.com/users/MartinEden/events{/privacy}","received_events_url":"https://api.github.com/users/MartinEden/received_events","type":"User","site_admin":false},"body":"https://vimc.myjetbrains.com/youtrack/issue/VIMC-2073","created_at":"2018-08-15T14:26:13Z","updated_at":"2018-08-15T14:39:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"011da0295b84903b2c9dea9bb27beebe88c7a116","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/vimc/montagu-api/pulls/306/commits","review_comments_url":"https://api.github.com/repos/vimc/montagu-api/pulls/306/comments","review_comment_url":"https://api.github.com/repos/vimc/montagu-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vimc/montagu-api/issues/306/comments","statuses_url":"https://api.github.com/repos/vimc/montagu-api/statuses/aee81f2234e3ece219d368f5e3d9664aaea96064","head":{"label":"vimc:i2073_b","ref":"i2073_b","sha":"aee81f2234e3ece219d368f5e3d9664aaea96064","user":{"login":"vimc","id":26278316,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI2Mjc4MzE2","avatar_url":"https://avatars1.githubusercontent.com/u/26278316?v=4","gravatar_id":"","url":"https://api.github.com/users/vimc","html_url":"https://github.com/vimc","followers_url":"https://api.github.com/users/vimc/followers","following_url":"https://api.github.com/users/vimc/following{/other_user}","gists_url":"https://api.github.com/users/vimc/gists{/gist_id}","starred_url":"https://api.github.com/users/vimc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vimc/subscriptions","organizations_url":"https://api.github.com/users/vimc/orgs","repos_url":"https://api.github.com/users/vimc/repos","events_url":"https://api.github.com/users/vimc/events{/privacy}","received_events_url":"https://api.github.com/users/vimc/received_events","type":"Organization","site_admin":false},"repo":{"id":85062678,"node_id":"MDEwOlJlcG9zaXRvcnk4NTA2MjY3OA==","name":"montagu-api","full_name":"vimc/montagu-api","owner":{"login":"vimc","id":26278316,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI2Mjc4MzE2","avatar_url":"https://avatars1.githubusercontent.com/u/26278316?v=4","gravatar_id":"","url":"https://api.github.com/users/vimc","html_url":"https://github.com/vimc","followers_url":"https://api.github.com/users/vimc/followers","following_url":"https://api.github.com/users/vimc/following{/other_user}","gists_url":"https://api.github.com/users/vimc/gists{/gist_id}","starred_url":"https://api.github.com/users/vimc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vimc/subscriptions","organizations_url":"https://api.github.com/users/vimc/orgs","repos_url":"https://api.github.com/users/vimc/repos","events_url":"https://api.github.com/users/vimc/events{/privacy}","received_events_url":"https://api.github.com/users/vimc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/vimc/montagu-api","description":"JSON REST API for providing data access to other applications","fork":false,"url":"https://api.github.com/repos/vimc/montagu-api","forks_url":"https://api.github.com/repos/vimc/montagu-api/forks","keys_url":"https://api.github.com/repos/vimc/montagu-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vimc/montagu-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vimc/montagu-api/teams","hooks_url":"https://api.github.com/repos/vimc/montagu-api/hooks","issue_events_url":"https://api.github.com/repos/vimc/montagu-api/issues/events{/number}","events_url":"https://api.github.com/repos/vimc/montagu-api/events","assignees_url":"https://api.github.com/repos/vimc/montagu-api/assignees{/user}","branches_url":"https://api.github.com/repos/vimc/montagu-api/branches{/branch}","tags_url":"https://api.github.com/repos/vimc/montagu-api/tags","blobs_url":"https://api.github.com/repos/vimc/montagu-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vimc/montagu-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vimc/montagu-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/vimc/montagu-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vimc/montagu-api/statuses/{sha}","languages_url":"https://api.github.com/repos/vimc/montagu-api/languages","stargazers_url":"https://api.github.com/repos/vimc/montagu-api/stargazers","contributors_url":"https://api.github.com/repos/vimc/montagu-api/contributors","subscribers_url":"https://api.github.com/repos/vimc/montagu-api/subscribers","subscription_url":"https://api.github.com/repos/vimc/montagu-api/subscription","commits_url":"https://api.github.com/repos/vimc/montagu-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/vimc/montagu-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/vimc/montagu-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/vimc/montagu-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/vimc/montagu-api/contents/{+path}","compare_url":"https://api.github.com/repos/vimc/montagu-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vimc/montagu-api/merges","archive_url":"https://api.github.com/repos/vimc/montagu-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vimc/montagu-api/downloads","issues_url":"https://api.github.com/repos/vimc/montagu-api/issues{/number}","pulls_url":"https://api.github.com/repos/vimc/montagu-api/pulls{/number}","milestones_url":"https://api.github.com/repos/vimc/montagu-api/milestones{/number}","notifications_url":"https://api.github.com/repos/vimc/montagu-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vimc/montagu-api/labels{/name}","releases_url":"https://api.github.com/repos/vimc/montagu-api/releases{/id}","deployments_url":"https://api.github.com/repos/vimc/montagu-api/deployments","created_at":"2017-03-15T11:05:45Z","updated_at":"2018-08-15T13:59:23Z","pushed_at":"2018-08-15T14:31:34Z","git_url":"git://github.com/vimc/montagu-api.git","ssh_url":"git@github.com:vimc/montagu-api.git","clone_url":"https://github.com/vimc/montagu-api.git","svn_url":"https://github.com/vimc/montagu-api","homepage":null,"size":4829,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"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":1,"default_branch":"master"}},"base":{"label":"vimc:master","ref":"master","sha":"3ff9a8e600d003eea0cf78a3aed69c4ad20b92b9","user":{"login":"vimc","id":26278316,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI2Mjc4MzE2","avatar_url":"https://avatars1.githubusercontent.com/u/26278316?v=4","gravatar_id":"","url":"https://api.github.com/users/vimc","html_url":"https://github.com/vimc","followers_url":"https://api.github.com/users/vimc/followers","following_url":"https://api.github.com/users/vimc/following{/other_user}","gists_url":"https://api.github.com/users/vimc/gists{/gist_id}","starred_url":"https://api.github.com/users/vimc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vimc/subscriptions","organizations_url":"https://api.github.com/users/vimc/orgs","repos_url":"https://api.github.com/users/vimc/repos","events_url":"https://api.github.com/users/vimc/events{/privacy}","received_events_url":"https://api.github.com/users/vimc/received_events","type":"Organization","site_admin":false},"repo":{"id":85062678,"node_id":"MDEwOlJlcG9zaXRvcnk4NTA2MjY3OA==","name":"montagu-api","full_name":"vimc/montagu-api","owner":{"login":"vimc","id":26278316,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI2Mjc4MzE2","avatar_url":"https://avatars1.githubusercontent.com/u/26278316?v=4","gravatar_id":"","url":"https://api.github.com/users/vimc","html_url":"https://github.com/vimc","followers_url":"https://api.github.com/users/vimc/followers","following_url":"https://api.github.com/users/vimc/following{/other_user}","gists_url":"https://api.github.com/users/vimc/gists{/gist_id}","starred_url":"https://api.github.com/users/vimc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vimc/subscriptions","organizations_url":"https://api.github.com/users/vimc/orgs","repos_url":"https://api.github.com/users/vimc/repos","events_url":"https://api.github.com/users/vimc/events{/privacy}","received_events_url":"https://api.github.com/users/vimc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/vimc/montagu-api","description":"JSON REST API for providing data access to other applications","fork":false,"url":"https://api.github.com/repos/vimc/montagu-api","forks_url":"https://api.github.com/repos/vimc/montagu-api/forks","keys_url":"https://api.github.com/repos/vimc/montagu-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vimc/montagu-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vimc/montagu-api/teams","hooks_url":"https://api.github.com/repos/vimc/montagu-api/hooks","issue_events_url":"https://api.github.com/repos/vimc/montagu-api/issues/events{/number}","events_url":"https://api.github.com/repos/vimc/montagu-api/events","assignees_url":"https://api.github.com/repos/vimc/montagu-api/assignees{/user}","branches_url":"https://api.github.com/repos/vimc/montagu-api/branches{/branch}","tags_url":"https://api.github.com/repos/vimc/montagu-api/tags","blobs_url":"https://api.github.com/repos/vimc/montagu-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vimc/montagu-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vimc/montagu-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/vimc/montagu-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vimc/montagu-api/statuses/{sha}","languages_url":"https://api.github.com/repos/vimc/montagu-api/languages","stargazers_url":"https://api.github.com/repos/vimc/montagu-api/stargazers","contributors_url":"https://api.github.com/repos/vimc/montagu-api/contributors","subscribers_url":"https://api.github.com/repos/vimc/montagu-api/subscribers","subscription_url":"https://api.github.com/repos/vimc/montagu-api/subscription","commits_url":"https://api.github.com/repos/vimc/montagu-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/vimc/montagu-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/vimc/montagu-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/vimc/montagu-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/vimc/montagu-api/contents/{+path}","compare_url":"https://api.github.com/repos/vimc/montagu-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vimc/montagu-api/merges","archive_url":"https://api.github.com/repos/vimc/montagu-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vimc/montagu-api/downloads","issues_url":"https://api.github.com/repos/vimc/montagu-api/issues{/number}","pulls_url":"https://api.github.com/repos/vimc/montagu-api/pulls{/number}","milestones_url":"https://api.github.com/repos/vimc/montagu-api/milestones{/number}","notifications_url":"https://api.github.com/repos/vimc/montagu-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vimc/montagu-api/labels{/name}","releases_url":"https://api.github.com/repos/vimc/montagu-api/releases{/id}","deployments_url":"https://api.github.com/repos/vimc/montagu-api/deployments","created_at":"2017-03-15T11:05:45Z","updated_at":"2018-08-15T13:59:23Z","pushed_at":"2018-08-15T14:31:34Z","git_url":"git://github.com/vimc/montagu-api.git","ssh_url":"git@github.com:vimc/montagu-api.git","clone_url":"https://github.com/vimc/montagu-api.git","svn_url":"https://github.com/vimc/montagu-api","homepage":null,"size":4829,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"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":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/vimc/montagu-api/pulls/306"},"html":{"href":"https://github.com/vimc/montagu-api/pull/306"},"issue":{"href":"https://api.github.com/repos/vimc/montagu-api/issues/306"},"comments":{"href":"https://api.github.com/repos/vimc/montagu-api/issues/306/comments"},"review_comments":{"href":"https://api.github.com/repos/vimc/montagu-api/pulls/306/comments"},"review_comment":{"href":"https://api.github.com/repos/vimc/montagu-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vimc/montagu-api/pulls/306/commits"},"statuses":{"href":"https://api.github.com/repos/vimc/montagu-api/statuses/aee81f2234e3ece219d368f5e3d9664aaea96064"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"littledice"}}