-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* tests (health endpoint): integrate test data * tests (health endpoint): integrate test data * tests (health endpoint): integrate test data * tests (health endpoint): simplify header response handling * docs: Update README Co-authored-by: André Kilchenmann <[email protected]>
- Loading branch information
1 parent
b62ab74
commit f9914db
Showing
10 changed files
with
119 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
"use strict"; | ||
|
||
const fs = require('fs-extra'); | ||
|
||
let pathToGeneratedCode; | ||
|
||
// expect three args | ||
if (process.argv.length !== 3) { | ||
console.error("Usage: npm run integrate-system-code <generated client code>"); | ||
process.exit(1); | ||
} else { | ||
pathToGeneratedCode = process.argv[2]; | ||
if (!fs.existsSync(pathToGeneratedCode)) { | ||
console.error("Specified path to generated client code is not valid"); | ||
process.exit(1); | ||
} | ||
} | ||
|
||
fs.copySync(pathToGeneratedCode + "/system", "./test/data/api/system"); | ||
|
||
fs.moveSync('./test/data/api/system/health/response-headers.json', './test/data/api/system/health/response-headers.txt') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"message":"Application is in maintenance mode. Please retry later.","name":"AppState","severity":"non fatal","status":"unhealthy"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Server: webapi/v13.0.0-rc.21 akka-http/10.1.12 | ||
Date: Wed, 21 Oct 2020 23:41:38 GMT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"message":"Application is healthy","name":"AppState","severity":"non fatal","status":"healthy"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"message":"Stopped. Please retry later.","name":"AppState","severity":"non fatal","status":"unhealthy"} |