summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add mode selection for ogClientRoberto Hueso Gomez2020-04-084-20/+35
|
* Encapsulate operations in classesRoberto Hueso Gomez2020-04-082-515/+517
|
* Add virtual operationsRoberto Hueso Gomez2020-04-072-0/+403
|
* add shebang to python3 and update permissionOpenGnSys Support Team2020-03-311-0/+2
|
* Rename config fileJavier Sanchez Parra2020-03-242-1/+1
| | | | | This commit changes the name of the config file from ogagent.cfg to ogclient.cfg.
* missing update to use ogConfig.OG_PATH in linux/ogOperations.pyOpenGnSys Support Team2020-03-201-1/+1
|
* Make OG_PATH publicJavier Sanchez Parra2020-03-203-14/+17
| | | | | This commit changes the OG_PATH to a public varible of the class ogConfig. This way we improve the configurability of the path.
* rename getURI to get_uri in restRequestOpenGnSys Support Team2020-03-092-2/+2
|
* rename execcmd to shellrunOpenGnSys Support Team2020-03-091-2/+2
|
* use lowercase attribute name in restRequestOpenGnSys Support Team2020-03-091-13/+13
|
* Put state to IDLE after run/scheduleRoberto Hueso Gómez2020-03-031-0/+1
|
* Send complete HTTP header when response has no bodyRoberto Hueso Gómez2020-03-021-1/+2
|
* Rename operation to methodOpenGnSys Support Team2020-02-263-8/+8
| | | | As defined by the HTTP standard.
* Search the key in the parsed jsonJavier Sanchez Parra2020-02-261-13/+12
| | | | | | | | | | | | | | | | | | | | | Testing the ogClient I found that if a value of the json match a key the ogClient has an exception. For example: body = "... shell/run {"run": "fdisk -l"} ..." CURRENT Enters in if "disk" in body:... if "run" in body:... EXPECTED Enters in if "run" in body:... This commit changes the behaviour to search for the keys in the dictionary returned by json.loads() instead of searching in the raw string. This way the ogClient looks for the keys without searching in the values.
* Handle scripts that end in \rRoberto Hueso Gómez2020-02-251-1/+1
|
* Launch the graphical interfaceJavier Sánchez Parra2020-02-242-0/+5
| | | | | This patch adds the launching of the browser that works as interface for the users in ogLive.
* Modify way to close PID processAlvaro Neira Ayuso2020-02-241-12/+17
| | | | | | With our client disconnection, we hid that the ogClient process will be closed too. This new way only close the subprocess keeping the ogClient still working.
* Use state machine to avoid race condition problemsAlvaro Neira Ayuso2020-02-231-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 gettersOpenGnSys Support Team2020-02-211-18/+0
|
* pep-0008 cleanupOpenGnSys Support Team2020-02-213-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 scriptsRoberto Hueso Gómez2020-02-091-12/+28
|
* Use 'with' keyword for file readingRoberto Hueso Gómez2020-02-051-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 compositionRoberto Hueso Gómez2020-02-051-14/+13
|
* Fix /session executionRoberto Hueso Gómez2020-02-051-1/+4
| | | | The script now reads arguments correctly.
* Fix /image/restore execution and responseRoberto Hueso Gómez2020-02-052-1/+10
|
* Fix /image/create execution and responseRoberto Hueso Gómez2020-02-052-7/+12
|
* Convert main file from dos format to unix formatAlvaro Neira Ayuso2020-02-041-28/+28
| | | | Change from dos format to unix the whole main file.
* (BUG) Rename OG_SCRIPT_PATH to OG_PATHAlvaro Neira Ayuso2020-02-041-2/+2
|
* Fix /setup execution and responseRoberto Hueso Gómez2020-02-032-16/+17
|
* Fix parseGetConf(...) configuration parsingRoberto Hueso Gómez2020-02-033-27/+29
| | | | This patch also reformats the response to the /refresh command.
* add space after Content-Length and Content-TypeOpenGnSys Support Team2020-01-289-36/+36
| | | | ogAdmServer needs this space to work fine.
* Add /refresh testRoberto Hueso Gómez2020-01-211-0/+43
| | | | This test covers a correct request.
* Change POST /refresh to GET /refreshRoberto Hueso Gómez2020-01-212-6/+6
| | | | | This patch changes the HTTP method for /refresh and cleans up the implementation of the /refresh Linux operator.
* Fix /software command Linux operationRoberto Hueso Gómez2020-01-213-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 testRoberto Hueso Gómez2020-01-211-0/+38
| | | | This test covers a correct request.
* Fix /shell/run commands splittingRoberto Hueso Gómez2020-01-213-3/+3
| | | | This patch splits shell commands either with ';' or '\n'.
* Fix /hardware command Linux operationRoberto Hueso Gómez2020-01-212-3/+6
| | | | This patch runs the script InventarioHardware with the right arguments.
* Add /hardware testsRoberto Hueso Gómez2020-01-211-0/+32
| | | | This tests covers a correct request.
* Add test for /run/scheduleRoberto Hueso Gómez2020-01-191-0/+28
| | | | This test covers a correct request.
* Add test for non-existent functionRoberto Hueso Gómez2020-01-191-0/+33
|
* Add test for sequential /shell/run requestsRoberto Hueso Gómez2020-01-191-2/+25
| | | | | | This also fixes test bugs in the cases: - Malformed json - No json
* Add /probe tests for multiple probes and extra parameter in jsonRoberto Hueso Gómez2020-01-191-3/+32
|
* Remove unnecessary variables from test serverRoberto Hueso Gómez2020-01-191-3/+0
|
* (Clean-Up) Rename all the functions in ogRest to new ones more clearsAlvaro Neira Ayuso2020-01-192-42/+32
|
* (Clean-Up) Rename HTTPParser file to restRequestAlvaro Neira Ayuso2020-01-192-1/+1
|
* (Clean-Up) Modify restResponse to get the response using constructor and get ↵Alvaro Neira Ayuso2020-01-191-40/+81
| | | | function
* (Clean-Up) Rename HTTPParser to restRequestAlvaro Neira Ayuso2020-01-194-79/+79
|
* (Clean-Up) Rename cmd variable to bodyAlvaro Neira Ayuso2020-01-191-15/+15
|
* (Clean-Up) Rename cmd function/variables to use "run" syntaxAlvaro Neira Ayuso2020-01-193-6/+6
|
* (Clean-Up) Rename jsoncmd variable to json_paramAlvaro Neira Ayuso2020-01-191-14/+14
|