summaryrefslogtreecommitdiffstats
path: root/tests/units/test_0012_post_software.py
diff options
context:
space:
mode:
authorRoberto Hueso Gómez <rhueso@soleta.eu>2019-11-05 10:26:44 +0100
committerOpenGnSys Support Team <soporte-og@soleta.eu>2019-11-06 11:16:22 +0100
commit64b470514bed3d5e30a85356798f7666ad2be4e3 (patch)
treebbbd0a873630d918e7091fe487b99199cadf04c9 /tests/units/test_0012_post_software.py
parent8082efd6deab856d21531f14aa32ae0eba4baacb (diff)
#915 Fix ogAdmServer POST /software test parameters
This patch adds missing parameters to the test JSON.
Diffstat (limited to 'tests/units/test_0012_post_software.py')
-rw-r--r--tests/units/test_0012_post_software.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/units/test_0012_post_software.py b/tests/units/test_0012_post_software.py
index 049a3ec..1b41a86 100644
--- a/tests/units/test_0012_post_software.py
+++ b/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)