From 0d3189b3b05b7c079cf986a1fee17de31c8d77a3 Mon Sep 17 00:00:00 2001 From: novokrest Date: Sat, 9 Jun 2018 22:07:09 +0300 Subject: [PATCH] front: Fix status and body of response in fixtures for successful requests. --- zulip_bots/zulip_bots/bots/front/fixtures/archive.json | 9 ++------- zulip_bots/zulip_bots/bots/front/fixtures/comment.json | 9 ++------- zulip_bots/zulip_bots/bots/front/fixtures/delete.json | 9 ++------- zulip_bots/zulip_bots/bots/front/fixtures/open.json | 9 ++------- zulip_bots/zulip_bots/bots/front/fixtures/spam.json | 9 ++------- 5 files changed, 10 insertions(+), 35 deletions(-) diff --git a/zulip_bots/zulip_bots/bots/front/fixtures/archive.json b/zulip_bots/zulip_bots/bots/front/fixtures/archive.json index 1ccfae8..ff69e21 100644 --- a/zulip_bots/zulip_bots/bots/front/fixtures/archive.json +++ b/zulip_bots/zulip_bots/bots/front/fixtures/archive.json @@ -9,13 +9,8 @@ "status": "archived" } }, - "response": { - "error": { - "title": "Unauthenticated", - "message": "Provided token is not a JSON Web Token" - } - }, + "response": "", "response-headers": { - "Status": "401 Unauthorized" + "status": 200 } } diff --git a/zulip_bots/zulip_bots/bots/front/fixtures/comment.json b/zulip_bots/zulip_bots/bots/front/fixtures/comment.json index f4caa0f..40d950d 100644 --- a/zulip_bots/zulip_bots/bots/front/fixtures/comment.json +++ b/zulip_bots/zulip_bots/bots/front/fixtures/comment.json @@ -10,13 +10,8 @@ "body": "@bender, I thought you were supposed to be cooking for this party." } }, - "response": { - "error": { - "title": "Unauthenticated", - "message": "Provided token is not a JSON Web Token" - } - }, + "response": "", "response-headers": { - "Status": "401 Unauthorized" + "status": 200 } } diff --git a/zulip_bots/zulip_bots/bots/front/fixtures/delete.json b/zulip_bots/zulip_bots/bots/front/fixtures/delete.json index 89a4a77..8674713 100644 --- a/zulip_bots/zulip_bots/bots/front/fixtures/delete.json +++ b/zulip_bots/zulip_bots/bots/front/fixtures/delete.json @@ -9,13 +9,8 @@ "status": "deleted" } }, - "response": { - "error": { - "title": "Unauthenticated", - "message": "Provided token is not a JSON Web Token" - } - }, + "response": "", "response-headers": { - "Status": "401 Unauthorized" + "status": 200 } } diff --git a/zulip_bots/zulip_bots/bots/front/fixtures/open.json b/zulip_bots/zulip_bots/bots/front/fixtures/open.json index 4415959..3e78789 100644 --- a/zulip_bots/zulip_bots/bots/front/fixtures/open.json +++ b/zulip_bots/zulip_bots/bots/front/fixtures/open.json @@ -9,13 +9,8 @@ "status": "open" } }, - "response": { - "error": { - "title": "Unauthenticated", - "message": "Provided token is not a JSON Web Token" - } - }, + "response": "", "response-headers": { - "Status": "401 Unauthorized" + "status": 200 } } diff --git a/zulip_bots/zulip_bots/bots/front/fixtures/spam.json b/zulip_bots/zulip_bots/bots/front/fixtures/spam.json index 29e55bf..6c76370 100644 --- a/zulip_bots/zulip_bots/bots/front/fixtures/spam.json +++ b/zulip_bots/zulip_bots/bots/front/fixtures/spam.json @@ -9,13 +9,8 @@ "status": "spam" } }, - "response": { - "error": { - "title": "Unauthenticated", - "message": "Provided token is not a JSON Web Token" - } - }, + "response": "", "response-headers": { - "Status": "401 Unauthorized" + "status": 200 } }