mirror of
https://github.com/hatchet-dev/hatchet.git
synced 2026-02-22 08:58:40 -06:00
18 lines
580 B
Go
18 lines
580 B
Go
package testutils
|
|
|
|
import (
|
|
"os"
|
|
"testing"
|
|
)
|
|
|
|
func Prepare(t *testing.T) {
|
|
t.Helper()
|
|
|
|
_ = os.Setenv("HATCHET_CLIENT_TENANT_ID", "707d0855-80ab-4e1f-a156-f1c4546cbf52")
|
|
_ = os.Setenv("DATABASE_URL", "postgresql://hatchet:hatchet@127.0.0.1:5431/hatchet")
|
|
_ = os.Setenv("HATCHET_CLIENT_TLS_ROOT_CA_FILE", "../../hack/dev/certs/ca.cert")
|
|
_ = os.Setenv("HATCHET_CLIENT_TLS_CERT_FILE", "../../hack/dev/certs/client-worker.pem")
|
|
_ = os.Setenv("HATCHET_CLIENT_TLS_KEY_FILE", "../../hack/dev/certs/client-worker.key")
|
|
_ = os.Setenv("HATCHET_CLIENT_TLS_SERVER_NAME", "cluster")
|
|
}
|