MCPcopy
hub / github.com/cloudfoundry/cli / ClientCredentialsTestMode

Function ClientCredentialsTestMode

integration/helpers/client_credentials.go:43–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41}
42
43func ClientCredentialsTestMode() bool {
44 envVar := os.Getenv("CF_INT_CLIENT_CREDENTIALS_TEST_MODE")
45
46 if envVar == "" {
47 return false
48 }
49
50 testMode, err := strconv.ParseBool(envVar)
51 Expect(err).ToNot(HaveOccurred(), "CF_INT_CLIENT_CREDENTIALS_TEST_MODE should be boolean")
52
53 return testMode
54}

Callers 5

LoginCFFunction · 0.85
GetCredentialsFunction · 0.85

Calls

no outgoing calls

Tested by 1