From 31513beabf7865de5896f57666ab377b570eba83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Schro=CC=88ter?= Date: Tue, 22 Sep 2020 16:34:27 +0200 Subject: [PATCH] Add description field to e2e tests --- .../duel/getById2User2_200.json.template | 1 + .../duel/getFullRound1User3_200.json.template | 3 ++ .../duel/getFullRound2User2_200.json | 53 +++++++++++++++---- .../responses/duel/getPoolUser1Duel1_200.json | 1 + .../responses/duel/getPoolUser4Duel3_200.json | 3 +- test/e2e/responses/duel/getUser2_200.json | 3 +- .../responses/duel/getUser3_200.json.template | 1 + .../responses/duel/patchPoolDuel1_200.json | 3 +- .../getDuelFinished_200.json.template | 2 + .../getDuelOneRound_200.json.template | 1 + .../getDuelRound_200.json.template | 1 + .../getDuelTwoRound_200.json.template | 2 + .../playFullDuel/patchPool1_200.json.template | 1 + .../playFullDuel/patchPool2_200.json.template | 2 + test/e2e/responses/pool/get_200.json.template | 5 +- 15 files changed, 69 insertions(+), 13 deletions(-) diff --git a/test/e2e/responses/duel/getById2User2_200.json.template b/test/e2e/responses/duel/getById2User2_200.json.template index 266f25f..4b2a04e 100644 --- a/test/e2e/responses/duel/getById2User2_200.json.template +++ b/test/e2e/responses/duel/getById2User2_200.json.template @@ -83,6 +83,7 @@ "id":1, "name":"pool1", "code":"p1", + "description":"<>", "image":"<>" }, "is-answered":false, diff --git a/test/e2e/responses/duel/getFullRound1User3_200.json.template b/test/e2e/responses/duel/getFullRound1User3_200.json.template index 048ccfc..50aabcf 100644 --- a/test/e2e/responses/duel/getFullRound1User3_200.json.template +++ b/test/e2e/responses/duel/getFullRound1User3_200.json.template @@ -5,6 +5,7 @@ "id":1, "name":"pool1", "code":"p1", + "description":"<>", "image":"<>" }, "is-answered":true, @@ -34,6 +35,7 @@ "id":1, "name":"pool1", "code":"p1", + "description":"<>", "image":"<>" }, "answer":{ @@ -63,6 +65,7 @@ "id":1, "name":"pool1", "code":"p1", + "description":"<>", "image":"<>" }, "answer":{ diff --git a/test/e2e/responses/duel/getFullRound2User2_200.json b/test/e2e/responses/duel/getFullRound2User2_200.json index ff5cf6c..5855bc5 100644 --- a/test/e2e/responses/duel/getFullRound2User2_200.json +++ b/test/e2e/responses/duel/getFullRound2User2_200.json @@ -5,6 +5,7 @@ "id": 1, "name": "pool1", "code": "p1", + "description": "<>", "image": "<>" }, "is-answered": false, @@ -34,6 +35,7 @@ "id": 1, "name": "pool1", "code": "p1", + "description": "<>", "image": "<>" }, "answer": { @@ -41,10 +43,26 @@ "type": "option", "option-answer": { "options": [ - { "id": "<>", "correct": true, "text": "A" }, - { "id": "<>", "correct": false, "text": "B" }, - { "id": "<>", "correct": false, "text": "C" }, - { "id": "<>", "correct": false, "text": "D" } + { + "id": "<>", + "correct": true, + "text": "A" + }, + { + "id": "<>", + "correct": false, + "text": "B" + }, + { + "id": "<>", + "correct": false, + "text": "C" + }, + { + "id": "<>", + "correct": false, + "text": "D" + } ] }, "text-answer": null @@ -62,6 +80,7 @@ "id": 1, "name": "pool1", "code": "p1", + "description": "<>", "image": "<>" }, "answer": { @@ -69,10 +88,26 @@ "type": "option", "option-answer": { "options": [ - { "id": "<>", "correct": true, "text": "A" }, - { "id": "<>", "correct": false, "text": "B" }, - { "id": "<>", "correct": false, "text": "C" }, - { "id": "<>", "correct": false, "text": "D" } + { + "id": "<>", + "correct": true, + "text": "A" + }, + { + "id": "<>", + "correct": false, + "text": "B" + }, + { + "id": "<>", + "correct": false, + "text": "C" + }, + { + "id": "<>", + "correct": false, + "text": "D" + } ] }, "text-answer": null @@ -82,4 +117,4 @@ } } ] -} +} \ No newline at end of file diff --git a/test/e2e/responses/duel/getPoolUser1Duel1_200.json b/test/e2e/responses/duel/getPoolUser1Duel1_200.json index 3454b0a..e1ed63b 100644 --- a/test/e2e/responses/duel/getPoolUser1Duel1_200.json +++ b/test/e2e/responses/duel/getPoolUser1Duel1_200.json @@ -3,6 +3,7 @@ "id": 1, "name": "pool1", "code": "p1", + "description": "", "image": "1" } ] \ No newline at end of file diff --git a/test/e2e/responses/duel/getPoolUser4Duel3_200.json b/test/e2e/responses/duel/getPoolUser4Duel3_200.json index ce1e4c3..48bb72d 100644 --- a/test/e2e/responses/duel/getPoolUser4Duel3_200.json +++ b/test/e2e/responses/duel/getPoolUser4Duel3_200.json @@ -3,6 +3,7 @@ "id": 1, "name": "pool1", "code": "p1", + "description": "", "image": 1 } -] +] \ No newline at end of file diff --git a/test/e2e/responses/duel/getUser2_200.json b/test/e2e/responses/duel/getUser2_200.json index a81c6ae..fd9e10d 100644 --- a/test/e2e/responses/duel/getUser2_200.json +++ b/test/e2e/responses/duel/getUser2_200.json @@ -209,6 +209,7 @@ "id": 1, "name": "pool1", "code": "p1", + "description": "", "image": 1 }, "is-answered": false, @@ -237,4 +238,4 @@ } ] } -] +] \ No newline at end of file diff --git a/test/e2e/responses/duel/getUser3_200.json.template b/test/e2e/responses/duel/getUser3_200.json.template index 3a445e6..1018490 100644 --- a/test/e2e/responses/duel/getUser3_200.json.template +++ b/test/e2e/responses/duel/getUser3_200.json.template @@ -107,6 +107,7 @@ "id":1, "name":"pool1", "code":"p1", + "description":"<>", "image":"<>" }, "is-answered":true, diff --git a/test/e2e/responses/duel/patchPoolDuel1_200.json b/test/e2e/responses/duel/patchPoolDuel1_200.json index 5e64ca4..43fa9ad 100644 --- a/test/e2e/responses/duel/patchPoolDuel1_200.json +++ b/test/e2e/responses/duel/patchPoolDuel1_200.json @@ -106,6 +106,7 @@ "id": 1, "name": "pool1", "code": "p1", + "description": "<>", "image": "<>" }, "is-answered": false, @@ -133,4 +134,4 @@ } } ] -} +} \ No newline at end of file diff --git a/test/e2e/responses/duel/playFullDuel/getDuelFinished_200.json.template b/test/e2e/responses/duel/playFullDuel/getDuelFinished_200.json.template index 576b9ce..b94562a 100644 --- a/test/e2e/responses/duel/playFullDuel/getDuelFinished_200.json.template +++ b/test/e2e/responses/duel/playFullDuel/getDuelFinished_200.json.template @@ -62,6 +62,7 @@ "id": %d, "name":"<>", "code":"<>", + "description":"<>", "image":"<>" }, "is-answered":true, @@ -79,6 +80,7 @@ "id":%d, "name":"<>", "code":"<>", + "description":"<>", "image":"<>" }, "is-answered":true, diff --git a/test/e2e/responses/duel/playFullDuel/getDuelOneRound_200.json.template b/test/e2e/responses/duel/playFullDuel/getDuelOneRound_200.json.template index 4184372..072030f 100644 --- a/test/e2e/responses/duel/playFullDuel/getDuelOneRound_200.json.template +++ b/test/e2e/responses/duel/playFullDuel/getDuelOneRound_200.json.template @@ -62,6 +62,7 @@ "id":%v, "name":"<>", "code":"<>", + "description":"<>", "image":"<>" }, "is-answered":%v, diff --git a/test/e2e/responses/duel/playFullDuel/getDuelRound_200.json.template b/test/e2e/responses/duel/playFullDuel/getDuelRound_200.json.template index aaf40b7..a1c2c14 100644 --- a/test/e2e/responses/duel/playFullDuel/getDuelRound_200.json.template +++ b/test/e2e/responses/duel/playFullDuel/getDuelRound_200.json.template @@ -5,6 +5,7 @@ "id":%d, "name":"<>", "code":"<>", + "description":"<>", "image":"<>" }, "is-answered":%v, diff --git a/test/e2e/responses/duel/playFullDuel/getDuelTwoRound_200.json.template b/test/e2e/responses/duel/playFullDuel/getDuelTwoRound_200.json.template index 691351f..62bc501 100644 --- a/test/e2e/responses/duel/playFullDuel/getDuelTwoRound_200.json.template +++ b/test/e2e/responses/duel/playFullDuel/getDuelTwoRound_200.json.template @@ -62,6 +62,7 @@ "id": %v, "name":"<>", "code":"<>", + "description":"<>", "image":"<>" }, "is-answered":true, @@ -79,6 +80,7 @@ "id": %v, "name":"<>", "code":"<>", + "description":"<>", "image":"<>" }, "is-answered": %v, diff --git a/test/e2e/responses/duel/playFullDuel/patchPool1_200.json.template b/test/e2e/responses/duel/playFullDuel/patchPool1_200.json.template index 644555f..bcabf50 100644 --- a/test/e2e/responses/duel/playFullDuel/patchPool1_200.json.template +++ b/test/e2e/responses/duel/playFullDuel/patchPool1_200.json.template @@ -62,6 +62,7 @@ "id":%v, "name":"<>", "code":"<>", + "description":"<>", "image":"<>" }, "is-answered":%v, diff --git a/test/e2e/responses/duel/playFullDuel/patchPool2_200.json.template b/test/e2e/responses/duel/playFullDuel/patchPool2_200.json.template index 752b1b2..bdf95f9 100644 --- a/test/e2e/responses/duel/playFullDuel/patchPool2_200.json.template +++ b/test/e2e/responses/duel/playFullDuel/patchPool2_200.json.template @@ -62,6 +62,7 @@ "id":%v, "name":"<>", "code":"<>", + "description":"<>", "image":"<>" }, "is-answered":%v, @@ -79,6 +80,7 @@ "id":%v, "name":"<>", "code":"<>", + "description":"<>", "image":"<>" }, "is-answered":%v, diff --git a/test/e2e/responses/pool/get_200.json.template b/test/e2e/responses/pool/get_200.json.template index 687d223..c1ec3a6 100644 --- a/test/e2e/responses/pool/get_200.json.template +++ b/test/e2e/responses/pool/get_200.json.template @@ -2,7 +2,8 @@ { "id":1, "name":"pool1", - "code":"p1", + "code":"p1", + "description":"<>", "image":"<>", "selected":%v }, @@ -10,6 +11,7 @@ "id":2, "name":"pool2", "code":"p2", + "description":"<>", "image":"<>", "selected":%v }, @@ -17,6 +19,7 @@ "id":3, "name":"pool3", "code":"p3", + "description":"<>", "image":"<>", "selected":%v } -- GitLab