CreateUser creates a user with a random username and password and returns both.
()
| 97 | |
| 98 | // CreateUser creates a user with a random username and password and returns both. |
| 99 | func CreateUser() (string, string) { |
| 100 | username := NewUsername() |
| 101 | password := RandomName() |
| 102 | |
| 103 | // env := map[string]string{ |
| 104 | // "NEW_USER_PASSWORD": password, |
| 105 | // } |
| 106 | |
| 107 | // session := CFWithEnv(env, "create-user", username, "$NEW_USER_PASSWORD") |
| 108 | session := CF("create-user", username, password) |
| 109 | Eventually(session).Should(Exit(0)) |
| 110 | |
| 111 | return username, password |
| 112 | } |
| 113 | |
| 114 | // DeleteUser deletes the user specified by username. |
| 115 | func DeleteUser(username string) { |
no test coverage detected