source: ogServer-Git/tests/run-tests.sh @ 24c8b94

Last change on this file since 24c8b94 was 83b242c, checked in by OpenGnSys Support Team <soporte-og@…>, 4 years ago

#942 Add support for scheduled tasks and commands

This field needs to be at least 31 bits long to store all days in a month.
Other fields are also set to 32 bits because unsigned int length can change
depending on the system.

We also need to support the three ways that the ogAdmAgent and the WebConsole?
have to create an schedule. At first, we only supported the easiest
method:

  • Hour, day, month and year -> 10:00, 28, february, 2020

This commit adds these two ways to create an schedule:

  • Hour, week day, month and year -> 10:00, Monday, february, 2020
  • Hour, week, month and year -> 10:00, first week, february, 2020
  • Property mode set to 100755
File size: 2.1 KB
RevLine 
[fd30540]1API_KEY="07b3bfe728954619b58f0107ad73acc1"
2
3curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/clients -d @post_clients.json
4curl -X GET -H "Authorization: $API_KEY" http://127.0.0.1:8888/clients
5curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/wol -d @wol.json
6curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/shell/run -d @post_shell_run.json
7curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/shell/output -d @post_shell_output.json
8curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/session -d @session.json
9curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/poweroff -d @poweroff.json
10curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/reboot -d @reboot.json
11curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/stop -d @stop.json
12curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/refresh -d @refresh.json
[6b30dbc]13curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/hardware -d @post_clients.json
[b4a9fdd]14curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/software -d @post_clients.json
[1a8ada1]15curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/image/create -d @create_image.json
[1dde02e]16curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/image/restore -d @restore_image.json
[6c91d14]17curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/setup -d @setup_image.json
[7406188]18curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/image/create/basic -d @create_basic_image.json
[45f414e]19curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/image/create/incremental -d @create_incremental_image.json
[17eeac1]20curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/image/restore/basic -d @restore_basic_image.json
[90672e4]21curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/image/restore/incremental -d @restore_incremental_image.json
[2f7e9da]22curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/run/schedule -d @run_schedule.json
[96b9bb8]23curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/task/run -d @task.json
[83b242c]24curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/schedule/create -d @create_schedule.json
Note: See TracBrowser for help on using the repository browser.