Feat: add healthz
All checks were successful
Go test / run-go-test (push) Successful in 31s
Go test / run-go-vet (push) Successful in 5s
Go test / cleanup-go-test (push) Successful in 4s

This commit is contained in:
2025-12-09 00:55:08 +08:00
parent 62c4d38e9c
commit ad4fba1093
5 changed files with 51 additions and 11 deletions

View File

@@ -4,12 +4,8 @@ import (
"net/http"
"net/url"
"testing"
"github.com/go-resty/resty/v2"
)
var client *resty.Client
type genLoginUrlPayload struct {
LoginUrl string `json:"loginUrl"`
}
@@ -19,8 +15,6 @@ type loginPayload struct {
}
func Test_01_Login(t *testing.T) {
client = resty.New()
t.Run("check preshared key failed", func(t *testing.T) {
resp, err := client.R().
SetBody(`{"userId": "testuser1"}`).