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` using a randomized username and returns a model.User.
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.
Types ¶
This section is empty.