From 17c1b7cb82ecfa04e70977aa2262397a570b40c7 Mon Sep 17 00:00:00 2001 From: Philip DiLeo Date: Thu, 8 Sep 2016 14:07:41 -0700 Subject: [PATCH] fix systest case to accommodate EOS error text --- test/system/test_client.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/test/system/test_client.py b/test/system/test_client.py index d3d470d..58da65d 100644 --- a/test/system/test_client.py +++ b/test/system/test_client.py @@ -183,9 +183,7 @@ def test_exception_trace(self): # To reload the machine over the API, please use 'reload now' instead cases.append(('reload', rfmt % (1004, 'incompatible command', - 'Command not permitted via API access. To reload ' - 'the machine over the API, please include the' - ' `force` keyword.'))) + 'Command not permitted via API access..*'))) # Send a continuous command that requires a break cases.append(('watch 10 show int e1 count rates', rfmt % (1000, 'could not run command', @@ -193,7 +191,7 @@ def test_exception_trace(self): # Send a command that has insufficient priv cases.append(('show running-config', rfmt % (1002, 'invalid command', - 'Invalid input (privileged mode required)'))) + 'Invalid input \(privileged mode required\)'))) for dut in self.duts: