From 5452f020f93d57a48c4ae34675cc7e480b66fccf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Cami?= Date: Fri, 7 Aug 2020 19:08:39 +0200 Subject: [PATCH] ipatests: test_epn: update error messages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update error messages in the test. Fixes: https://pagure.io/freeipa/issue/8449 Signed-off-by: François Cami Reviewed-By: Rob Crittenden Reviewed-By: Florence Blanc-Renaud --- ipatests/test_integration/test_epn.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ipatests/test_integration/test_epn.py b/ipatests/test_integration/test_epn.py index 9cd880676..fc26888cb 100644 --- a/ipatests/test_integration/test_epn.py +++ b/ipatests/test_integration/test_epn.py @@ -457,7 +457,7 @@ class TestEPN(IntegrationTest): self.clients[0], to_nbdays="abc", raiseonerr=False, validatejson=False ) - assert "error: --to-nbdays must be an integer." in stderr + assert "error: --to-nbdays must be a positive integer." in stderr assert rc > 0 def test_EPN_nbdays_input_3(self): @@ -480,7 +480,7 @@ class TestEPN(IntegrationTest): ) logger.info(stderr) assert rc > 0 - assert "error: --to-nbdays must be an integer." in stderr + assert "error: --to-nbdays must be a positive integer." in stderr # From here the tests build on one another: # 1) add auth