CreateUserInOrgRole creates a user with a random username and password and gives them the specified role within a specific org. The new user's username and password are returned.
(org, role string)
| 120 | // CreateUserInOrgRole creates a user with a random username and password and gives them the specified role within |
| 121 | // a specific org. The new user's username and password are returned. |
| 122 | func CreateUserInOrgRole(org, role string) (string, string) { |
| 123 | username, password := CreateUser() |
| 124 | |
| 125 | session := CF("set-org-role", username, org, role) |
| 126 | Eventually(session).Should(Exit(0)) |
| 127 | |
| 128 | return username, password |
| 129 | } |
| 130 | |
| 131 | // CreateUserInSpaceRole creates a user with a random username and password and gives them the specified role within |
| 132 | // a specific space. The new user's username and password are returned. |
no test coverage detected