swap backend to rust

This commit is contained in:
2025-07-16 16:43:24 +01:00
parent a674f5641d
commit 7dc46b6ad0
16 changed files with 2191 additions and 42 deletions

View File

@ -0,0 +1,21 @@
use reqwest::StatusCode;
#[tokio::test]
async fn test_healthcheck() -> reqwest::Result<()> {
let response = reqwest::get("http://localhost:7000/healthcheck").await?;
assert_eq!(response.status(), StatusCode::OK);
assert_eq!(response.text().await?, r#"{"healthy":true}"#);
Ok(())
}
#[tokio::test]
async fn test_healthcheck2() -> reqwest::Result<()> {
let response = reqwest::get("http://localhost:7000/healthcheck").await?;
assert_eq!(response.status(), StatusCode::OK);
assert_eq!(response.text().await?, r#"{"healthy":true}"#);
Ok(())
}

View File

@ -1,7 +0,0 @@
package tests
import "testing"
func TestHello(t *testing.T) {
}