chore: remove upgrade from dradd tests

This commit is contained in:
Denis Gukov 2021-08-26 12:03:04 +05:00
parent ddea297ef1
commit 6ab1dd7d89
2 changed files with 17 additions and 17 deletions

View File

@ -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.

View File

@ -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: