mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-19 21:41:44 +03:00
31 lines
551 B
Go
31 lines
551 B
Go
package testutil
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
"runtime"
|
|
)
|
|
|
|
// this can be overridden by ldflags
|
|
var (
|
|
HasuraVersion = "main-10df859cf"
|
|
DockerSwitchIP = func() string {
|
|
switch runtime.GOOS {
|
|
case "darwin", "windows":
|
|
return "host.docker.internal"
|
|
}
|
|
return "172.17.0.1"
|
|
}()
|
|
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"
|
|
)
|