SwitchToSpaceRole logs out of the CLI and logs back in as a newly-created user with the given space role in the given space and org.
(org, space, role string)
| 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. |
| 200 | func SwitchToSpaceRole(org, space, role string) string { |
| 201 | username, password := CreateUserInSpaceRole(org, space, role) |
| 202 | LogoutCF() |
| 203 | LoginAs(username, password) |
| 204 | return username |
| 205 | } |
no test coverage detected