()
| 41 | } |
| 42 | |
| 43 | func 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 | } |
no outgoing calls