From e397e7930fd2099bd71de9ed8a7f9f46b6ce7310 Mon Sep 17 00:00:00 2001 From: Javier Sánchez Parra Date: Wed, 28 Aug 2019 10:52:23 +0200 Subject: #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. --- 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 cbb2fd1..a3750f2 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', - '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) -- cgit v1.2.3-18-g5258