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

Add ST2TESTS_SYSTEM_USER env var to set system_user.user in tests #6242

Merged
merged 7 commits into from
Sep 16, 2024

Conversation

cognifloyd
Copy link
Member

@cognifloyd cognifloyd commented Sep 16, 2024

Adds a new env var for tests: ST2TESTS_SYSTEM_USER. When set, this will override system_user.user in st2 conf so that you can run tests on systems that do not have the stanley user. When running tests locally, use the following to set system user to the current user:

export ST2TESTS_SYSTEM_USER=$(id -un)

This follows the naming convention for test vars introduced in #5707 which introduced ST2TESTS_PARALLEL_SLOT.

These commits were extracted from my wip work in #6202.

@cognifloyd cognifloyd added this to the 3.9.0 milestone Sep 16, 2024
@cognifloyd cognifloyd self-assigned this Sep 16, 2024
@pull-request-size pull-request-size bot added the size/M PR that changes 30-99 lines. Good size to review. label Sep 16, 2024
@cognifloyd cognifloyd requested a review from a team September 16, 2024 21:26
@cognifloyd cognifloyd merged commit eb0d04d into master Sep 16, 2024
32 checks passed
@cognifloyd cognifloyd deleted the st2tests-system-user branch September 16, 2024 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/M PR that changes 30-99 lines. Good size to review. tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants