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

t: change which user is deleted from association_table #528

Merged
merged 1 commit into from
Nov 6, 2024

Conversation

cmoussa1
Copy link
Member

@cmoussa1 cmoussa1 commented Nov 6, 2024

Problem

There is a test in t1023-flux-account-banks.t that makes sure the default bank of a user is updated when one of their user/bank rows is deleted from the database by removing it in the test prior, but the wrong user is deleted.


This PR just changes which user is deleted in t1023-flux-account-banks.t.

@cmoussa1 cmoussa1 added the testing issues that deal with testing label Nov 6, 2024
@cmoussa1 cmoussa1 changed the title t: change which user is deleted from table t: change which user is deleted from association_table Nov 6, 2024
Copy link
Member

@jameshcorbett jameshcorbett left a comment

Choose a reason for hiding this comment

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

Looks reasonable but shouldn't this test have failed then?

Problem: There is a test in t1023-flux-account-banks.t that makes sure
the default bank of a user is updated when one of their user/bank rows
is deleted from the database by removing it in the test prior, but the
wrong user is deleted.

Change which user is deleted in t1023-flux-account-banks.t. Make the
"grep" check in the subsequent test more robust by checking that all
three of the expected strings show up in the .out file instead of
checking that the .out file contains any whole-word matches for just
one of the patterns searched.
@cmoussa1 cmoussa1 force-pushed the fix.which.user.deleted branch from 872ddb4 to 87301bb Compare November 6, 2024 23:52
@cmoussa1
Copy link
Member Author

cmoussa1 commented Nov 6, 2024

The test continued to pass because the grep check was lazy (and my fault); grep -w "username: user5015\|bank: F\|default_bank: F" new_default_bank.out was checking for a whole-word match for one of the patterns instead of all three. I changed this grep check to be more strict and check that all three were present.

Setting MWP here

@mergify mergify bot merged commit a29e5a1 into flux-framework:master Nov 6, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge-when-passing testing issues that deal with testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants