diff options
author | Javier Sánchez Parra <jsanchez@soleta.eu> | 2019-08-28 10:52:23 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2019-08-28 17:53:19 +0200 |
commit | e397e7930fd2099bd71de9ed8a7f9f46b6ce7310 (patch) | |
tree | 35897762b3e6c4f1d25e6097e84cbd82cc1654d1 /tests/units/test_0003_post_wol.py | |
parent | 7c67487ab3165b660b7c4db86ec11bdb2abbb59f (diff) |
#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.
Diffstat (limited to 'tests/units/test_0003_post_wol.py')
-rw-r--r-- | tests/units/test_0003_post_wol.py | 4 |
1 files changed, 2 insertions, 2 deletions
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) |