| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
And update all callers.
Some of the db.Open() calls cannot be removed yet, since there are still
more function dependencies that need to be converted too.
|
|
|
|
|
|
| |
RestaurarSoftIncremental, Configurar and EjecutarScript
These functions are identical, remove duplicated code.
|
|
|
|
|
|
| |
RESPUESTA_Apagar
They are identical, remove duplicated code.
|
|
|
|
| |
These function are almost identical, remove duplicated code.
|
| |
|
| |
|
| |
|
|
|
|
| |
Add basic infrastructure to support for the independent database layer.
|
|
|
|
|
|
|
|
|
|
|
| |
Irina reports that the bug fixed in 78a97c5 happens again when you run a
command with a session (queue of actions).
The bug was introduced in 78a97c5, the goal of the commit was
to change the behaviour of respuestaEstandar to always check
the result of a command, whether it has a session or not. But, instead
of this behaviour, the commit changes respuestaEstandar to only check the
commands without session.
|
|
|
|
| |
configuration.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch includes tests for the remaining REST API commands:
POST /shell/output
POST /session
POST /poweroff
POST /reboot
POST /stop
POST /refresh
POST /hardware
POST /software
POST /image/create
POST /image/restore
POST /setup
POST /image/create/basic
POST /image/create/incremental
POST /image/restore/basic
POST /image/restore/incremental
POST /run/schedule
This test covers requests that are missing one of the parameters in its
payload.
|
|
|
|
|
| |
This test covers requests that do not contain 1 of the parameters in their
payloads.
|
|
|
|
|
| |
This test covers requests that do not contain 1 of the parameters in their
payloads.
|
|
|
|
|
| |
This test covers requests that do not contain 1 of the parameters in their
payloads.
|
|
|
|
|
| |
This patch meets RFC 7235 and returns an HTTP 400 error code when ogAdmServer
recieves a wrong request.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch extends tests for requests without any payload in the following REST
API POST functions:
- /clients
- /wol
- /shell/run
- /shell/output
- /session
- /poweroff
- /reboot
- /stop
- /refresh
- /hardware
- /software
|
|
|
|
| |
This patch renames the setup command to avoid semantic confusion.
|
| |
|
|
|
|
| |
'echo' parameter makes possible for users to request the console output.
|
|
|
|
|
| |
This patch prevents the flag OG_REST_PARAM_ADDR to be activated when the array
is empty.
|
|
|
|
| |
This patch ensures that all required parameters are sent in the request.
|
|
|
|
| |
This patch ensures that all required parameters are sent in the request.
|
|
|
|
| |
This patch ensures that all required parameters are sent in the request.
|
|
|
|
| |
This patch ensures that all required parameters are sent in the request.
|
|
|
|
| |
This patch ensures that all required parameters are sent in the request.
|
|
|
|
| |
This patch ensures that all required parameters are sent in the request.
|
|
|
|
| |
hide/unhide NTFS partitions.
|
|
|
|
| |
This patch ensures that all required parameters are sent in the request.
|
|
|
|
| |
This patch ensures that all required parameters are sent in the request.
|
|
|
|
| |
This patch ensures that all required parameters are sent in the request.
|
|
|
|
| |
This patch ensures that all required parameters are sent in the request.
|
|
|
|
| |
This patch ensures that all required parameters are sent in the request.
|
|
|
|
| |
This patch ensures that all required parameters are sent in the request.
|
|
|
|
| |
This patch ensures that all required parameters are sent in the request.
|
|
|
|
| |
This patch ensures that all required parameters are sent in the request.
|
|
|
|
| |
This patch ensures that all required parameters are sent in the request.
|
|
|
|
| |
This patch ensures that all required parameters are sent in the request.
|
|
|
|
| |
This patch ensures that all required parameters are sent in the request.
|
|
|
|
| |
This patch ensures that all required parameters are sent in the request.
|
|
|
|
|
|
|
| |
This patch adds og_msg_params_validate function as well as some flags that can
be used to validate parameters of a REST API request.
This patch ensures that all required parameters are sent in the request.
|
|
|
|
| |
This patch adds missing parameters to the test JSON.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Irina reports that if you try to restore an image without success
(for example: the disk does not have enough space), the database changes
as if no error would happen. So you see the computer in the WebConsole
with an image/OS that, actually, does not have.
The bug is caused because the function respuestaEstandar only checks
the result of a command if it has a session. So the problem is that the
commands which use respuestaEstandar without a session can return an
error, but the ogAdmServer always works as no error would occur.
This commit changes the behaviour of respuestaEstadar to always check
the result of a command, whether it has a session or not.
|
|
|
|
|
|
|
|
| |
This test covers 3 scenarios:
1. Correct usage.
2. Incorrect usage, without payload.
3. Incorrect usage, use this command with GET.
|
|
|
|
|
|
|
|
| |
This test covers 3 scenarios:
1. Correct usage.
2. Incorrect usage, without payload.
3. Incorrect usage, use this command with GET.
|
|
|
|
|
|
|
|
| |
This test covers 3 scenarios:
1. Correct usage.
2. Incorrect usage, without payload.
3. Incorrect usage, use this command with GET.
|