LoginCF logs into the CLI using the username and password from the CF_INT_USERNAME and CF_INT_PASSWORD environment variables, respectively, defaulting to "admin" for each if either is not set.
()
| 79 | // and CF_INT_PASSWORD environment variables, respectively, defaulting to "admin" for |
| 80 | // each if either is not set. |
| 81 | func LoginCF() string { |
| 82 | if ClientCredentialsTestMode() { |
| 83 | return LoginCFWithClientCredentials() |
| 84 | } |
| 85 | username, password := GetCredentials() |
| 86 | LoginAs(username, password) |
| 87 | return username |
| 88 | } |
| 89 | |
| 90 | // LoginCFWithClientCredentials logs into the CLI using client credentials from the CF_INT_CLIENT_ID and |
| 91 | // CF_INT_CLIENT_SECRET environment variables and returns the client ID. If these environment variables |
no test coverage detected