mirror of https://git.48k.eu/ogserver
#915 add missing brackets to WOL API test json
Without the brackets the call works (200 response) but the ogAdmServer does not send the WOL packets.master
parent
7c67487ab3
commit
e397e7930f
|
@ -6,8 +6,8 @@ class TestPostWolMethods(unittest.TestCase):
|
|||
def setUp(self):
|
||||
self.url = 'http://localhost:8888/wol'
|
||||
self.headers = {'Authorization' : '07b3bfe728954619b58f0107ad73acc1'}
|
||||
self.json = { 'type' : 'broadcast', 'clients' : { 'addr' : '192.168.2.1',
|
||||
'mac' : '00AABBCCDD01' } }
|
||||
self.json = { 'type' : 'broadcast', 'clients' : [ { 'addr' : '192.168.2.1',
|
||||
'mac' : '00AABBCCDD01' } ] }
|
||||
|
||||
def test_post(self):
|
||||
returned = requests.post(self.url, headers=self.headers, json=self.json)
|
||||
|
|
Loading…
Reference in New Issue