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 | 7af06a5f75330ca0c706103bd8cea9ee8c69fb93 (patch) | |
tree | 8da551f05dfb329198291dd5e2e84b1f6027eb10 /admin | |
parent | 9696fc321c6896b1cf8197de1b585af8988a749b (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 'admin')
-rw-r--r-- | admin/Sources/Services/ogAdmServer/tests/units/test_0003_post_wol.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/admin/Sources/Services/ogAdmServer/tests/units/test_0003_post_wol.py b/admin/Sources/Services/ogAdmServer/tests/units/test_0003_post_wol.py index cbb2fd17..a3750f26 100644 --- a/admin/Sources/Services/ogAdmServer/tests/units/test_0003_post_wol.py +++ b/admin/Sources/Services/ogAdmServer/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) |