summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorOpenGnSys Support Team <soporte-og@soleta.eu>2019-06-21 13:22:12 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2019-07-03 02:56:07 +0200
commit6b30dbc65c817e7777c10144d3fd1e8af75ef556 (patch)
tree4fb26a8592b1056f06e0bd50439c5c1455ec8a03 /tests
parenteae2385f67d50da21a646b8c645fd0a98b2c23c9 (diff)
#915 add POST hardware command to REST API in ogAdmServer
This patch implements the command "hardware" that fetches the hardware configuration from the clients. Request: POST /hardware {"clients" : [ "192.168.2.1", "192.168.2.2" ]} Reply: 200 OK This allows to refresh the hardware inventory from clients.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/run-tests.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/run-tests.sh b/tests/run-tests.sh
index ca00b5f..dfa4843 100755
--- a/tests/run-tests.sh
+++ b/tests/run-tests.sh
@@ -10,3 +10,4 @@ curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/poweroff -d @pow
curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/reboot -d @reboot.json
curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/stop -d @stop.json
curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/refresh -d @refresh.json
+curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/hardware -d @post_clients.json