-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4444 from elyezer/app-token-e2e
Add app token e2e Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
- Loading branch information
Showing
5 changed files
with
170 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -438,17 +438,22 @@ const getUser = ( | |
// where a user and org both exist, but the user is not in the organization. | ||
// this ensures a new user is always created. | ||
username = `user-${uuid().substr(0, 8)}`, | ||
isSuperuser = false | ||
password = AWX_E2E_PASSWORD, | ||
isSuperuser = false, | ||
isSystemAuditor = false, | ||
email = `email-${uuid().substr(0, 8)}@example.com`, | ||
firstName = `first-name-${uuid().substr(0, 8)}`, | ||
lastName = `last-name-${uuid().substr(0, 8)}` | ||
) => getOrganization(namespace) | ||
.then(organization => getOrCreate(`/organizations/${organization.id}/users/`, { | ||
username: `${username}-${uuid().substr(0, 8)}`, | ||
email, | ||
first_name: firstName, | ||
is_superuser: isSuperuser, | ||
is_system_auditor: isSystemAuditor, | ||
last_name: lastName, | ||
organization: organization.id, | ||
first_name: 'firstname', | ||
last_name: 'lastname', | ||
email: '[email protected]', | ||
is_superuser: `${isSuperuser}`, | ||
is_system_auditor: false, | ||
password: AWX_E2E_PASSWORD | ||
password, | ||
username, | ||
}, ['username'])); | ||
|
||
/* Retrieves a job template admin, and creates it if it does not exist. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters