SwitchToOrgRole logs out of the CLI and logs back in as a newly-created user with the given org role in the given org.
(org, role string)
| 189 | // SwitchToOrgRole logs out of the CLI and logs back in as a newly-created user with the given |
| 190 | // org role in the given org. |
| 191 | func SwitchToOrgRole(org, role string) string { |
| 192 | username, password := CreateUserInOrgRole(org, role) |
| 193 | LogoutCF() |
| 194 | LoginAs(username, password) |
| 195 | return username |
| 196 | } |
| 197 | |
| 198 | // SwitchToSpaceRole logs out of the CLI and logs back in as a newly-created user with the given |
| 199 | // space role in the given space and org. |
no test coverage detected