summaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorRoberto Hueso Gómez <rhueso@soleta.eu>2019-11-12 13:53:36 +0100
committerOpenGnSys Support Team <soporte-og@soleta.eu>2019-11-12 21:37:11 +0100
commit6dc823e4d2f2378981cd84a59dcfcc241076bc20 (patch)
tree88eabcef8045ef69860442bbf3f0851b575ea632 /admin
parent454ab570c4984c9c20e998b9b3bf6b98f19bb561 (diff)
#915 Adapt POST /shell/run test to the 'echo' parameter
Diffstat (limited to 'admin')
-rw-r--r--admin/Sources/Services/ogAdmServer/tests/units/test_0004_post_shell_run.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/admin/Sources/Services/ogAdmServer/tests/units/test_0004_post_shell_run.py b/admin/Sources/Services/ogAdmServer/tests/units/test_0004_post_shell_run.py
index 2a330be9..0dd03c10 100644
--- a/admin/Sources/Services/ogAdmServer/tests/units/test_0004_post_shell_run.py
+++ b/admin/Sources/Services/ogAdmServer/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)