summaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2019-08-28 10:52:23 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2019-08-28 17:53:19 +0200
commit7af06a5f75330ca0c706103bd8cea9ee8c69fb93 (patch)
tree8da551f05dfb329198291dd5e2e84b1f6027eb10 /admin
parent9696fc321c6896b1cf8197de1b585af8988a749b (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.py4
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)