#915 Fix ogAdmServer POST /software test parameters

This patch adds missing parameters to the test JSON.
master
Roberto Hueso Gómez 2019-11-05 10:26:44 +01:00 committed by OpenGnSys Support Team
parent 8082efd6de
commit 64b470514b
1 changed files with 3 additions and 1 deletions

View File

@ -6,7 +6,9 @@ class TestPostSoftwareMethods(unittest.TestCase):
def setUp(self):
self.url = 'http://localhost:8888/software'
self.headers = {'Authorization' : '07b3bfe728954619b58f0107ad73acc1'}
self.json = { 'clients' : [ '192.168.2.1', '192.168.2.2' ] }
self.json = { 'clients' : [ '192.168.2.1', '192.168.2.2' ],
'disk' : '0',
'partition' : '1' }
def test_post(self):
returned = requests.post(self.url, headers=self.headers, json=self.json)