This repository has been archived by the owner on Feb 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix substrate healthcheck The substrate promise `isReadyOrError` when resolved is never re-evaluated. Therefore the previous implmentation didn't work. This change instead uses the `isConnected` property which is maintained and updated by the library * Wait for first connection or error * Remove only on test * Add tests for healthcheck service down * Update readme and helm chart with new envs * Move responses to fixture * Fix quotes
- Loading branch information
1 parent
bd808a3
commit 55d0862
Showing
11 changed files
with
209 additions
and
91 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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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,47 @@ | ||
const { API_VERSION } = require('../../app/env') | ||
|
||
const responses = { | ||
ok: { | ||
code: 200, | ||
body: { | ||
status: 'ok', | ||
version: API_VERSION, | ||
details: { | ||
api: { | ||
status: 'ok', | ||
detail: { | ||
chain: 'Development', | ||
runtime: { | ||
name: 'dscp', | ||
versions: { | ||
authoring: 1, | ||
impl: 1, | ||
spec: 300, | ||
transaction: 1, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
down: { | ||
code: 503, | ||
body: { | ||
status: 'down', | ||
version: API_VERSION, | ||
details: { | ||
api: { | ||
status: 'down', | ||
detail: { | ||
message: 'Cannot connect to substrate node', | ||
}, | ||
}, | ||
}, | ||
}, | ||
}, | ||
} | ||
|
||
module.exports = { | ||
responses, | ||
} |
Oops, something went wrong.