From abd17e08c99c1e550d421c52a673c9641f8fc28b Mon Sep 17 00:00:00 2001 From: Jasper Date: Wed, 17 Mar 2021 11:34:01 +0800 Subject: [PATCH] Add more field to NoteEvent test json --- src/test/resources/org/gitlab4j/api/note-commit-event.json | 2 ++ src/test/resources/org/gitlab4j/api/note-issue-event.json | 2 ++ .../resources/org/gitlab4j/api/note-merge-request-event.json | 2 ++ src/test/resources/org/gitlab4j/api/note-snippet-event.json | 2 ++ 4 files changed, 8 insertions(+) diff --git a/src/test/resources/org/gitlab4j/api/note-commit-event.json b/src/test/resources/org/gitlab4j/api/note-commit-event.json index d65e4320..828d831a 100644 --- a/src/test/resources/org/gitlab4j/api/note-commit-event.json +++ b/src/test/resources/org/gitlab4j/api/note-commit-event.json @@ -30,6 +30,8 @@ "object_attributes": { "id": 1243, "note": "This is a commit comment. How does this work?", + "discussion_id": "56e2b4210419aed077d47ca2dc00551c7c4ac882", + "type": "DiscussionNote", "noteable_type": "Commit", "author_id": 1, "created_at": "2015-05-17T18:08:09Z", diff --git a/src/test/resources/org/gitlab4j/api/note-issue-event.json b/src/test/resources/org/gitlab4j/api/note-issue-event.json index f707d8bf..fcbaf738 100644 --- a/src/test/resources/org/gitlab4j/api/note-issue-event.json +++ b/src/test/resources/org/gitlab4j/api/note-issue-event.json @@ -29,6 +29,8 @@ "object_attributes": { "id": 1241, "note": "Hello world", + "discussion_id": "56e2b4210419aed077d47ca2dc00551c7c4ac882", + "type": "DiscussionNote", "noteable_type": "Issue", "author_id": 1, "created_at": "2015-05-17T17:06:40Z", diff --git a/src/test/resources/org/gitlab4j/api/note-merge-request-event.json b/src/test/resources/org/gitlab4j/api/note-merge-request-event.json index 936bd5bb..82c2b73a 100644 --- a/src/test/resources/org/gitlab4j/api/note-merge-request-event.json +++ b/src/test/resources/org/gitlab4j/api/note-merge-request-event.json @@ -30,6 +30,8 @@ "object_attributes": { "id": 1244, "note": "This MR needs work.", + "discussion_id": "56e2b4210419aed077d47ca2dc00551c7c4ac882", + "type": "DiscussionNote", "noteable_type": "MergeRequest", "author_id": 1, "created_at": "2015-05-17T18:21:36Z", diff --git a/src/test/resources/org/gitlab4j/api/note-snippet-event.json b/src/test/resources/org/gitlab4j/api/note-snippet-event.json index d46a7c90..ada81b53 100644 --- a/src/test/resources/org/gitlab4j/api/note-snippet-event.json +++ b/src/test/resources/org/gitlab4j/api/note-snippet-event.json @@ -30,6 +30,8 @@ "object_attributes": { "id": 1245, "note": "Is this snippet doing what it's supposed to be doing?", + "discussion_id": "56e2b4210419aed077d47ca2dc00551c7c4ac882", + "type": "DiscussionNote", "noteable_type": "Snippet", "author_id": 1, "created_at": "2015-05-17T18:35:50Z", -- GitLab