RandomPassword generates a random password for this user.
()
| 55 | |
| 56 | // RandomPassword generates a random password for this user. |
| 57 | func (u *TestUser) RandomPassword() { |
| 58 | u.password = test.RandomString(16) |
| 59 | } |
| 60 | |
| 61 | // GenerateKey generates a public and private key pair that can be used to authenticate with this user. |
| 62 | func (u *TestUser) GenerateKey() (privateKeyPEM string, publicKeyAuthorizedKeys string) { |