{"action":"created","comment":{"url":"https://api.github.com/repos/hmrc/agent-client-authorisation/pulls/comments/85109025","pull_request_review_id":5842848,"id":85109025,"diff_hunk":"@@ -38,7 +39,91 @@ class AgentClientAuthorisationISpec extends UnitSpec with MongoAppAndStubs with\n   private val getInvitationUrl = s\"/agent-client-authorisation/agencies/${arn.arn}/invitations/sent/\"\n   private val createInvitationUrl = s\"/agent-client-authorisation/agencies/${arn.arn}/invitations\"\n \n-  \"GET /agencies/:arn/invitations/sent\"  should {\n+  val clientId: String = \"1234567890\"\n+  private val getClientInvitationUrl = s\"/agent-client-authorisation/client/$clientId/invitations/received/\"\n+  private val getClientInvitationsUrl = s\"/agent-client-authorisation/client/$clientId/invitations/received\"\n+\n+\n+  \"GET /clients/:clientId/invitations/received\" should {\n+    \"return a 200 response\" in {","path":"it/uk/gov/hmrc/agentclientauthorisation/AgentClientAuthorisationISpec.scala","position":24,"original_position":24,"commit_id":"765f5878a01265c971286511839314f5a264c8fa","original_commit_id":"765f5878a01265c971286511839314f5a264c8fa","user":{"login":"ZDevelop94","id":18018780,"avatar_url":"https://avatars.githubusercontent.com/u/18018780?v=3","gravatar_id":"","url":"https://api.github.com/users/ZDevelop94","html_url":"https://github.com/ZDevelop94","followers_url":"https://api.github.com/users/ZDevelop94/followers","following_url":"https://api.github.com/users/ZDevelop94/following{/other_user}","gists_url":"https://api.github.com/users/ZDevelop94/gists{/gist_id}","starred_url":"https://api.github.com/users/ZDevelop94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZDevelop94/subscriptions","organizations_url":"https://api.github.com/users/ZDevelop94/orgs","repos_url":"https://api.github.com/users/ZDevelop94/repos","events_url":"https://api.github.com/users/ZDevelop94/events{/privacy}","received_events_url":"https://api.github.com/users/ZDevelop94/received_events","type":"User","site_admin":false},"body":"The test gets multiple invitations. As long as they have been created, is this what you mean?","created_at":"2016-10-26T12:21:45Z","updated_at":"2016-10-26T12:21:46Z","html_url":"https://github.com/hmrc/agent-client-authorisation/pull/40#discussion_r85109025","pull_request_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/pulls/40","_links":{"self":{"href":"https://api.github.com/repos/hmrc/agent-client-authorisation/pulls/comments/85109025"},"html":{"href":"https://github.com/hmrc/agent-client-authorisation/pull/40#discussion_r85109025"},"pull_request":{"href":"https://api.github.com/repos/hmrc/agent-client-authorisation/pulls/40"}}},"pull_request":{"url":"https://api.github.com/repos/hmrc/agent-client-authorisation/pulls/40","id":90982374,"html_url":"https://github.com/hmrc/agent-client-authorisation/pull/40","diff_url":"https://github.com/hmrc/agent-client-authorisation/pull/40.diff","patch_url":"https://github.com/hmrc/agent-client-authorisation/pull/40.patch","issue_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/issues/40","number":40,"state":"open","locked":false,"title":"[ZF][APB-22] A client is now able to to view all their received invitations, as well as a specific invitation.","user":{"login":"ZDevelop94","id":18018780,"avatar_url":"https://avatars.githubusercontent.com/u/18018780?v=3","gravatar_id":"","url":"https://api.github.com/users/ZDevelop94","html_url":"https://github.com/ZDevelop94","followers_url":"https://api.github.com/users/ZDevelop94/followers","following_url":"https://api.github.com/users/ZDevelop94/following{/other_user}","gists_url":"https://api.github.com/users/ZDevelop94/gists{/gist_id}","starred_url":"https://api.github.com/users/ZDevelop94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZDevelop94/subscriptions","organizations_url":"https://api.github.com/users/ZDevelop94/orgs","repos_url":"https://api.github.com/users/ZDevelop94/repos","events_url":"https://api.github.com/users/ZDevelop94/events{/privacy}","received_events_url":"https://api.github.com/users/ZDevelop94/received_events","type":"User","site_admin":false},"body":"All tests pass.","created_at":"2016-10-26T11:06:49Z","updated_at":"2016-10-26T12:21:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1465d43f4581b75bc1dd4ddb5da480338dbb3fd2","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/pulls/40/commits","review_comments_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/pulls/40/comments","review_comment_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/issues/40/comments","statuses_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/statuses/765f5878a01265c971286511839314f5a264c8fa","head":{"label":"hmrc:APB-22-Client-Invitations","ref":"APB-22-Client-Invitations","sha":"765f5878a01265c971286511839314f5a264c8fa","user":{"login":"hmrc","id":5755339,"avatar_url":"https://avatars.githubusercontent.com/u/5755339?v=3","gravatar_id":"","url":"https://api.github.com/users/hmrc","html_url":"https://github.com/hmrc","followers_url":"https://api.github.com/users/hmrc/followers","following_url":"https://api.github.com/users/hmrc/following{/other_user}","gists_url":"https://api.github.com/users/hmrc/gists{/gist_id}","starred_url":"https://api.github.com/users/hmrc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmrc/subscriptions","organizations_url":"https://api.github.com/users/hmrc/orgs","repos_url":"https://api.github.com/users/hmrc/repos","events_url":"https://api.github.com/users/hmrc/events{/privacy}","received_events_url":"https://api.github.com/users/hmrc/received_events","type":"Organization","site_admin":false},"repo":{"id":62725534,"name":"agent-client-authorisation","full_name":"hmrc/agent-client-authorisation","owner":{"login":"hmrc","id":5755339,"avatar_url":"https://avatars.githubusercontent.com/u/5755339?v=3","gravatar_id":"","url":"https://api.github.com/users/hmrc","html_url":"https://github.com/hmrc","followers_url":"https://api.github.com/users/hmrc/followers","following_url":"https://api.github.com/users/hmrc/following{/other_user}","gists_url":"https://api.github.com/users/hmrc/gists{/gist_id}","starred_url":"https://api.github.com/users/hmrc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmrc/subscriptions","organizations_url":"https://api.github.com/users/hmrc/orgs","repos_url":"https://api.github.com/users/hmrc/repos","events_url":"https://api.github.com/users/hmrc/events{/privacy}","received_events_url":"https://api.github.com/users/hmrc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hmrc/agent-client-authorisation","description":null,"fork":false,"url":"https://api.github.com/repos/hmrc/agent-client-authorisation","forks_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/forks","keys_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/teams","hooks_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/hooks","issue_events_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/issues/events{/number}","events_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/events","assignees_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/assignees{/user}","branches_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/branches{/branch}","tags_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/tags","blobs_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/git/refs{/sha}","trees_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/statuses/{sha}","languages_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/languages","stargazers_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/stargazers","contributors_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/contributors","subscribers_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/subscribers","subscription_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/subscription","commits_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/commits{/sha}","git_commits_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/git/commits{/sha}","comments_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/comments{/number}","issue_comment_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/issues/comments{/number}","contents_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/contents/{+path}","compare_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/merges","archive_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/downloads","issues_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/issues{/number}","pulls_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/pulls{/number}","milestones_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/milestones{/number}","notifications_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/labels{/name}","releases_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/releases{/id}","deployments_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/deployments","created_at":"2016-07-06T14:04:13Z","updated_at":"2016-07-06T15:23:26Z","pushed_at":"2016-10-26T11:06:49Z","git_url":"git://github.com/hmrc/agent-client-authorisation.git","ssh_url":"git@github.com:hmrc/agent-client-authorisation.git","clone_url":"https://github.com/hmrc/agent-client-authorisation.git","svn_url":"https://github.com/hmrc/agent-client-authorisation","homepage":"","size":265,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"hmrc:master","ref":"master","sha":"8b5f4ef0f43a3a404474751c48786c59e39e4e74","user":{"login":"hmrc","id":5755339,"avatar_url":"https://avatars.githubusercontent.com/u/5755339?v=3","gravatar_id":"","url":"https://api.github.com/users/hmrc","html_url":"https://github.com/hmrc","followers_url":"https://api.github.com/users/hmrc/followers","following_url":"https://api.github.com/users/hmrc/following{/other_user}","gists_url":"https://api.github.com/users/hmrc/gists{/gist_id}","starred_url":"https://api.github.com/users/hmrc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmrc/subscriptions","organizations_url":"https://api.github.com/users/hmrc/orgs","repos_url":"https://api.github.com/users/hmrc/repos","events_url":"https://api.github.com/users/hmrc/events{/privacy}","received_events_url":"https://api.github.com/users/hmrc/received_events","type":"Organization","site_admin":false},"repo":{"id":62725534,"name":"agent-client-authorisation","full_name":"hmrc/agent-client-authorisation","owner":{"login":"hmrc","id":5755339,"avatar_url":"https://avatars.githubusercontent.com/u/5755339?v=3","gravatar_id":"","url":"https://api.github.com/users/hmrc","html_url":"https://github.com/hmrc","followers_url":"https://api.github.com/users/hmrc/followers","following_url":"https://api.github.com/users/hmrc/following{/other_user}","gists_url":"https://api.github.com/users/hmrc/gists{/gist_id}","starred_url":"https://api.github.com/users/hmrc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmrc/subscriptions","organizations_url":"https://api.github.com/users/hmrc/orgs","repos_url":"https://api.github.com/users/hmrc/repos","events_url":"https://api.github.com/users/hmrc/events{/privacy}","received_events_url":"https://api.github.com/users/hmrc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hmrc/agent-client-authorisation","description":null,"fork":false,"url":"https://api.github.com/repos/hmrc/agent-client-authorisation","forks_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/forks","keys_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/teams","hooks_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/hooks","issue_events_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/issues/events{/number}","events_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/events","assignees_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/assignees{/user}","branches_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/branches{/branch}","tags_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/tags","blobs_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/git/refs{/sha}","trees_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/statuses/{sha}","languages_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/languages","stargazers_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/stargazers","contributors_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/contributors","subscribers_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/subscribers","subscription_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/subscription","commits_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/commits{/sha}","git_commits_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/git/commits{/sha}","comments_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/comments{/number}","issue_comment_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/issues/comments{/number}","contents_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/contents/{+path}","compare_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/merges","archive_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/downloads","issues_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/issues{/number}","pulls_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/pulls{/number}","milestones_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/milestones{/number}","notifications_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/labels{/name}","releases_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/releases{/id}","deployments_url":"https://api.github.com/repos/hmrc/agent-client-authorisation/deployments","created_at":"2016-07-06T14:04:13Z","updated_at":"2016-07-06T15:23:26Z","pushed_at":"2016-10-26T11:06:49Z","git_url":"git://github.com/hmrc/agent-client-authorisation.git","ssh_url":"git@github.com:hmrc/agent-client-authorisation.git","clone_url":"https://github.com/hmrc/agent-client-authorisation.git","svn_url":"https://github.com/hmrc/agent-client-authorisation","homepage":"","size":265,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hmrc/agent-client-authorisation/pulls/40"},"html":{"href":"https://github.com/hmrc/agent-client-authorisation/pull/40"},"issue":{"href":"https://api.github.com/repos/hmrc/agent-client-authorisation/issues/40"},"comments":{"href":"https://api.github.com/repos/hmrc/agent-client-authorisation/issues/40/comments"},"review_comments":{"href":"https://api.github.com/repos/hmrc/agent-client-authorisation/pulls/40/comments"},"review_comment":{"href":"https://api.github.com/repos/hmrc/agent-client-authorisation/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hmrc/agent-client-authorisation/pulls/40/commits"},"statuses":{"href":"https://api.github.com/repos/hmrc/agent-client-authorisation/statuses/765f5878a01265c971286511839314f5a264c8fa"}}}}
{"actor":{"display_login":"ZDevelop94"}}