diff --git a/.github/workflows/build-and-deploy-rust.yml b/.github/workflows/build-and-deploy-rust.yml index 518cfe7..58a5a71 100644 --- a/.github/workflows/build-and-deploy-rust.yml +++ b/.github/workflows/build-and-deploy-rust.yml @@ -45,6 +45,9 @@ jobs: run: | sleep 5 + # Health check + curl -f http://localhost:8080/vss/health + # Put request with store='storeId' and key=k1 hex=0A0773746F726549641A150A026B3110FFFFFFFFFFFFFFFFFF011A046B317631 curl -f --data-binary "$(echo "$hex" | xxd -r -p)" http://localhost:8080/vss/putObjects diff --git a/rust/server/src/vss_service.rs b/rust/server/src/vss_service.rs index 55e52c2..31b6faa 100644 --- a/rust/server/src/vss_service.rs +++ b/rust/server/src/vss_service.rs @@ -80,6 +80,10 @@ impl Service> for VssService { let prefix_stripped_path = path.strip_prefix(BASE_PATH_PREFIX).unwrap_or_default(); match prefix_stripped_path { + "/health" => Ok(Response::builder() + .status(StatusCode::OK) + .body(Full::new(Bytes::new())) + .unwrap()), "/getObject" => { handle_request( store,