Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds an ee_admin user to test setup #1418

Merged
merged 2 commits into from Aug 19, 2022

Conversation

bmclaughlin
Copy link
Contributor

What is this PR doing:

Creates an ee_admin user to be used in integration tests. Replaces the use of the admin user in the test_api_ui_v1_execution_environments_registries test per the TODO item.

Issue: AAH-1796

Reviewers must know:

Notes:

PR Author: Add a QE reviewer (exceptions);
Reviewers: look for sound code, no code smells, docs & test coverage
Merger: When merging, include the Jira issue link in the squashed commit

@netlify
Copy link

netlify bot commented Aug 17, 2022

Deploy Preview for galaxyng ready!

Name Link
🔨 Latest commit ba6fe4d
🔍 Latest deploy log https://app.netlify.com/sites/galaxyng/deploys/62ffc7a52256150007278573
😎 Deploy Preview https://deploy-preview-1418--galaxyng.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Replaces admin user use with ee_admin user
Issue: AAH-1796
@bmclaughlin bmclaughlin force-pushed the AAH-1796-add-ee-admin-to-tests branch from 30903c3 to dcae542 Compare August 18, 2022 17:12
Copy link
Contributor

@awcrosby awcrosby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, added a minor suggestion.

Comment on lines 100 to 101
"ee_admin": {
"username": "ee-admin",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can probably make these both ee_admin ... the only reason some usernames have a dash is due to their setup in keycloak

Comment on lines 64 to 68
# Note: this user is not a part of ephemeral keycloak users
ee_admin, _ = User.objects.get_or_create(username="ee-admin")
ee_admin.set_password("redhat")
ee_admin.groups.add(ee_group)
ee_admin.save()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we ever need a new test user that will also be tested in insights mode, we will want to pick a username that is already in keycloak so the test users are consistent in standalone and insights mode. For this execution environment user, I think it is ok to not match up to keycloak.

@awcrosby awcrosby merged commit 28ad4b5 into ansible:master Aug 19, 2022
@bmclaughlin bmclaughlin deleted the AAH-1796-add-ee-admin-to-tests branch August 19, 2022 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants