From 6ab1dd7d893bb397de04e455f504f5cda847bdde Mon Sep 17 00:00:00 2001 From: Denis Gukov Date: Thu, 26 Aug 2021 12:03:04 +0500 Subject: [PATCH] chore: remove upgrade from dradd tests --- .dredd/hooks/main.go | 4 ++-- api-docs.yml | 30 +++++++++++++++--------------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/.dredd/hooks/main.go b/.dredd/hooks/main.go index a264592b..4e013b3f 100644 --- a/.dredd/hooks/main.go +++ b/.dredd/hooks/main.go @@ -18,9 +18,9 @@ var skipTests = []string{ "/api/ws > Websocket handler > 200 > application/json", "authentication > /api/auth/login > Performs Login > 204 > application/json", "authentication > /api/auth/logout > Destroys current session > 204 > application/json", - "/api/upgrade > Upgrade the server > 200 > application/json", + //"/api/upgrade > Upgrade the server > 200 > application/json", // TODO - Skipping this while we work out how to get a 204 response from the api for testing - "/api/upgrade > Check if new updates available and fetch /info > 204 > application/json", + //"/api/upgrade > Check if new updates available and fetch /info > 204 > application/json", } // Dredd expects that you have already set up the database and run all migrations before it begins. diff --git a/api-docs.yml b/api-docs.yml index f376fdab..fc17ce60 100644 --- a/api-docs.yml +++ b/api-docs.yml @@ -488,21 +488,21 @@ paths: schema: $ref: "#/definitions/InfoType" - /upgrade: - get: - summary: Check if new updates available and fetch /info - responses: - 204: - description: no update - 200: - description: ok - schema: - $ref: "#/definitions/InfoType" - post: - summary: Upgrade the server - responses: - 200: - description: Server binary was replaced by new version, server has shut down. +# /upgrade: +# get: +# summary: Check if new updates available and fetch /info +# responses: +# 204: +# description: no update +# 200: +# description: ok +# schema: +# $ref: "#/definitions/InfoType" +# post: +# summary: Upgrade the server +# responses: +# 200: +# description: Server binary was replaced by new version, server has shut down. # Authentication /auth/login: