From ee2e16ac96b259e1fce7029301b3da2b157ecd4c Mon Sep 17 00:00:00 2001 From: Roberto Hueso Gómez Date: Tue, 12 Nov 2019 13:53:36 +0100 Subject: #915 Adapt POST /shell/run test to the 'echo' parameter --- tests/units/test_0004_post_shell_run.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/units/test_0004_post_shell_run.py b/tests/units/test_0004_post_shell_run.py index 2a330be..0dd03c1 100644 --- a/tests/units/test_0004_post_shell_run.py +++ b/tests/units/test_0004_post_shell_run.py @@ -6,7 +6,9 @@ class TestPostShellRunMethods(unittest.TestCase): def setUp(self): self.url = 'http://localhost:8888/shell/run' self.headers = {'Authorization' : '07b3bfe728954619b58f0107ad73acc1'} - self.json = { 'clients' : [ '192.168.2.1', '192.168.2.2' ], 'run' : 'ls' } + self.json = { 'clients' : [ '192.168.2.1', '192.168.2.2' ], + 'run' : 'ls', + 'echo': True} def test_post(self): returned = requests.post(self.url, headers=self.headers, json=self.json) -- cgit v1.2.3-18-g5258