summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorOpenGnSys Support Team <soporte-og@soleta.eu>2019-05-25 01:32:25 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2019-05-27 13:03:05 +0200
commit7ab5f0cbfb827ad18af33de04ee2115d3208b298 (patch)
treea641099d382df1cd2251ae450a520b7e75feebfe /tests
parentc6020f2ad186954d6c083d000f282f58b44017f1 (diff)
#915 add POST session command to REST API in ogAdmServer
Start a session on client (through POST method): curl -X POST http://127.0.0.1:8888/session -d @session.json Request POST /session {"clients": [ "192.168.2.1" ] } Reply: 200 OK
Diffstat (limited to 'tests')
-rwxr-xr-xtests/run-tests.sh1
-rw-r--r--tests/session.json1
2 files changed, 2 insertions, 0 deletions
diff --git a/tests/run-tests.sh b/tests/run-tests.sh
index b5239d5..27c7bc6 100755
--- a/tests/run-tests.sh
+++ b/tests/run-tests.sh
@@ -3,3 +3,4 @@ curl -X GET http://127.0.0.1:8888/clients
curl -X POST http://127.0.0.1:8888/wol -d @wol.json
curl -X POST http://127.0.0.1:8888/shell/run -d @post_shell_run.json
curl -X POST http://127.0.0.1:8888/shell/output -d @post_shell_output.json
+curl -X POST http://127.0.0.1:8888/session -d @session.json
diff --git a/tests/session.json b/tests/session.json
new file mode 100644
index 0000000..1b473c4
--- /dev/null
+++ b/tests/session.json
@@ -0,0 +1 @@
+{ "clients" : [ "192.168.2.1", "192.168.2.2" ], "disk" : "0", "partition" : "1"}