Граф коммитов

95 Коммитов

Автор SHA1 Сообщение Дата
Nora Koirala 20aab136de rm main dir 2024-09-19 10:21:16 -07:00
Nora Koirala 299460c00c support for FIPS140-3 2024-09-19 10:12:09 -07:00
Viv Lingaiah 827fa13516
Use success state instead of warning for dummy status files during Upgrade (#38) 2024-08-21 09:17:34 -07:00
Viv Lingaiah 71f12d48fe
Do not write status file on Disable, Update. Create dummy status files during update if needed. (#37)
* Do not write status for Disable, Update. Create dummy status files during update if not available

* Address feedback
2024-08-20 09:35:19 -07:00
birukyitbarek 7a62c8b5c6
Merge pull request #36 from Azure/dev/biruky/upversion_RCv2
Upversion RCv2
2024-08-19 14:34:36 -07:00
birukyitbarek c760ddb4ce Upversion RCv2 2024-08-19 13:57:29 -07:00
Filiberto Fuentes f5de2958b5
Adding workflow to run unit test on PR creation and after merge #35 2024-08-16 11:39:07 -07:00
Viv Lingaiah 4c719e5310
Copy .status status files during update so that status of previously executed extensions are returned (#34)
* Fix rerun of previously executed Run Commands during update

* Use defer while closing files

* Use Open instead of OPenfile for reading file

* Copy .status files during update

* Minor message change
2024-08-08 08:19:05 -07:00
Viv Lingaiah 2000dd8d43
Fix rerun of previously executed Run Commands during update (#33)
* Fix rerun of previously executed Run Commands during update

* Use defer while closing files

* Use Open instead of OPenfile for reading file
2024-08-07 13:11:25 -07:00
Vivek Lingaiah b2bd4d8f10 Revert "Fix Linux Run Command rerun"
This reverts commit 34e4bfb493.
2024-08-07 16:55:26 +00:00
Vivek Lingaiah 34e4bfb493 Fix Linux Run Command rerun 2024-08-07 16:37:03 +00:00
Filiberto Fuentes 09f3f62cf3
Fix update functionality for Immediate Run Command and other improvements (#32)
* Add changes to get the current installed version and check if it needs to be uninstalled

* Add new unit tests for the update functionality

* Revert chmod changes

* Remove unused method and add comments for how the version is extracted from the service definition

* Remive unnecessary change

* Fix functionality for the update/uninstall/disable commands for immediate run command

* Add new unit tests to verify the extraction of the installed version of the service is correct

* Move env variable to a constant and re-use through the code. Fix a typo in sentence. Declare a constant value for the agent location.

* Fix the telemetry events path
2024-04-16 14:11:27 -07:00
Joseph Calev 7d506894dc
Updates go version and runs go mod tidy (#31) 2024-04-11 11:18:17 -07:00
Filiberto Fuentes 99aa0fae5c
Merge pull request #28 from fifuente/dev/fifuente/InstallAsService
PR with initial Run Command extension changes
2024-04-02 10:22:02 -07:00
Filiberto Fuentes 35f4f741bf Remove chmod changes made to files 2024-04-02 10:03:20 -07:00
Filiberto Fuentes f6a1f02971 Merge with main and fix conflicts. 2024-04-02 09:27:58 -07:00
Joseph Calev e8a80d1dd5
Removes schema validation (#30) 2024-03-06 14:35:42 -08:00
Filiberto Fuentes 35ff399ed0 Fix update mechanism 2024-03-04 21:30:18 +00:00
Filiberto Fuentes 9b3a27b7b7 Resolve merge conflict 2024-03-04 18:31:39 +00:00
Filiberto Fuentes 7792239d75 Fix unit tests 2024-03-04 18:25:51 +00:00
Filiberto Fuentes 5d2845370c Remove unnecessary daemon reload 2024-02-15 22:37:43 +00:00
Filiberto Fuentes 82bce74785 Change installation paths 2024-02-14 22:51:11 +00:00
Filiberto Fuentes 98853739a4 Report not supported operation when system does not support systemd 2024-02-14 22:00:48 +00:00
Parag Patil 825af90ee3
Improved instanceView output and error handling so that stdout and stderr logs are available in case of failed script execution (#29) 2024-02-07 14:18:05 -08:00
Filiberto Fuentes e4fea535a4 Modify status tests and add new ones for reporting to blob status 2024-01-30 22:34:02 +00:00
Filiberto Fuentes 6593c7c397 added tests for settings 2024-01-30 21:29:03 +00:00
Filiberto Fuentes 5f58a4864b Add tests for hostgacommunicator 2024-01-30 19:40:30 +00:00
Filiberto Fuentes 8cce552e71 Add tests for goalstatefromvmsettings 2024-01-30 18:24:15 +00:00
Filiberto Fuentes b88fac0a5d Add unit tests for commandprocessor. Fix a bug where the logger wasn't being correctly initalized with the sequence number 2024-01-30 17:56:21 +00:00
Filiberto Fuentes 1aae11ac37 Added wave 1 of missing unit tests and made some changes to have only one failure root for download directories 2024-01-29 23:11:55 +00:00
Filiberto Fuentes fcaae676f9 Add option to use custom download folders for standard and immediate run command 2024-01-26 23:04:15 +00:00
Filiberto Fuentes a465c00fcd Fix log message 2024-01-26 22:52:12 +00:00
Filiberto Fuentes a657a3ebf5 Redirect output to log file only used for IRC. Reduce the time to poll for a new goal state 2024-01-26 22:51:12 +00:00
Filiberto Fuentes 9684bc1c1a Remove comment 2024-01-25 21:54:20 +00:00
Filiberto Fuentes 49e469df43 Cleanup all files when running an immediate run command 2024-01-25 21:36:14 +00:00
Filiberto Fuentes ad3f5f1523 Add code to report status to API and delegate from immediate run commands 2024-01-24 22:55:30 +00:00
Filiberto Fuentes 4cbe3efcdc Fix unit tests and encapsulate seqNum and extName into the RCMetadata object. Add changes to be able to overwrite the write status report function 2024-01-23 22:58:07 +00:00
Filiberto Fuentes 26d849f4d7 Split cmds code into cmds and immediate cmds to better differentiate immediate run command functionality 2024-01-23 22:15:09 +00:00
Filiberto Fuentes b448ebb295 Move logs to include the extension name related to the command to be executed. 2024-01-23 19:47:31 +00:00
Filiberto Fuentes 4a0d3e6d24 Add small part to be able to indicate via the body to install the extension as a service 2024-01-23 19:22:44 +00:00
Filiberto Fuentes d64b17c721 Make updates to support executing immediate run commands and preserving needed metadata for the run to succeed (e.g., pid, downloaddir, seqNo, etc...) 2024-01-23 18:51:05 +00:00
Filiberto Fuentes 2203bf0dd3 Split main.go into 2 executables to have an immediate-run-command binary. Update makefile 2024-01-20 00:38:51 +00:00
Filiberto Fuentes 21c7ac9752 Generate mod file 2024-01-19 18:16:18 +00:00
Filiberto Fuentes 9a6af417ba Fixed functions to invoke for each RC operation 2024-01-18 22:29:49 +00:00
Filiberto Fuentes 434a983bb6 Merge conflict 2024-01-18 19:09:10 +00:00
Filiberto Fuentes 5bb98b276b Reorganize code to be able to re-use functionalities in immediate run command and split the main package in smaller packages 2024-01-18 18:27:42 +00:00
Filiberto Fuentes 81f9bcf2af Add changes to execute method to handle goal states concurrently. 2024-01-17 17:24:41 +00:00
Joseph Calev 895971d95c
Adds support for extra artifact downloads to Linux RCV2 (#27)
* initial checkin

* adds unit tests
2024-01-16 15:56:17 -08:00
Filiberto Fuentes 1fd0b7de8a Add changes to validate cert thumbprint signature. Refactor code to reuse handler env functionalities 2024-01-16 22:20:23 +00:00
Filiberto Fuentes be9c529ae7 refactor linux extension to reuse some of the handler settings functionality. Add code to retrieve vm settings from API and create a process that constantly pings the API. Verify that goal states returned belong to run command handler. 2024-01-11 19:10:08 +00:00