{"action":"created","comment":{"url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/pulls/comments/75112626","id":75112626,"diff_hunk":"@@ -0,0 +1,181 @@\n+// Identity Personas\n+\n+// NURSECONNECT\n+    // (+27820001001) - new identity; no subscriptions\n+    // (+27820001002) - existing identity with an active MomConnect subscription (no active NurseConnect subscription)\n+    // (+27820001003) - existing identity with an active NurseConnect subscription\n+\n+\n+module.exports = function() {\n+    return [\n+\n+        // 0: get identity by msisdn +27820001001\n+        {\n+            \"request\": {\n+                \"url\": 'http://is.localhost:8001/api/v1/identities/search/',\n+                \"method\": 'GET',\n+                \"params\": {\n+                    \"details__addresses__msisdn\": '+27820001001'\n+                },\n+                \"headers\": {\n+                    \"key\": \"get.identity.new.27820001001\"\n+                }\n+            },\n+            \"response\": {\n+                \"code\": 200,\n+                \"data\": {\n+                    \"count\": 0,\n+                    \"next\": null,\n+                    \"previous\": null,\n+                    \"results\": []\n+                }\n+            }\n+        },\n+\n+        // 1: get identity by msisdn +27820001002\n+        {\n+            \"request\": {\n+                \"url\": 'http://is.localhost:8001/api/v1/identities/search/',\n+                \"method\": 'GET',\n+                \"params\": {\n+                    \"details__addresses__msisdn\": '+27820001002'\n+                },\n+                \"headers\": {\n+                    \"key\": \"get.identity.registered.27820001002\"\n+                }\n+            },\n+            \"response\": {\n+                \"code\": 200,\n+                \"data\": {\n+                    \"count\": 1,\n+                    \"next\": null,\n+                    \"previous\": null,\n+                    \"results\": [{","path":"test/fixtures_identity_store.js","position":53,"original_position":53,"commit_id":"badb4ad77f1723ca5b84f1632b09a21c9b00fd0b","original_commit_id":"badb4ad77f1723ca5b84f1632b09a21c9b00fd0b","user":{"login":"gsvr","id":3907663,"avatar_url":"https://avatars.githubusercontent.com/u/3907663?v=3","gravatar_id":"","url":"https://api.github.com/users/gsvr","html_url":"https://github.com/gsvr","followers_url":"https://api.github.com/users/gsvr/followers","following_url":"https://api.github.com/users/gsvr/following{/other_user}","gists_url":"https://api.github.com/users/gsvr/gists{/gist_id}","starred_url":"https://api.github.com/users/gsvr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gsvr/subscriptions","organizations_url":"https://api.github.com/users/gsvr/orgs","repos_url":"https://api.github.com/users/gsvr/repos","events_url":"https://api.github.com/users/gsvr/events{/privacy}","received_events_url":"https://api.github.com/users/gsvr/received_events","type":"User","site_admin":false},"body":"I know we've done it like this in the past, but fixture readability is a problem, so rather put the start of the dict on the next line (with an indent).","created_at":"2016-08-17T12:30:49Z","updated_at":"2016-08-17T12:30:49Z","html_url":"https://github.com/praekeltfoundation/ndoh-jsbox/pull/27#discussion_r75112626","pull_request_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/pulls/27","_links":{"self":{"href":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/pulls/comments/75112626"},"html":{"href":"https://github.com/praekeltfoundation/ndoh-jsbox/pull/27#discussion_r75112626"},"pull_request":{"href":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/pulls/27"}}},"pull_request":{"url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/pulls/27","id":81462665,"html_url":"https://github.com/praekeltfoundation/ndoh-jsbox/pull/27","diff_url":"https://github.com/praekeltfoundation/ndoh-jsbox/pull/27.diff","patch_url":"https://github.com/praekeltfoundation/ndoh-jsbox/pull/27.patch","issue_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/issues/27","number":27,"state":"open","locked":false,"title":"Change fixtures","user":{"login":"NicolaasDieBaas","id":16633608,"avatar_url":"https://avatars.githubusercontent.com/u/16633608?v=3","gravatar_id":"","url":"https://api.github.com/users/NicolaasDieBaas","html_url":"https://github.com/NicolaasDieBaas","followers_url":"https://api.github.com/users/NicolaasDieBaas/followers","following_url":"https://api.github.com/users/NicolaasDieBaas/following{/other_user}","gists_url":"https://api.github.com/users/NicolaasDieBaas/gists{/gist_id}","starred_url":"https://api.github.com/users/NicolaasDieBaas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NicolaasDieBaas/subscriptions","organizations_url":"https://api.github.com/users/NicolaasDieBaas/orgs","repos_url":"https://api.github.com/users/NicolaasDieBaas/repos","events_url":"https://api.github.com/users/NicolaasDieBaas/events{/privacy}","received_events_url":"https://api.github.com/users/NicolaasDieBaas/received_events","type":"User","site_admin":false},"body":"Change fixtures for NurseConnect (so far) in the following way:\r\n- [x] create separate fixture files according to service (keep PMTCT fixtures separate for now)\r\n- [x] apply identity roles and helpful numbering\r\n- [x] allocate unused fixtures slots to each service\r\n- [x] add descriptive keys to fixtures","created_at":"2016-08-16T12:27:46Z","updated_at":"2016-08-17T12:30:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"83733a88b7cb3bf6fb56da039c93d7ff54b05eb4","assignee":{"login":"NicolaasDieBaas","id":16633608,"avatar_url":"https://avatars.githubusercontent.com/u/16633608?v=3","gravatar_id":"","url":"https://api.github.com/users/NicolaasDieBaas","html_url":"https://github.com/NicolaasDieBaas","followers_url":"https://api.github.com/users/NicolaasDieBaas/followers","following_url":"https://api.github.com/users/NicolaasDieBaas/following{/other_user}","gists_url":"https://api.github.com/users/NicolaasDieBaas/gists{/gist_id}","starred_url":"https://api.github.com/users/NicolaasDieBaas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NicolaasDieBaas/subscriptions","organizations_url":"https://api.github.com/users/NicolaasDieBaas/orgs","repos_url":"https://api.github.com/users/NicolaasDieBaas/repos","events_url":"https://api.github.com/users/NicolaasDieBaas/events{/privacy}","received_events_url":"https://api.github.com/users/NicolaasDieBaas/received_events","type":"User","site_admin":false},"assignees":[{"login":"NicolaasDieBaas","id":16633608,"avatar_url":"https://avatars.githubusercontent.com/u/16633608?v=3","gravatar_id":"","url":"https://api.github.com/users/NicolaasDieBaas","html_url":"https://github.com/NicolaasDieBaas","followers_url":"https://api.github.com/users/NicolaasDieBaas/followers","following_url":"https://api.github.com/users/NicolaasDieBaas/following{/other_user}","gists_url":"https://api.github.com/users/NicolaasDieBaas/gists{/gist_id}","starred_url":"https://api.github.com/users/NicolaasDieBaas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NicolaasDieBaas/subscriptions","organizations_url":"https://api.github.com/users/NicolaasDieBaas/orgs","repos_url":"https://api.github.com/users/NicolaasDieBaas/repos","events_url":"https://api.github.com/users/NicolaasDieBaas/events{/privacy}","received_events_url":"https://api.github.com/users/NicolaasDieBaas/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/pulls/27/commits","review_comments_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/pulls/27/comments","review_comment_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/pulls/comments{/number}","comments_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/issues/27/comments","statuses_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/statuses/badb4ad77f1723ca5b84f1632b09a21c9b00fd0b","head":{"label":"praekeltfoundation:feature/issue-27-change-fixtures","ref":"feature/issue-27-change-fixtures","sha":"badb4ad77f1723ca5b84f1632b09a21c9b00fd0b","user":{"login":"praekeltfoundation","id":15786759,"avatar_url":"https://avatars.githubusercontent.com/u/15786759?v=3","gravatar_id":"","url":"https://api.github.com/users/praekeltfoundation","html_url":"https://github.com/praekeltfoundation","followers_url":"https://api.github.com/users/praekeltfoundation/followers","following_url":"https://api.github.com/users/praekeltfoundation/following{/other_user}","gists_url":"https://api.github.com/users/praekeltfoundation/gists{/gist_id}","starred_url":"https://api.github.com/users/praekeltfoundation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/praekeltfoundation/subscriptions","organizations_url":"https://api.github.com/users/praekeltfoundation/orgs","repos_url":"https://api.github.com/users/praekeltfoundation/repos","events_url":"https://api.github.com/users/praekeltfoundation/events{/privacy}","received_events_url":"https://api.github.com/users/praekeltfoundation/received_events","type":"Organization","site_admin":false},"repo":{"id":61732866,"name":"ndoh-jsbox","full_name":"praekeltfoundation/ndoh-jsbox","owner":{"login":"praekeltfoundation","id":15786759,"avatar_url":"https://avatars.githubusercontent.com/u/15786759?v=3","gravatar_id":"","url":"https://api.github.com/users/praekeltfoundation","html_url":"https://github.com/praekeltfoundation","followers_url":"https://api.github.com/users/praekeltfoundation/followers","following_url":"https://api.github.com/users/praekeltfoundation/following{/other_user}","gists_url":"https://api.github.com/users/praekeltfoundation/gists{/gist_id}","starred_url":"https://api.github.com/users/praekeltfoundation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/praekeltfoundation/subscriptions","organizations_url":"https://api.github.com/users/praekeltfoundation/orgs","repos_url":"https://api.github.com/users/praekeltfoundation/repos","events_url":"https://api.github.com/users/praekeltfoundation/events{/privacy}","received_events_url":"https://api.github.com/users/praekeltfoundation/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/praekeltfoundation/ndoh-jsbox","description":null,"fork":false,"url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox","forks_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/forks","keys_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/teams","hooks_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/hooks","issue_events_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/issues/events{/number}","events_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/events","assignees_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/assignees{/user}","branches_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/branches{/branch}","tags_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/tags","blobs_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/git/refs{/sha}","trees_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/statuses/{sha}","languages_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/languages","stargazers_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/stargazers","contributors_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/contributors","subscribers_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/subscribers","subscription_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/subscription","commits_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/commits{/sha}","git_commits_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/git/commits{/sha}","comments_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/comments{/number}","issue_comment_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/issues/comments{/number}","contents_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/contents/{+path}","compare_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/merges","archive_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/downloads","issues_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/issues{/number}","pulls_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/pulls{/number}","milestones_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/milestones{/number}","notifications_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/labels{/name}","releases_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/releases{/id}","deployments_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/deployments","created_at":"2016-06-22T16:05:38Z","updated_at":"2016-07-08T07:22:12Z","pushed_at":"2016-08-17T08:55:23Z","git_url":"git://github.com/praekeltfoundation/ndoh-jsbox.git","ssh_url":"git@github.com:praekeltfoundation/ndoh-jsbox.git","clone_url":"https://github.com/praekeltfoundation/ndoh-jsbox.git","svn_url":"https://github.com/praekeltfoundation/ndoh-jsbox","homepage":null,"size":342,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"develop"}},"base":{"label":"praekeltfoundation:develop","ref":"develop","sha":"e24bb80d1bfcb7c084ead475b518bf4aed1a0ec4","user":{"login":"praekeltfoundation","id":15786759,"avatar_url":"https://avatars.githubusercontent.com/u/15786759?v=3","gravatar_id":"","url":"https://api.github.com/users/praekeltfoundation","html_url":"https://github.com/praekeltfoundation","followers_url":"https://api.github.com/users/praekeltfoundation/followers","following_url":"https://api.github.com/users/praekeltfoundation/following{/other_user}","gists_url":"https://api.github.com/users/praekeltfoundation/gists{/gist_id}","starred_url":"https://api.github.com/users/praekeltfoundation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/praekeltfoundation/subscriptions","organizations_url":"https://api.github.com/users/praekeltfoundation/orgs","repos_url":"https://api.github.com/users/praekeltfoundation/repos","events_url":"https://api.github.com/users/praekeltfoundation/events{/privacy}","received_events_url":"https://api.github.com/users/praekeltfoundation/received_events","type":"Organization","site_admin":false},"repo":{"id":61732866,"name":"ndoh-jsbox","full_name":"praekeltfoundation/ndoh-jsbox","owner":{"login":"praekeltfoundation","id":15786759,"avatar_url":"https://avatars.githubusercontent.com/u/15786759?v=3","gravatar_id":"","url":"https://api.github.com/users/praekeltfoundation","html_url":"https://github.com/praekeltfoundation","followers_url":"https://api.github.com/users/praekeltfoundation/followers","following_url":"https://api.github.com/users/praekeltfoundation/following{/other_user}","gists_url":"https://api.github.com/users/praekeltfoundation/gists{/gist_id}","starred_url":"https://api.github.com/users/praekeltfoundation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/praekeltfoundation/subscriptions","organizations_url":"https://api.github.com/users/praekeltfoundation/orgs","repos_url":"https://api.github.com/users/praekeltfoundation/repos","events_url":"https://api.github.com/users/praekeltfoundation/events{/privacy}","received_events_url":"https://api.github.com/users/praekeltfoundation/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/praekeltfoundation/ndoh-jsbox","description":null,"fork":false,"url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox","forks_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/forks","keys_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/teams","hooks_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/hooks","issue_events_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/issues/events{/number}","events_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/events","assignees_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/assignees{/user}","branches_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/branches{/branch}","tags_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/tags","blobs_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/git/refs{/sha}","trees_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/statuses/{sha}","languages_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/languages","stargazers_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/stargazers","contributors_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/contributors","subscribers_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/subscribers","subscription_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/subscription","commits_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/commits{/sha}","git_commits_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/git/commits{/sha}","comments_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/comments{/number}","issue_comment_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/issues/comments{/number}","contents_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/contents/{+path}","compare_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/merges","archive_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/downloads","issues_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/issues{/number}","pulls_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/pulls{/number}","milestones_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/milestones{/number}","notifications_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/labels{/name}","releases_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/releases{/id}","deployments_url":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/deployments","created_at":"2016-06-22T16:05:38Z","updated_at":"2016-07-08T07:22:12Z","pushed_at":"2016-08-17T08:55:23Z","git_url":"git://github.com/praekeltfoundation/ndoh-jsbox.git","ssh_url":"git@github.com:praekeltfoundation/ndoh-jsbox.git","clone_url":"https://github.com/praekeltfoundation/ndoh-jsbox.git","svn_url":"https://github.com/praekeltfoundation/ndoh-jsbox","homepage":null,"size":342,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":5,"forks":0,"open_issues":5,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/pulls/27"},"html":{"href":"https://github.com/praekeltfoundation/ndoh-jsbox/pull/27"},"issue":{"href":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/issues/27"},"comments":{"href":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/issues/27/comments"},"review_comments":{"href":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/pulls/27/comments"},"review_comment":{"href":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/pulls/27/commits"},"statuses":{"href":"https://api.github.com/repos/praekeltfoundation/ndoh-jsbox/statuses/badb4ad77f1723ca5b84f1632b09a21c9b00fd0b"}}}}
{"actor":{"display_login":"gsvr"}}