diff options
author | OpenGnSys Support Team <soporte-og@soleta.eu> | 2019-06-21 13:30:40 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2019-07-03 02:56:07 +0200 |
commit | b4a9fddf3094e9b2aeaab8e769f091b992d18786 (patch) | |
tree | f85e6beb07dac92de274169150e32588bf05168e /tests | |
parent | 6b30dbc65c817e7777c10144d3fd1e8af75ef556 (diff) |
#915 add POST software command to REST API in ogAdmServer
This patch implements the command "software" that fetches the software
configuration from the clients.
Request:
POST /software
{"clients" : [ "192.168.2.1", "192.168.2.2" ]}
Reply:
200 OK
This allows to refresh the software inventory from clients.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/run-tests.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/run-tests.sh b/tests/run-tests.sh index dfa4843..f22df02 100755 --- a/tests/run-tests.sh +++ b/tests/run-tests.sh @@ -11,3 +11,4 @@ curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/reboot -d @reboo 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 +curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/software -d @post_clients.json |