Skip to content

Commit

Permalink
Merge pull request #528 from cmoussa1/fix.which.user.deleted
Browse files Browse the repository at this point in the history
t: change which user is deleted from association_table
  • Loading branch information
mergify[bot] authored Nov 6, 2024
2 parents cb34b27 + 87301bb commit a29e5a1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions t/t1023-flux-account-banks.t
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,14 @@ test_expect_success 'add a user to two different banks' '
'

test_expect_success 'delete user default bank row' '
flux account delete-user user5013 E
flux account delete-user user5015 E
'

test_expect_success 'check that user default bank gets updated to other bank' '
flux account view-user user5015 > new_default_bank.out &&
cat new_default_bank.out &&
grep -w "username: user5015\|bank: F\|default_bank: F" new_default_bank.out
grep "username: user5015" new_default_bank.out &&
grep "bank: F" new_default_bank.out &&
grep "default_bank: F" new_default_bank.out
'

test_expect_success 'trying to add a user to a nonexistent bank should raise a ValueError' '
Expand Down

0 comments on commit a29e5a1

Please sign in to comment.