mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-24 07:52:14 +03:00
379b812674
Co-authored-by: Aravind K P <8335904+scriptonist@users.noreply.github.com> GitOrigin-RevId: d63e0452fdb97a8f6c4e921467fc2a1de50639a1
33 lines
575 B
Go
33 lines
575 B
Go
package testutil
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
"runtime"
|
|
)
|
|
|
|
// this can be overridden by ldflags
|
|
var (
|
|
HasuraVersion = "main-225403eda"
|
|
DockerSwitchIP = func() string {
|
|
switch runtime.GOOS {
|
|
case "darwin", "windows":
|
|
return "host.docker.internal"
|
|
default:
|
|
return "172.17.0.1"
|
|
}
|
|
return ""
|
|
}()
|
|
Hostname = "localhost"
|
|
BaseURL = fmt.Sprintf("http://%s", Hostname)
|
|
MSSQLPassword = "MSSQLp@ssw0rd"
|
|
SkipDockerTests = func() bool {
|
|
if len(os.Getenv("CI")) > 0 {
|
|
// skip in CI
|
|
return true
|
|
}
|
|
return false
|
|
}()
|
|
CLIBinaryPath = "hasura"
|
|
)
|