Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CancelAdmin ¶
func CancelAdmin()
CancelAdmin deletes the admin user that was created to facilitate the tests.
func Login ¶
Login executes `deis auth:login` as the specified user. In the process, it creates the a corresponding profile that contains the user's authentication token. Re-use of this profile is for most other actions is what permits multiple test users to act in parallel without impacting one another.
func Regenerate ¶
Regenerate executes `deis auth:regenerate` as the specified user.
func Register ¶
Register executes `deis auth:register --login=false` using a randomized username and returns a model.User. The 'login' flag is set to false during registration because otherwise the newly registered user's configuration will be automatically written to the file used to register -- which in this case is the admin user's. Since we don't want to overwrite the admin user's configuration, we log the new user in separately.
func RegisterAdmin ¶
func RegisterAdmin()
RegisterAdmin executes `deis auth:register`, using hard-coded username, password, and email address. When this is executed, it is executed in hopes of registering Workflow's FIRST user, which will automatically have admin permissions. If this should fail, the function proceeds with logging in using those same hard-coded credentials, in the hopes that the reason for the failure is that such an account already exists, having been created by a previous execution of the tests.
func RegisterAndLogin ¶
RegisterAndLogin registers a user using a randomized username and then logs in as the registered user.
Types ¶
This section is empty.