summaryrefslogtreecommitdiffstats
path: root/tests/units/test_0003_shellrun.py
diff options
context:
space:
mode:
authorRoberto Hueso Gómez <rhueso@soleta.eu>2020-01-20 12:47:35 +0100
committerAlvaro Neira Ayuso <aneira@soleta.eu>2020-01-21 17:32:48 +0100
commit9890d60300d4e2d2cd6d4a87de81471f943e975c (patch)
tree24aae4600b60fc0fcbe5aa1aecc778904ff18d1e /tests/units/test_0003_shellrun.py
parent96c2ddea2d407845441cd740c8330f15fc75b7a0 (diff)
Fix /shell/run commands splitting
This patch splits shell commands either with ';' or '\n'.
Diffstat (limited to 'tests/units/test_0003_shellrun.py')
-rw-r--r--tests/units/test_0003_shellrun.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/units/test_0003_shellrun.py b/tests/units/test_0003_shellrun.py
index ada1795..79b7305 100644
--- a/tests/units/test_0003_shellrun.py
+++ b/tests/units/test_0003_shellrun.py
@@ -14,7 +14,7 @@ class TestShellRunMethods(unittest.TestCase):
def test_post_with_echo(self):
req_json = '{"run":"echo \\"croqueta\\"", "echo":true}'
- response_json = '{"out": "\\"croqueta\\"\\n"}'
+ response_json = '{"out": \"croqueta\\n\"}'
req = 'POST /shell/run HTTP/1.0\r\nContent-Length:'+ \
str(len(req_json)) + \
'\r\nContent-Type:application/json\r\n\r\n' + req_json