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

[WIP] t: automatically generate test UIDs #483

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cmoussa1
Copy link
Member

@cmoussa1 cmoussa1 commented Aug 8, 2024

Problem

As mentioned in #480, there are a number of tests throughout the test suite that explicitly define UIDs for users created and used for various tests in flux-accounting, but these have a potential of conflicting with system-defined UIDs.


This PR adds definitions for test UIDs in sharness.d/flux-accounting.sh. I basically followed the same formula for testing permissions for certain flux-accounting commands in t1026-flux-account-perms.t, where a UID is created by just incrementing the current UID by 1.

I've included an example of replace the use of explicitly defined UIDs in t1019-mf-priority-info-fetch.t with the UIDs defined in flux-accounting.sh. If this looks good, then I can update this PR and take it out of [WIP] by including the rest of the test files in the test suite.

Fixes #480

Problem: As mentioned in flux-framework#480, there are a number of tests throughout
the test suite that explicitly define UIDs for users created and used
for various tests in flux-accounting, but these have a potential of
conflicting with system-defined UIDs.

Add definitions for test UIDs in sharness.d/flux-accounting.sh.

Replace the use of explicitly defined UIDs in
t1019-mf-priority-info-fetch.t with the UIDs defined in
flux-accounting.sh.
@cmoussa1 cmoussa1 added improvement Upgrades to an already existing feature testing issues that deal with testing labels Aug 8, 2024
@cmoussa1 cmoussa1 requested a review from grondo August 8, 2024 19:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Upgrades to an already existing feature testing issues that deal with testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

testsuite: set up some environment variables for uids
1 participant