You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The test suite explicitly defines userids for test users that get added to a flux-accounting DB, submit and run jobs, edit the database, etc., but as discovered with #477, this explicit definition can sometimes cause conflict with already-defined userids and result in test failures.
A cleaner solution could be to check for the current uid in sharness.d/flux-accounting.sh and instead define some environment variables for some userids to be associated with the test users that get added throughout the test suite:
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 and
verify that these are valid UIDs to be used throughout the
flux-accounting test suite. If not, find the next valid one and just use
that.
Replace the use of explicitly defined UIDs in
t1019-mf-priority-info-fetch.t with the UIDs defined in
flux-accounting.sh.
cmoussa1
added a commit
to cmoussa1/flux-accounting
that referenced
this issue
Aug 8, 2024
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.
The test suite explicitly defines userids for test users that get added to a flux-accounting DB, submit and run jobs, edit the database, etc., but as discovered with #477, this explicit definition can sometimes cause conflict with already-defined userids and result in test failures.
A cleaner solution could be to check for the current uid in
sharness.d/flux-accounting.sh
and instead define some environment variables for some userids to be associated with the test users that get added throughout the test suite:and then reference these in a file:
The text was updated successfully, but these errors were encountered: