mirror of https://git.48k.eu/ogserver
#915 Fix ogAdmServer POST /software test parameters
This patch adds missing parameters to the test JSON.master
parent
8082efd6de
commit
64b470514b
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue