summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--admin/Sources/Services/ogAdmServer/tests/units/test_0003_post_wol.py4
-rw-r--r--admin/Sources/Services/ogAdmServer/tests/units/test_0004_post_shell_run.py4
-rw-r--r--admin/Sources/Services/ogAdmServer/tests/units/test_0005_post_shell_output.py4
-rw-r--r--admin/Sources/Services/ogAdmServer/tests/units/test_0006_post_session.py4
4 files changed, 8 insertions, 8 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 a3750f26..e997aff6 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
@@ -14,8 +14,8 @@ class TestPostWolMethods(unittest.TestCase):
self.assertEqual(returned.status_code, 200)
def test_get(self):
- returned = requests.post(self.url, headers=self.headers)
- self.assertEqual(returned.status_code, 404)
+ returned = requests.get(self.url, headers=self.headers)
+ self.assertEqual(returned.status_code, 405)
if __name__ == '__main__':
unittest.main()
diff --git a/admin/Sources/Services/ogAdmServer/tests/units/test_0004_post_shell_run.py b/admin/Sources/Services/ogAdmServer/tests/units/test_0004_post_shell_run.py
index 7be1fa96..2a330be9 100644
--- a/admin/Sources/Services/ogAdmServer/tests/units/test_0004_post_shell_run.py
+++ b/admin/Sources/Services/ogAdmServer/tests/units/test_0004_post_shell_run.py
@@ -13,8 +13,8 @@ class TestPostShellRunMethods(unittest.TestCase):
self.assertEqual(returned.status_code, 200)
def test_get(self):
- returned = requests.post(self.url, headers=self.headers)
- self.assertEqual(returned.status_code, 404)
+ returned = requests.get(self.url, headers=self.headers)
+ self.assertEqual(returned.status_code, 405)
if __name__ == '__main__':
unittest.main()
diff --git a/admin/Sources/Services/ogAdmServer/tests/units/test_0005_post_shell_output.py b/admin/Sources/Services/ogAdmServer/tests/units/test_0005_post_shell_output.py
index 622e482d..1c6f7a3a 100644
--- a/admin/Sources/Services/ogAdmServer/tests/units/test_0005_post_shell_output.py
+++ b/admin/Sources/Services/ogAdmServer/tests/units/test_0005_post_shell_output.py
@@ -13,8 +13,8 @@ class TestPostShellOutputMethods(unittest.TestCase):
self.assertEqual(returned.status_code, 200)
def test_get(self):
- returned = requests.post(self.url, headers=self.headers)
- self.assertEqual(returned.status_code, 404)
+ returned = requests.get(self.url, headers=self.headers)
+ self.assertEqual(returned.status_code, 405)
if __name__ == '__main__':
unittest.main()
diff --git a/admin/Sources/Services/ogAdmServer/tests/units/test_0006_post_session.py b/admin/Sources/Services/ogAdmServer/tests/units/test_0006_post_session.py
index 0b733d9a..544ae2ab 100644
--- a/admin/Sources/Services/ogAdmServer/tests/units/test_0006_post_session.py
+++ b/admin/Sources/Services/ogAdmServer/tests/units/test_0006_post_session.py
@@ -14,8 +14,8 @@ class TestPostSessionMethods(unittest.TestCase):
self.assertEqual(returned.status_code, 200)
def test_get(self):
- returned = requests.post(self.url, headers=self.headers)
- self.assertEqual(returned.status_code, 404)
+ returned = requests.get(self.url, headers=self.headers)
+ self.assertEqual(returned.status_code, 405)
if __name__ == '__main__':
unittest.main()