mirror of https://git.48k.eu/ogserver
#915 Fix test POST /wol
Commit e4cb91b
changed MAC and netmask retrieving, now ogServer take these
addresses from the database instead of from the JSON.
Remove MAC and netmask from the JSON body.
master
parent
ed0d86b010
commit
031e5708d3
|
@ -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', 'netmask':'255.255.255.0',
|
||||
'mac' : '00AABBCCDD01' } ] }
|
||||
self.json = { 'type' : 'broadcast',
|
||||
'clients' : [ '192.168.2.1', '192.168.2.2' ] }
|
||||
|
||||
def test_post(self):
|
||||
returned = requests.post(self.url, headers=self.headers, json=self.json)
|
||||
|
|
Loading…
Reference in New Issue