Skip to content

Commit

Permalink
Change one test so that it expects to succeed
Browse files Browse the repository at this point in the history
If no token slot is specified, even if the key is the same as previous,
stratisd will pick the next one.

Signed-off-by: mulhern <[email protected]>
  • Loading branch information
mulkieran committed Jan 10, 2025
1 parent 05bdc66 commit 27864e0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/whitebox/integration/pool/test_bind.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,14 +132,15 @@ def test_bind_when_bound_1(self):

def test_bind_when_bound_2(self):
"""
Binding when encrypted already should raise a no change error.
Binding with the same key when encrypted already is fine. In this
situation a new token slot is used.
"""
command_line = self._MENU + [
"keyring",
self._POOLNAME,
self._KEY_DESC,
]
self.check_error(StratisCliNoChangeError, command_line, _ERROR)
TEST_RUNNER(command_line)


class BindTestCase3(SimTestCase):
Expand Down

0 comments on commit 27864e0

Please sign in to comment.