LoginCFWithClientCredentials logs into the CLI using client credentials from the CF_INT_CLIENT_ID and CF_INT_CLIENT_SECRET environment variables and returns the client ID. If these environment variables are not set, it skips the current test.
()
| 91 | // CF_INT_CLIENT_SECRET environment variables and returns the client ID. If these environment variables |
| 92 | // are not set, it skips the current test. |
| 93 | func LoginCFWithClientCredentials() string { |
| 94 | username, password := SkipIfClientCredentialsNotSet() |
| 95 | env := map[string]string{ |
| 96 | "CF_USERNAME": username, |
| 97 | "CF_PASSWORD": password, |
| 98 | } |
| 99 | Eventually(CFWithEnv(env, "auth", "--client-credentials")).Should(Exit(0)) |
| 100 | |
| 101 | return username |
| 102 | } |
| 103 | |
| 104 | // GetCredentials returns back the credentials for the user or client to authenticate with Cloud Foundry. |
| 105 | func GetCredentials() (string, string) { |
no test coverage detected