#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
Javier Sánchez Parra 2021-02-23 09:31:02 +01:00 committed by OpenGnSys Support Team
parent ed0d86b010
commit 031e5708d3
1 changed files with 2 additions and 2 deletions

View File

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