{"action":"created","comment":{"url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/pulls/comments/224839511","pull_request_review_id":164311281,"id":224839511,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNDgzOTUxMQ==","diff_hunk":"@@ -0,0 +1,77 @@\n+package uk.gov.hmcts.reform.divorce.maintenance;\n+\n+import io.restassured.response.Response;\n+import org.apache.http.entity.ContentType;\n+import org.junit.Test;\n+import org.springframework.beans.factory.annotation.Value;\n+import org.springframework.http.HttpHeaders;\n+import uk.gov.hmcts.reform.ccd.client.model.CaseDetails;\n+import uk.gov.hmcts.reform.divorce.model.UserDetails;\n+import uk.gov.hmcts.reform.divorce.support.CcdSubmissionSupport;\n+import uk.gov.hmcts.reform.divorce.util.RestUtil;\n+\n+import java.util.HashMap;\n+import java.util.Map;\n+\n+import static org.junit.Assert.assertEquals;\n+import static org.springframework.http.HttpStatus.BAD_REQUEST;\n+import static org.springframework.http.HttpStatus.OK;\n+import static uk.gov.hmcts.reform.divorce.util.ResourceLoader.loadJson;\n+\n+public class SubmitDnCaseTest extends CcdSubmissionSupport {\n+    private static final String PAYLOAD_CONTEXT_PATH = \"fixtures/maintenance/submit-dn/\";\n+    private static final String TEST_DN_STARTED_EVENT_ID = \"testAosStarted\";","path":"src/integrationTest/java/uk/gov/hmcts/reform/divorce/maintenance/SubmitDnCaseTest.java","position":23,"original_position":23,"commit_id":"76ebd3c1c4e037b9a6ec86b2023b613522ad4273","original_commit_id":"76ebd3c1c4e037b9a6ec86b2023b613522ad4273","user":{"login":"mthava","id":36265472,"node_id":"MDQ6VXNlcjM2MjY1NDcy","avatar_url":"https://avatars3.githubusercontent.com/u/36265472?v=4","gravatar_id":"","url":"https://api.github.com/users/mthava","html_url":"https://github.com/mthava","followers_url":"https://api.github.com/users/mthava/followers","following_url":"https://api.github.com/users/mthava/following{/other_user}","gists_url":"https://api.github.com/users/mthava/gists{/gist_id}","starred_url":"https://api.github.com/users/mthava/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mthava/subscriptions","organizations_url":"https://api.github.com/users/mthava/orgs","repos_url":"https://api.github.com/users/mthava/repos","events_url":"https://api.github.com/users/mthava/events{/privacy}","received_events_url":"https://api.github.com/users/mthava/received_events","type":"User","site_admin":false},"body":"I just spoke to fine. This is ok. Just rename the property to TEST_AOS_STARTED_EVENT_ID","created_at":"2018-10-12T16:10:02Z","updated_at":"2018-10-12T16:10:02Z","html_url":"https://github.com/hmcts/div-case-orchestration-service/pull/46#discussion_r224839511","pull_request_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/pulls/46","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/hmcts/div-case-orchestration-service/pulls/comments/224839511"},"html":{"href":"https://github.com/hmcts/div-case-orchestration-service/pull/46#discussion_r224839511"},"pull_request":{"href":"https://api.github.com/repos/hmcts/div-case-orchestration-service/pulls/46"}},"in_reply_to_id":224831063},"pull_request":{"url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/pulls/46","id":221808807,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIxODA4ODA3","html_url":"https://github.com/hmcts/div-case-orchestration-service/pull/46","diff_url":"https://github.com/hmcts/div-case-orchestration-service/pull/46.diff","patch_url":"https://github.com/hmcts/div-case-orchestration-service/pull/46.patch","issue_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/issues/46","number":46,"state":"open","locked":false,"title":"[PREVIEW] Div 3369 submit dn","user":{"login":"david-gimelle","id":16135604,"node_id":"MDQ6VXNlcjE2MTM1NjA0","avatar_url":"https://avatars1.githubusercontent.com/u/16135604?v=4","gravatar_id":"","url":"https://api.github.com/users/david-gimelle","html_url":"https://github.com/david-gimelle","followers_url":"https://api.github.com/users/david-gimelle/followers","following_url":"https://api.github.com/users/david-gimelle/following{/other_user}","gists_url":"https://api.github.com/users/david-gimelle/gists{/gist_id}","starred_url":"https://api.github.com/users/david-gimelle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/david-gimelle/subscriptions","organizations_url":"https://api.github.com/users/david-gimelle/orgs","repos_url":"https://api.github.com/users/david-gimelle/repos","events_url":"https://api.github.com/users/david-gimelle/events{/privacy}","received_events_url":"https://api.github.com/users/david-gimelle/received_events","type":"User","site_admin":false},"body":"# Description\r\n\r\nPlease include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.\r\n\r\nFixes # (issue)\r\n\r\n## Type of change\r\n\r\nPlease delete options that are not relevant.\r\n\r\n- [ ] Bug fix (non-breaking change which fixes an issue)\r\n- [ ] New feature (non-breaking change which adds functionality)\r\n- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)\r\n- [ ] This change requires a documentation update\r\n\r\n# How Has This Been Tested?\r\n\r\nPlease describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration\r\n\r\n\r\n**Test Configuration**:\r\n\r\n* Hardware:\r\n* O/S and version:\r\n* JDK:\r\n\r\n# Checklist:\r\n\r\n- [ ] My code follows the style guidelines of this project\r\n- [ ] I have performed a self-review of my own code\r\n- [ ] I have commented my code, particularly in hard-to-understand areas\r\n- [ ] I have made corresponding changes to the documentation\r\n- [ ] My changes generate no new warnings\r\n- [ ] I have added tests that prove my fix is effective or that my feature works\r\n- [ ] New and existing unit tests pass locally with my changes\r\n- [ ] Any dependent changes have been merged and published in downstream modules\r\n","created_at":"2018-10-10T14:20:49Z","updated_at":"2018-10-12T16:10:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bd98bbd8896671defc7953eb80078dc72ed78f2d","assignee":null,"assignees":[],"requested_reviewers":[{"login":"tchow8","id":36265570,"node_id":"MDQ6VXNlcjM2MjY1NTcw","avatar_url":"https://avatars3.githubusercontent.com/u/36265570?v=4","gravatar_id":"","url":"https://api.github.com/users/tchow8","html_url":"https://github.com/tchow8","followers_url":"https://api.github.com/users/tchow8/followers","following_url":"https://api.github.com/users/tchow8/following{/other_user}","gists_url":"https://api.github.com/users/tchow8/gists{/gist_id}","starred_url":"https://api.github.com/users/tchow8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tchow8/subscriptions","organizations_url":"https://api.github.com/users/tchow8/orgs","repos_url":"https://api.github.com/users/tchow8/repos","events_url":"https://api.github.com/users/tchow8/events{/privacy}","received_events_url":"https://api.github.com/users/tchow8/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/pulls/46/commits","review_comments_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/pulls/46/comments","review_comment_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/issues/46/comments","statuses_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/statuses/76ebd3c1c4e037b9a6ec86b2023b613522ad4273","head":{"label":"hmcts:div-3369-submit-dn","ref":"div-3369-submit-dn","sha":"76ebd3c1c4e037b9a6ec86b2023b613522ad4273","user":{"login":"hmcts","id":22817111,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyODE3MTEx","avatar_url":"https://avatars1.githubusercontent.com/u/22817111?v=4","gravatar_id":"","url":"https://api.github.com/users/hmcts","html_url":"https://github.com/hmcts","followers_url":"https://api.github.com/users/hmcts/followers","following_url":"https://api.github.com/users/hmcts/following{/other_user}","gists_url":"https://api.github.com/users/hmcts/gists{/gist_id}","starred_url":"https://api.github.com/users/hmcts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmcts/subscriptions","organizations_url":"https://api.github.com/users/hmcts/orgs","repos_url":"https://api.github.com/users/hmcts/repos","events_url":"https://api.github.com/users/hmcts/events{/privacy}","received_events_url":"https://api.github.com/users/hmcts/received_events","type":"Organization","site_admin":false},"repo":{"id":142584193,"node_id":"MDEwOlJlcG9zaXRvcnkxNDI1ODQxOTM=","name":"div-case-orchestration-service","full_name":"hmcts/div-case-orchestration-service","private":false,"owner":{"login":"hmcts","id":22817111,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyODE3MTEx","avatar_url":"https://avatars1.githubusercontent.com/u/22817111?v=4","gravatar_id":"","url":"https://api.github.com/users/hmcts","html_url":"https://github.com/hmcts","followers_url":"https://api.github.com/users/hmcts/followers","following_url":"https://api.github.com/users/hmcts/following{/other_user}","gists_url":"https://api.github.com/users/hmcts/gists{/gist_id}","starred_url":"https://api.github.com/users/hmcts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmcts/subscriptions","organizations_url":"https://api.github.com/users/hmcts/orgs","repos_url":"https://api.github.com/users/hmcts/repos","events_url":"https://api.github.com/users/hmcts/events{/privacy}","received_events_url":"https://api.github.com/users/hmcts/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/hmcts/div-case-orchestration-service","description":"Divorce service to handle case orchestration","fork":false,"url":"https://api.github.com/repos/hmcts/div-case-orchestration-service","forks_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/forks","keys_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/teams","hooks_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/hooks","issue_events_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/issues/events{/number}","events_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/events","assignees_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/assignees{/user}","branches_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/branches{/branch}","tags_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/tags","blobs_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/git/refs{/sha}","trees_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/statuses/{sha}","languages_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/languages","stargazers_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/stargazers","contributors_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/contributors","subscribers_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/subscribers","subscription_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/subscription","commits_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/commits{/sha}","git_commits_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/git/commits{/sha}","comments_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/comments{/number}","issue_comment_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/issues/comments{/number}","contents_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/contents/{+path}","compare_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/merges","archive_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/downloads","issues_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/issues{/number}","pulls_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/pulls{/number}","milestones_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/milestones{/number}","notifications_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/labels{/name}","releases_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/releases{/id}","deployments_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/deployments","created_at":"2018-07-27T14:00:58Z","updated_at":"2018-10-12T11:05:55Z","pushed_at":"2018-10-12T15:57:49Z","git_url":"git://github.com/hmcts/div-case-orchestration-service.git","ssh_url":"git@github.com:hmcts/div-case-orchestration-service.git","clone_url":"https://github.com/hmcts/div-case-orchestration-service.git","svn_url":"https://github.com/hmcts/div-case-orchestration-service","homepage":null,"size":1700,"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":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":1,"default_branch":"master"}},"base":{"label":"hmcts:master","ref":"master","sha":"8cb8649fbd6cf9296f7e1bf73268d1896a571d98","user":{"login":"hmcts","id":22817111,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyODE3MTEx","avatar_url":"https://avatars1.githubusercontent.com/u/22817111?v=4","gravatar_id":"","url":"https://api.github.com/users/hmcts","html_url":"https://github.com/hmcts","followers_url":"https://api.github.com/users/hmcts/followers","following_url":"https://api.github.com/users/hmcts/following{/other_user}","gists_url":"https://api.github.com/users/hmcts/gists{/gist_id}","starred_url":"https://api.github.com/users/hmcts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmcts/subscriptions","organizations_url":"https://api.github.com/users/hmcts/orgs","repos_url":"https://api.github.com/users/hmcts/repos","events_url":"https://api.github.com/users/hmcts/events{/privacy}","received_events_url":"https://api.github.com/users/hmcts/received_events","type":"Organization","site_admin":false},"repo":{"id":142584193,"node_id":"MDEwOlJlcG9zaXRvcnkxNDI1ODQxOTM=","name":"div-case-orchestration-service","full_name":"hmcts/div-case-orchestration-service","private":false,"owner":{"login":"hmcts","id":22817111,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyODE3MTEx","avatar_url":"https://avatars1.githubusercontent.com/u/22817111?v=4","gravatar_id":"","url":"https://api.github.com/users/hmcts","html_url":"https://github.com/hmcts","followers_url":"https://api.github.com/users/hmcts/followers","following_url":"https://api.github.com/users/hmcts/following{/other_user}","gists_url":"https://api.github.com/users/hmcts/gists{/gist_id}","starred_url":"https://api.github.com/users/hmcts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmcts/subscriptions","organizations_url":"https://api.github.com/users/hmcts/orgs","repos_url":"https://api.github.com/users/hmcts/repos","events_url":"https://api.github.com/users/hmcts/events{/privacy}","received_events_url":"https://api.github.com/users/hmcts/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/hmcts/div-case-orchestration-service","description":"Divorce service to handle case orchestration","fork":false,"url":"https://api.github.com/repos/hmcts/div-case-orchestration-service","forks_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/forks","keys_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/teams","hooks_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/hooks","issue_events_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/issues/events{/number}","events_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/events","assignees_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/assignees{/user}","branches_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/branches{/branch}","tags_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/tags","blobs_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/git/refs{/sha}","trees_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/statuses/{sha}","languages_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/languages","stargazers_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/stargazers","contributors_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/contributors","subscribers_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/subscribers","subscription_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/subscription","commits_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/commits{/sha}","git_commits_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/git/commits{/sha}","comments_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/comments{/number}","issue_comment_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/issues/comments{/number}","contents_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/contents/{+path}","compare_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/merges","archive_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/downloads","issues_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/issues{/number}","pulls_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/pulls{/number}","milestones_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/milestones{/number}","notifications_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/labels{/name}","releases_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/releases{/id}","deployments_url":"https://api.github.com/repos/hmcts/div-case-orchestration-service/deployments","created_at":"2018-07-27T14:00:58Z","updated_at":"2018-10-12T11:05:55Z","pushed_at":"2018-10-12T15:57:49Z","git_url":"git://github.com/hmcts/div-case-orchestration-service.git","ssh_url":"git@github.com:hmcts/div-case-orchestration-service.git","clone_url":"https://github.com/hmcts/div-case-orchestration-service.git","svn_url":"https://github.com/hmcts/div-case-orchestration-service","homepage":null,"size":1700,"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":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hmcts/div-case-orchestration-service/pulls/46"},"html":{"href":"https://github.com/hmcts/div-case-orchestration-service/pull/46"},"issue":{"href":"https://api.github.com/repos/hmcts/div-case-orchestration-service/issues/46"},"comments":{"href":"https://api.github.com/repos/hmcts/div-case-orchestration-service/issues/46/comments"},"review_comments":{"href":"https://api.github.com/repos/hmcts/div-case-orchestration-service/pulls/46/comments"},"review_comment":{"href":"https://api.github.com/repos/hmcts/div-case-orchestration-service/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hmcts/div-case-orchestration-service/pulls/46/commits"},"statuses":{"href":"https://api.github.com/repos/hmcts/div-case-orchestration-service/statuses/76ebd3c1c4e037b9a6ec86b2023b613522ad4273"}},"author_association":"NONE"}}
{"actor":{"display_login":"mthava"}}