Chris McCarthy
81bcf99855
#2646 - Added a custom pre-commit hook that ensure the copyright clause is added to .py and .rst files.
2024-06-05 09:11:37 +01:00
Chris McCarthy
18c837ff0e
#2561 - Fixed issue relating to no access to software manager from inside service during install
2024-05-20 16:16:19 +01:00
Chris McCarthy
7a404773ac
#2561 - Ran pre-commit hook
2024-05-20 12:44:58 +01:00
Chris McCarthy
e2f061fde0
#2561 - Set the DatabaseServer service to automatically install the upon install to enable backup. Added some defensive statements that gracefully handle backup/restore requests when FTPClient is not installed.
2024-05-13 07:58:43 +01:00
Charlie Crane
5ee23dcb17
Merged PR 348: #2462 - Refactor of DatabaseClient and DatabaseServer
...
## Summary
Refactor of `DatabaseClient` and `DatabaseService` to update how connection IDs are generated. These are now provided by DatabaseService when establishing a connection.
Creation of `DatabaseClientConnection` class. This is used by `DatabaseClient` to hold a dictionary of active db connections.
## Test process
Tests have been updated to reflect the changes and all pass
## Checklist
- [X] PR is linked to a **work item**
- [X] **acceptance criteria** of linked ticket are met
- [X] performed **self-review** of the code
- [X] written **tests** for any new functionality added with this PR
- [X] updated the **documentation** if this PR changes or adds functionality
- [ ] written/updated **design docs** if this PR implements new functionality
- [X] updated the **change log**
- [X] ran **pre-commit** checks for code style
- [X] attended to any **TO-DOs** left in the code
Related work items: #2462
2024-04-26 14:52:21 +00:00
Czar Echavez
b8d4a8cc8d
#2470 : changed default log level to warning + changed sys logging in code to be more aligned with severity of messages
2024-04-19 11:37:52 +01:00
Marek Wolan
0828f70b4c
#2459 back-sync b8 changes into core
2024-04-15 11:50:08 +01:00
Czar Echavez
383cf051df
#2448 : store last query response for db client
2024-04-04 14:17:34 +01:00
Czar Echavez
989e7481f3
#2437 : fix the visible health status not being carried on after restoring backup file
2024-04-02 15:10:48 +01:00
Cristian-VM2
5860c74ef9
#2404 change software state from patching to fixing to align with CAOS v0.8
2024-03-26 16:41:11 +00:00
Cristian-VM2
944b248300
#2404 rename software patch to fix
2024-03-26 10:51:33 +00:00
Marek Wolan
2a1d99ccce
Fix problem with checking connection for db admin
2024-03-01 16:36:41 +00:00
Czar Echavez
eefc2739c8
Merge remote-tracking branch 'origin/dev' into feature/2257-router-routes-cannot-be-represented-in-config-file
2024-02-29 11:34:56 +00:00
Czar Echavez
d738a23709
#2257 : list of db payloads
2024-02-26 11:35:17 +00:00
Marek Wolan
a34cf08209
Merge remote-tracking branch 'origin/dev' into feature/2317-refactor-reset
2024-02-25 16:41:40 +00:00
Czar Echavez
fb148dc4fb
#2257 : applications and services docs
2024-02-23 16:49:01 +00:00
Marek Wolan
72f4cc0a50
Remove reset methods from most classes
2024-02-20 16:56:25 +00:00
Marek Wolan
f82506023b
Delete set_original_state method definitions
2024-02-20 16:29:27 +00:00
Nick Todd
4a38672fea
2306: Handle INSERT query
2024-02-14 13:18:20 +00:00
Marek Wolan
e500eccaf7
Finish upgrading folder actions to work with names instead of uuids & get tests fixed
2024-02-06 16:58:08 +00:00
Marek Wolan
def52f94e3
Add docstrings and update typos
2024-01-30 09:56:16 +00:00
Marek Wolan
555802baaa
Merge remote-tracking branch 'origin/dev' into dev-v3.0.0b6
2024-01-29 10:26:28 +00:00
Marek Wolan
edc9772d0a
Fix typo in database restore
2024-01-15 10:10:30 +00:00
Marek Wolan
728f80cc21
Temporarily disable file delete action
2024-01-15 09:48:14 +00:00
Marek Wolan
842e59f596
Database patch
2024-01-11 15:40:37 +00:00
Marek Wolan
1505d08721
Fix backup issues and align with Yak
2024-01-10 18:04:48 +00:00
Marek Wolan
66a42ebc69
Make database failure based on file status not service status
2024-01-10 13:06:48 +00:00
Czar Echavez
a4d372d3eb
#2151 : utilise set_health_state method instead of directly changing software states
2024-01-09 16:29:40 +00:00
Czar Echavez
592e1a3610
#2059 : apply suggestions from PR + adding another test that checks for dos affecting green agent
2023-12-13 11:56:25 +00:00
Czar Echavez
4f79d2ad36
#2059 : moved connection handling from Service to IOSoftware + changes that now utilise connections from IOSoftware + dos bot attacking now works + tests
2023-12-12 17:01:03 +00:00
Czar Echavez
cd5ed48b00
#2059 : implementing the service connections limit
2023-12-08 17:07:57 +00:00
Marek Wolan
105763971d
Merge 'origin/dev' into bugfix/episode-length-and-rewards
2023-12-03 14:49:34 +00:00
Marek Wolan
3642e87eda
Remove distracting debug print statements
2023-12-01 11:07:57 +00:00
Czar Echavez
3cf21e4015
#2084 : change all instances of retrieving software from software['software_name'] to software.get() + adding some tests for describe state
2023-11-30 13:49:37 +00:00
Marek Wolan
05d62a956d
Fix software reset issues
2023-11-29 13:18:38 +00:00
Chris McCarthy
9a4855e7bd
#1859 - Added the call to file system reset
2023-11-28 11:58:09 +00:00
Marek Wolan
21b865d8a8
Merge origin/dev into feature/1859
2023-11-27 22:13:42 +00:00
Chris McCarthy
58e9033a4c
#1859 - First pass at an implementation of the full reset method. Will now start testing...
2023-11-27 23:01:56 +00:00
Czar Echavez
b7b718f25d
#2064 : added a method that checks if the class can perform actions and added it where necessary + tests everywhere
2023-11-24 15:15:56 +00:00
Czar Echavez
f0fc6518a0
#2064 : add handling of offline service to dns, ftp and database
2023-11-23 21:48:11 +00:00
Marek Wolan
77f3806ba7
Remove real database in favour of simulated
2023-11-18 03:40:08 +00:00
Czar.Echavez
be4a467877
#1962 : revert pulling from src
2023-11-08 10:48:41 +00:00
Czar.Echavez
f5df1366a7
#1962 : merge dev into branch + fix minor diffs + ensure that imports pull from src
2023-11-08 10:36:47 +00:00
Czar.Echavez
51713bad74
#1962 : split tests into managable files + implement deletion of folders and files + tests
2023-11-03 15:15:18 +00:00
Czar.Echavez
4699e87ea8
Merge branch 'dev' into feature/1943-service-web-server
2023-10-04 16:35:23 +01:00
Czar.Echavez
97f0267539
#1796 : apply PR suggestions + fix tests
2023-10-04 11:33:18 +01:00
Czar.Echavez
4b5a73bd32
#1943 : web server + client + tests + a few improvements to syslogging
2023-10-03 14:59:48 +01:00
Chris McCarthy
3dc8a0f222
#1796 - Made the FTP copy real files. Hardcoded the DatabaseService backup folder and filename. Added db restore and final query check to the data manipulation e2e test.
2023-09-29 20:14:42 +01:00
Czar.Echavez
6202d320a6
#1796 : Add ability to create and restore database backups + add more sys log messages + remove the link size checks temporarily
2023-09-28 12:23:49 +01:00
Czar.Echavez
f913294058
#1916 : moved services into their own subdirectories
2023-09-18 14:20:19 +01:00