SkipIfOIDCCredentialsNotSet returns back the username and the password for OIDC origin, or skips the test if those values are not set.
()
| 121 | // SkipIfOIDCCredentialsNotSet returns back the username and the password for |
| 122 | // OIDC origin, or skips the test if those values are not set. |
| 123 | func SkipIfOIDCCredentialsNotSet() (string, string) { |
| 124 | oidcUsername := os.Getenv("CF_INT_OIDC_USERNAME") |
| 125 | oidcPassword := os.Getenv("CF_INT_OIDC_PASSWORD") |
| 126 | |
| 127 | if oidcUsername == "" || oidcPassword == "" { |
| 128 | Skip("CF_INT_OIDC_USERNAME or CF_INT_OIDC_PASSWORD is not set") |
| 129 | } |
| 130 | |
| 131 | return oidcUsername, oidcPassword |
| 132 | } |
| 133 | |
| 134 | // LogoutCF logs out of the CLI. |
| 135 | func LogoutCF() { |