From 27864e0747dcbca38532a3131249bb09e774e251 Mon Sep 17 00:00:00 2001 From: mulhern Date: Thu, 9 Jan 2025 20:53:25 -0500 Subject: [PATCH] Change one test so that it expects to succeed 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 --- tests/whitebox/integration/pool/test_bind.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/whitebox/integration/pool/test_bind.py b/tests/whitebox/integration/pool/test_bind.py index 33bc0dfe6..9cf77a128 100644 --- a/tests/whitebox/integration/pool/test_bind.py +++ b/tests/whitebox/integration/pool/test_bind.py @@ -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):