summaryrefslogtreecommitdiffstats
path: root/tests/units/test_0003_post_wol.py
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2021-02-23 09:31:02 +0100
committerOpenGnSys Support Team <soporte-og@soleta.eu>2021-02-23 10:46:46 +0100
commit031e5708d349643b1696cab2aa816db6a65d79db (patch)
tree4be572d15f57b56e3160ce8e6c4260979e74060f /tests/units/test_0003_post_wol.py
parented0d86b010d2b8b8ec6e16de62d5bf9e1c1dea85 (diff)
#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.
Diffstat (limited to 'tests/units/test_0003_post_wol.py')
-rw-r--r--tests/units/test_0003_post_wol.py4
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 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)