Irina Gomez
9345a1f2b2
opengnys_installer.sh: fix error whereby the script failed to try to install an ogLive that does not exist.
2019-07-24 11:48:49 +02:00
Ramón M. Gómez
b267eea5b6
Merge branch 'devel-browser-newlinks' of opengnsys.es:/git/opengnsys into devel-browser-newlinks
2019-07-18 12:29:12 +02:00
Ramón M. Gómez
8a6f72ca93
#919 : Fix bug with quotation marks in constants.
2019-07-18 12:27:43 +02:00
Ramón M. Gómez
b80fba23ac
#919 : Defining new link types accepted by the Browser: command+confirm, command+output, command+confirm+output.
2019-07-18 12:27:43 +02:00
Ramón M. Gómez
fb89022838
#919 : Fix bug with quotation marks in constants.
2019-07-18 12:25:49 +02:00
Javier Sánchez Parra
9e0f6c9c07
#915 adds tests for a non existent method
...
This test adds four new error test cases:
1. Non existent method with POST.
2. Non existent method with GET.
3. Non existent method with POST but with wrong API token.
4. Non existent method with POST but without json.
2019-07-15 09:53:40 +02:00
Javier Sánchez Parra
f06fcf6fc0
#915 returns 401 when incorrect authentication happens
...
ogAdmServer REST API now meets the starndar RFC 7235 when incorrect auth
happens.
og_client_not_authorized() now sends "401 Unauthorized" and
"WWW-Authenticate" instead of 404.
2019-07-15 09:51:53 +02:00
Javier Sánchez Parra
4f39a99956
#915 adds test for POST /software REST API
...
This test covers two two scenarios:
1. Correct usage.
2. Incorrect usage, use this command with GET (this returns http 405).
2019-07-15 09:51:22 +02:00
Javier Sánchez Parra
59c16e0681
#915 adds test for POST /hardware REST API
...
This test covers two two scenarios:
1. Correct usage.
2. Incorrect usage, use this command with GET (this returns http 405).
2019-07-15 09:51:03 +02:00
Javier Sánchez Parra
fcf27c17c4
#915 adds test for POST /refresh REST API
...
This test covers two two scenarios:
1. Correct usage.
2. Incorrect usage, use this command with GET (this returns http 405).
2019-07-15 09:50:43 +02:00
Javier Sánchez Parra
072122ad1d
#915 adds test for POST /stop REST API
...
This test covers two two scenarios:
1. Correct usage.
2. Incorrect usage, use this command with GET (this returns http 405).
2019-07-15 09:50:21 +02:00
Javier Sánchez Parra
ec0fd6d4ed
#915 adds test for POST /reboot REST API
...
This test covers two two scenarios:
1. Correct usage.
2. Incorrect usage, use this command with GET (this returns http 405).
2019-07-15 09:49:51 +02:00
Javier Sánchez Parra
ec85645c9a
#915 adds test for POST /poweroff REST API
...
This test covers two two scenarios:
1. Correct usage.
2. Incorrect usage, use this command with GET (this returns http 405).
2019-07-15 09:49:04 +02:00
Javier Sánchez Parra
5907a07fcc
#915 tests correct command, /session
...
This should test /shell/run instead of /session
2019-07-15 09:47:38 +02:00
Javier Sánchez Parra
bf17dde05a
#559 fixes memory leak in tomaConfiguracion()
...
Calls fclose() after fopen() to release memory.
2019-07-15 09:44:42 +02:00
Javier Sánchez Parra
1cb36eb7c3
#915 Improve test output using unittest discover
...
* Call the tests with python module unittest. In particular, the
discover function.
* Rename tests files to meet the default requirements of discover
function.
2019-07-05 17:41:26 +02:00
Javier Sánchez Parra
96cced97a8
#915 adapt web to use new software cmd in REST API
...
SocketHidra software (inventario software) has been replaced by
POST /software.
2019-07-03 02:56:07 +02:00
Javier Sánchez Parra
db537e7658
#915 adapt web to use new hardware cmd in REST API
...
SocketHidra hardware (inventario hardware) has been replaced by
POST /hardware.
2019-07-03 02:56:07 +02:00
OpenGnSys Support Team
a0f41fca6e
#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.
2019-07-03 02:56:07 +02:00
OpenGnSys Support Team
1316c877b4
#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.
2019-07-03 02:56:07 +02:00
Juan Manuel Bardallo
6d71b90b2a
ogGetEsp has been modified to handle with nvme disks, in that case, blkid returns
...
> /dev/loop0
> /dev/nvme0n1
> /dev/nvme0n1p1
When ogDevToDisk processes the line /dev/nvme0n1, $PART contains only one argument corresponding to the disk number, when occurs, ogGetPartitionId throws an error.
2019-07-01 11:49:05 +02:00
Ramón M. Gómez
f08c09013b
#919 : Defining new link types accepted by the Browser: command+confirm, command+output, command+confirm+output.
2019-06-27 16:22:27 +02:00
Juan Manuel Bardallo
102a50e655
#906 : Fix bug when defining a cache partition on NVMe disks.
2019-06-27 10:27:53 +02:00
Javier Sánchez Parra
31c92b681b
#915 Correct config file route in web API REST lib
...
The "magic" constant __DIR__ ensure a correct route regardless of where
the methods are used
2019-06-25 21:51:16 +02:00
Javier Sánchez Parra
ef61154356
#915 Add API token to common_request() in web console
...
Add token parameter in REST API infrastructure in the web console.
2019-06-24 13:51:22 +02:00
Javier Sánchez Parra
091a2b1a68
#915 Add API token to tests in ogAdmServer/tests/units/*
...
Add token parameter in REST API test infrastructure.
2019-06-24 13:50:43 +02:00
Javier Sánchez Parra
8948748c0c
#915 update installer to add APITOKEN= to ogAdmServer.cfg
...
This is going to be used to protect calls to ogAdmServer
Example line for ogAdmServer.cfg:
APITOKEN=9b5fddfc5d4d1daa74ffd7ce7c3c9925
2019-06-24 13:46:10 +02:00
OpenGnSys Support Team
2ccec27843
#915 add support for HTTP Authorization
...
Add APITOKEN= field to ogAdmServer.cfg to specify the REST API key.
2019-06-24 13:42:25 +02:00
Ramón M. Gómez
72d929592a
#914 : Fixed bug in commit {{{6a2bd87}}} and {{{5050850}}}.
2019-06-17 19:08:08 +02:00
Irina Gomez
418feb1835
#802 #888 ogRefindInstall: ogRefindInstall: rEFInd bootloader is signed with OpenGnsys certificate.
2019-06-13 13:16:30 +02:00
Ramón M. Gómez
5050850175
#802 : Creating certificate to sign boot loaders.
2019-06-13 11:05:35 +02:00
Javier Sánchez Parra
676dd3cbc1
#915 Remove unnecessary return in ogAdmServer/tests/run-tests.py
...
No need to explicit return call, remove it.
2019-06-12 11:02:47 +02:00
Javier Sánchez Parra
41ceac07c5
#915 Remove unused parameter to common_request()
...
Remove unused parameter in REST API infrastructure.
2019-06-12 11:01:53 +02:00
Javier Sánchez Parra
d2a9dd877b
#896 Fix memory leak in wake_up_broadcast()
...
call freeifaddrs() after getifaddrs() to release memory.
2019-06-12 11:01:33 +02:00
Javier Sánchez Parra
e378505f11
#915 The order of the json field is irrelevant in GET /clients
...
Either:
{ "addr" : "192.168.2.1", "state" : "OPG" }
or:
{ "state" : "OPG", "addr" : "192.168.2.1" }
should be accepted, this patch updates the web console parser to accept
both.
2019-06-11 11:50:52 +02:00
Irina Gomez
25d4404fde
#802 Advanced Boot Management sends to 'sendclientmode' script access data to the database as environment variables.
2019-06-10 11:46:26 +02:00
Ramón M. Gómez
0b856b4d06
#914 : Simplyfing oglivecli code.
2019-06-07 14:10:15 +02:00
Ramón M. Gómez
aa9c5f26c9
#914 : Updating README.md and .gitignore files.
2019-06-07 14:08:58 +02:00
Ramón M. Gómez
72d19dab15
#914 : Script {{{oglivecli}}} checks if installed ogLive images are fully compatible.
2019-06-07 12:54:06 +02:00
Ramón M. Gómez
30f8b1dad3
#914 : Install/update the new ogLive release.
2019-06-07 11:49:22 +02:00
Ramón M. Gómez
8cb279bc1c
#888 #914 : Updating UEFI requisites.
2019-06-07 11:17:44 +02:00
Ramón M. Gómez
6a2bd87032
#914 : Removing redundant permissions.
2019-06-07 11:16:31 +02:00
Ramón M. Gómez
3b5c09aa53
#903 : Fix bug when returning duplicate check value.
2019-06-07 10:17:35 +02:00
Ramón M. Gómez
c0e670b9d9
#844 : Fix bug copying files when preparing ogLive client for offline mode.
2019-06-06 13:47:37 +02:00
Ramón M. Gómez
66b04ffce1
#914 Fix ogLive version to be installed.
2019-06-05 13:57:36 +02:00
Irina Gomez
94c6b3a7a2
Merge branch 'devel' into uefi
...
Fast Foward
2019-06-05 13:31:06 +02:00
Ramón M. Gómez
5c82233260
#916 : Setting default values when installing using not interactive mode.
2019-06-05 11:56:54 +02:00
Irina Gomez
527cd97eb5
#802 #888 #890 ogNvramAddEntry function allows disk and partition as params and creates a entry with 'Part-D-P' name that uses generic loader of OpenGnsys. ogGrubInstall uses shimx64.efi.signed of ogLive Ubuntu 18. Previously this function used shim of tftp of server.
2019-06-05 11:24:51 +02:00
Ramón M. Gómez
12e1eef901
#913 : Adapting commit {{{0fcdc63}}} from master branch.
2019-06-05 10:30:39 +02:00
Ramón M. Gómez
a765b4ae5d
#914 : Fix version number.
2019-06-05 09:47:00 +02:00