Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Use state machine to avoid race condition problems | Alvaro Neira Ayuso | 2020-02-23 | 1 | -11/+63 | |
| | | | | | | This patch allows us to control the thread using a state machine. This state machine controls if the client is busy or not. This new way to control the threads give us more control for avoiding race condition problems. | |||||
* | remove unused getters | OpenGnSys Support Team | 2020-02-21 | 1 | -18/+0 | |
| | ||||||
* | pep-0008 cleanup | OpenGnSys Support Team | 2020-02-21 | 3 | -46/+46 | |
| | | | | | | | From pep-0008: Method Names and Instance Variables Use the function naming rules: lowercase with words separated by underscores as necessary to improve readability. | |||||
* | Use 'bash' as the default shell for operations scripts | Roberto Hueso Gómez | 2020-02-09 | 1 | -12/+28 | |
| | ||||||
* | Use 'with' keyword for file reading | Roberto Hueso Gómez | 2020-02-05 | 1 | -9/+4 | |
| | | | | | | This is applied to /software and /hardware file reads. We should use 'with' instead of opening and closing a file since this prevents that files stay open after an exception is raised. | |||||
* | Use python f-strings for commands composition | Roberto Hueso Gómez | 2020-02-05 | 1 | -14/+13 | |
| | ||||||
* | Fix /session execution | Roberto Hueso Gómez | 2020-02-05 | 1 | -1/+4 | |
| | | | | The script now reads arguments correctly. | |||||
* | Fix /image/restore execution and response | Roberto Hueso Gómez | 2020-02-05 | 2 | -1/+10 | |
| | ||||||
* | Fix /image/create execution and response | Roberto Hueso Gómez | 2020-02-05 | 2 | -7/+12 | |
| | ||||||
* | Convert main file from dos format to unix format | Alvaro Neira Ayuso | 2020-02-04 | 1 | -28/+28 | |
| | | | | Change from dos format to unix the whole main file. | |||||
* | (BUG) Rename OG_SCRIPT_PATH to OG_PATH | Alvaro Neira Ayuso | 2020-02-04 | 1 | -2/+2 | |
| | ||||||
* | Fix /setup execution and response | Roberto Hueso Gómez | 2020-02-03 | 2 | -16/+17 | |
| | ||||||
* | Fix parseGetConf(...) configuration parsing | Roberto Hueso Gómez | 2020-02-03 | 3 | -27/+29 | |
| | | | | This patch also reformats the response to the /refresh command. | |||||
* | add space after Content-Length and Content-Type | OpenGnSys Support Team | 2020-01-28 | 9 | -36/+36 | |
| | | | | ogAdmServer needs this space to work fine. | |||||
* | Add /refresh test | Roberto Hueso Gómez | 2020-01-21 | 1 | -0/+43 | |
| | | | | This test covers a correct request. | |||||
* | Change POST /refresh to GET /refresh | Roberto Hueso Gómez | 2020-01-21 | 2 | -6/+6 | |
| | | | | | This patch changes the HTTP method for /refresh and cleans up the implementation of the /refresh Linux operator. | |||||
* | Fix /software command Linux operation | Roberto Hueso Gómez | 2020-01-21 | 3 | -5/+12 | |
| | | | | | This patch runs the script InventarioSoftware with the right arguments. This also increases the recv buffer size for the test server. | |||||
* | Add /software test | Roberto Hueso Gómez | 2020-01-21 | 1 | -0/+38 | |
| | | | | This test covers a correct request. | |||||
* | Fix /shell/run commands splitting | Roberto Hueso Gómez | 2020-01-21 | 3 | -3/+3 | |
| | | | | This patch splits shell commands either with ';' or '\n'. | |||||
* | Fix /hardware command Linux operation | Roberto Hueso Gómez | 2020-01-21 | 2 | -3/+6 | |
| | | | | This patch runs the script InventarioHardware with the right arguments. | |||||
* | Add /hardware tests | Roberto Hueso Gómez | 2020-01-21 | 1 | -0/+32 | |
| | | | | This tests covers a correct request. | |||||
* | Add test for /run/schedule | Roberto Hueso Gómez | 2020-01-19 | 1 | -0/+28 | |
| | | | | This test covers a correct request. | |||||
* | Add test for non-existent function | Roberto Hueso Gómez | 2020-01-19 | 1 | -0/+33 | |
| | ||||||
* | Add test for sequential /shell/run requests | Roberto Hueso Gómez | 2020-01-19 | 1 | -2/+25 | |
| | | | | | | This also fixes test bugs in the cases: - Malformed json - No json | |||||
* | Add /probe tests for multiple probes and extra parameter in json | Roberto Hueso Gómez | 2020-01-19 | 1 | -3/+32 | |
| | ||||||
* | Remove unnecessary variables from test server | Roberto Hueso Gómez | 2020-01-19 | 1 | -3/+0 | |
| | ||||||
* | (Clean-Up) Rename all the functions in ogRest to new ones more clears | Alvaro Neira Ayuso | 2020-01-19 | 2 | -42/+32 | |
| | ||||||
* | (Clean-Up) Rename HTTPParser file to restRequest | Alvaro Neira Ayuso | 2020-01-19 | 2 | -1/+1 | |
| | ||||||
* | (Clean-Up) Modify restResponse to get the response using constructor and get ↵ | Alvaro Neira Ayuso | 2020-01-19 | 1 | -40/+81 | |
| | | | | function | |||||
* | (Clean-Up) Rename HTTPParser to restRequest | Alvaro Neira Ayuso | 2020-01-19 | 4 | -79/+79 | |
| | ||||||
* | (Clean-Up) Rename cmd variable to body | Alvaro Neira Ayuso | 2020-01-19 | 1 | -15/+15 | |
| | ||||||
* | (Clean-Up) Rename cmd function/variables to use "run" syntax | Alvaro Neira Ayuso | 2020-01-19 | 3 | -6/+6 | |
| | ||||||
* | (Clean-Up) Rename jsoncmd variable to json_param | Alvaro Neira Ayuso | 2020-01-19 | 1 | -14/+14 | |
| | ||||||
* | Improve /image/create command response | Alvaro Neira Ayuso | 2020-01-19 | 2 | -0/+14 | |
| | | | | | | | | | | | With this new patch, the image/create command will create a response message with more information for the server. The new format is: {"disk" : "1", "partition" : "1", "code" : "1", "id" : "1", "name" : "test", "repository" : "192.168.2.4", "software" : "xyz"} "xyz" will be the output saved during the execution of InventarioSoftware in a specific path. | |||||
* | Add Refresh command | Alvaro Neira Ayuso | 2020-01-19 | 2 | -16/+57 | |
| | | | | | | | | | | | | This patch allows us to execute refresh command using ogClient. This command gets all the configuration in our machine and send this information to the server. The format of the message that ogClient will send to the server will be: {"disk": "1", "partition_setup": [{"partition": "1", "code": "LINUX", "filesystem": "NTFS", "size": "498688", "format": "0"}, {"partition": "2", "code": "LINUX", "filesystem": "NTFS", "size": "498688", "format": "0"}, {"partition": "3", "code": "LINUX", "filesystem": "NTFS", "size": "498688", "format": "0"}]} | |||||
* | Add image/create command for creating a new image | Alvaro Neira Ayuso | 2020-01-19 | 2 | -0/+43 | |
| | | | | | | | | | | | | | | | | This patch allows us to use a new support for creating images using ogClient. ogClient receives from the server a message which json body must be: {"disk" : "1", "partition" : "1", "code" : "1", "id" : "1", "name" : "test", "repository" : "192.168.2.4" } ogClient returns to the server the software inventory executed before create the image. The message for the server is: { "disk" : "0", "partition" : "1", "software" : "xyz" } "xyz" will be the output saved during the execution of InventarioSoftware in a specific path. | |||||
* | (BUG) Include client parameter in restore command | Alvaro Neira Ayuso | 2020-01-19 | 1 | -1/+1 | |
| | ||||||
* | Include License header | Alvaro Neira Ayuso | 2020-01-19 | 14 | -1/+109 | |
| | ||||||
* | Add stop command | Alvaro Neira Ayuso | 2020-01-19 | 2 | -35/+71 | |
| | | | | | This patch includes a new support for stopping all the process running on the ogClient. | |||||
* | Execute cmd command using thread | Alvaro Neira Ayuso | 2020-01-19 | 1 | -19/+18 | |
| | | | | This patch prepares the code for future stop command. | |||||
* | Fix echo check for process_shellrun in ogRest | Roberto Hueso Gómez | 2020-01-19 | 1 | -1/+1 | |
| | ||||||
* | Add /shell/run tests | Roberto Hueso Gómez | 2020-01-19 | 1 | -0/+65 | |
| | | | | | | | | These tests cover: - Correct request with echo - Correct request without echo - No json request - Malformed json request | |||||
* | Change /probe from GET to POST in ogClient | Roberto Hueso Gómez | 2020-01-19 | 1 | -3/+3 | |
| | ||||||
* | Adapt client responses to the server's | Roberto Hueso Gómez | 2020-01-19 | 1 | -6/+9 | |
| | | | | Header parameters need to be sorted for the test server. | |||||
* | Fix ogClient socket.error typo | Roberto Hueso Gómez | 2020-01-19 | 1 | -1/+2 | |
| | ||||||
* | Add /probe tests | Roberto Hueso Gómez | 2020-01-19 | 1 | -0/+42 | |
| | | | | | | | These tests cover: - Correct request - No json request - Malformed json request | |||||
* | Add unit testing basic structure | Roberto Hueso Gómez | 2020-01-19 | 4 | -0/+66 | |
| | ||||||
* | Change ogClient.py encoding from dos to unix | Roberto Hueso gomez | 2020-01-19 | 1 | -123/+123 | |
| | ||||||
* | Include echo option for returning shell output | Alvaro Neira Ayuso | 2020-01-19 | 2 | -17/+15 | |
| | | | | | | | | | This patch adds a new echo option in /shell/run command. In case that the option is set up to true, the server will receive in the response a json with the shell output. Otherwise, the server will receive a response message without json body. A side effect of this change is that the command /shell/output/ disapears. | |||||
* | Send OPG (opengnsys) status when a probe command is received | Alvaro Neira Ayuso | 2020-01-19 | 1 | -1/+3 | |
| |