From 031e5708d349643b1696cab2aa816db6a65d79db Mon Sep 17 00:00:00 2001 From: Javier Sánchez Parra Date: Tue, 23 Feb 2021 09:31:02 +0100 Subject: #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. --- tests/units/test_0003_post_wol.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/units/test_0003_post_wol.py b/tests/units/test_0003_post_wol.py index a9a2d42..fae6fa4 100644 --- a/tests/units/test_0003_post_wol.py +++ b/tests/units/test_0003_post_wol.py @@ -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) -- cgit v1.2.3-18-g5258