diff options
author | Roberto Hueso Gómez <rhueso@soleta.eu> | 2019-11-05 10:26:44 +0100 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2019-11-06 11:16:22 +0100 |
commit | d3bed4e91a49e3620bdc846e47954095f2e8a79e (patch) | |
tree | 604e429c04bf26d5a0c8be1a6ee0cb464d9cf5e1 | |
parent | 78a97c59c8304e8b5d6eef4cccaeb740d5bc56ce (diff) |
#915 Fix ogAdmServer POST /software test parameters
This patch adds missing parameters to the test JSON.
-rw-r--r-- | admin/Sources/Services/ogAdmServer/tests/units/test_0012_post_software.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/admin/Sources/Services/ogAdmServer/tests/units/test_0012_post_software.py b/admin/Sources/Services/ogAdmServer/tests/units/test_0012_post_software.py index 049a3ec8..1b41a868 100644 --- a/admin/Sources/Services/ogAdmServer/tests/units/test_0012_post_software.py +++ b/admin/Sources/Services/ogAdmServer/tests/units/test_0012_post_software.py @@ -6,7 +6,9 @@ class TestPostSoftwareMethods(unittest.TestCase): def setUp(self): self.url = 'http://localhost:8888/software' self.headers = {'Authorization' : '07b3bfe728954619b58f0107ad73acc1'} - self.json = { 'clients' : [ '192.168.2.1', '192.168.2.2' ] } + self.json = { 'clients' : [ '192.168.2.1', '192.168.2.2' ], + 'disk' : '0', + 'partition' : '1' } def test_post(self): returned = requests.post(self.url, headers=self.headers, json=self.json) |