#915 Adapt POST /shell/run test to the 'echo' parameter

master
Roberto Hueso Gómez 2019-11-12 13:53:36 +01:00 committed by OpenGnSys Support Team
parent ffd2965b33
commit ee2e16ac96
1 changed files with 3 additions and 1 deletions

View File

@ -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)