-
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.
* first route working * user migration * migrate validator endpoints * signing minus subscribe to me * migrate unsafe * subscribe to me * add tracing * heatlhz tests * unsafe tests * validator tests * signing_cli tests * signing tests * add cors * unhardcode endpoint * add warn unsafe * refactor * refactor tests * bump ed25519 * lint * remove rocket * fix unwrap issue * fix scripts --------- Co-authored-by: jesse <jesse@entropy.wxy>
- Loading branch information
1 parent
ba2261e
commit ee0493c
Showing
33 changed files
with
920 additions
and
1,165 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
use rocket::http::Status; | ||
use axum::http::StatusCode; | ||
|
||
#[get("/healthz")] | ||
pub fn healthz() -> Status { Status::Ok } | ||
pub async fn healthz() -> StatusCode { StatusCode::OK } |
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 |
---|---|---|
@@ -1,14 +1,15 @@ | ||
use axum::http::StatusCode; | ||
use kvdb::clean_tests; | ||
use rocket::http::Status; | ||
use serial_test::serial; | ||
|
||
use crate::helpers::tests::setup_client; | ||
#[rocket::async_test] | ||
#[tokio::test] | ||
#[serial] | ||
async fn health() { | ||
clean_tests(); | ||
let client = setup_client().await; | ||
let response = client.get("/healthz").dispatch().await; | ||
assert_eq!(response.status(), Status::Ok); | ||
setup_client().await; | ||
let client = reqwest::Client::new(); | ||
let response = client.get("http://127.0.0.1:3001/healthz").send().await.unwrap(); | ||
assert_eq!(response.status(), StatusCode::OK); | ||
clean_tests(); | ||
} |
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
Oops, something went wrong.