Charlie Crane
f66d9d5817
Merge branch 'dev' into feature/2457-Set_link_bandwidth_via_config
2024-05-14 14:44:20 +01:00
Charlie Crane
71684dc5f0
#2457 - Initial commit removing the hardcoding of bandwidth values within links. Now pull it from configuration files, defaulting to 100 if not implemented
2024-05-13 14:42:15 +01:00
Marek Wolan
b9b922e776
Make ftp client only default on computers, not servers
2024-05-02 15:51:06 +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
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
Nick Todd
07a934ab66
2306: Update tests to verify INSERT query.
2024-02-14 12:00:08 +00:00
Chris McCarthy
bebfbd53be
#2248 - MAde tests use new way of accessing network interfaces by their port number
2024-02-09 10:30:39 +00:00
Chris McCarthy
5eed467271
#2248 - synced wth dev
2024-02-08 16:15:57 +00:00
Chris McCarthy
114fb8c077
#2248 - synced wth dev
2024-02-08 15:27:02 +00:00
Chris McCarthy
411f0a320f
#2248 - Final run over all the docstrings after running pre-commit. All tests now working. Updated CHANGELOG.md.
2024-02-08 10:53:30 +00:00
Chris McCarthy
0c96fef3ec
#2248 - All tests (bar the one config file test) now working. Still need to tidy up docstrings and some docs. Almost there
2024-02-07 23:05:34 +00:00
Marek Wolan
c35c060448
Cosmetic changes based on PR feedback
2024-02-06 17:32:15 +00:00
Marek Wolan
5b5b750d4d
Add second green agent and make rewards based on webbrowser
2024-02-06 14:42:59 +00:00
Chris McCarthy
7bbfd564fb
#2248 - Big refactor of base with all Network Interface subclasses created to allow for proper management of ports on devices as it was starting to get messy with the Router. Some routing tests still need fixing as ARP doesn't seem to be working properly
2024-02-05 08:44:10 +00:00
Czar Echavez
c985b8793d
#2151 and #2166 : added tests for application being unused + even more tests
2024-01-10 11:58:36 +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
Nick Todd
2d892d4a5a
2041: Tidy up test comments
2023-12-15 10:52:46 +00:00
Nick Todd
0cfd525ab8
2041: change comparison operator in test
2023-12-15 10:14:35 +00:00
Nick Todd
fab39b1506
Merge branch 'dev' into feature/2041_2042-Add-NTP-Services
2023-12-15 09:50:19 +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
Nick Todd
f7b5c8ae2f
2041: Remove NTPRequest class (review comment)
2023-12-13 10:34:52 +00:00
Nick Todd
e620771c8d
2041: Remove IP address from NTP client (review comment)
2023-12-12 17:08:11 +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
Nick Todd
44ada941e6
2041: Reinstate test for ntp_server failure
2023-12-07 14:22:27 +00:00
Nick Todd
12ede2329b
2041: Add network config and pytest fixture
2023-12-06 16:41:10 +00:00
Nick Todd
39694fcec2
Merge branch 'dev' into feature/2041_2042-Add-NTP-Services
2023-12-04 11:23:35 +00:00
Czar Echavez
423436c3ad
#2084 : testing webbrowser requesting database service user data via web server
2023-11-30 16:32:31 +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
Czar Echavez
19d534395b
#2084 : beginning the introduction of code coverage + adding tests to try to meet the 80% code coverage target
2023-11-29 01:28:40 +00:00
Marek Wolan
21b865d8a8
Merge origin/dev into feature/1859
2023-11-27 22:13:42 +00:00
Nick Todd
40d596c373
Merge branch 'dev' into feature/2041_2042-Add-NTP-Services
2023-11-27 15:07:06 +00:00
Chris McCarthy
4d4a578555
#1859 - Integrated the runtime execution for web client. Added in the webclient application execution action. Now fixing http status code issues.
2023-11-27 13:47:59 +00:00
Czar Echavez
299729d5b4
#2064 : documentation EVERYWHERE
2023-11-27 11:38:03 +00:00
Czar Echavez
cd49f1eb85
#2064 : Apply PR suggestions
2023-11-25 13:19:32 +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
8aa743188f
#2064 : fix layout of test so it passes in pipeline
2023-11-23 22:28:08 +00:00
Czar Echavez
2ce03e0262
#2064 : turn on everything when node is turned on
2023-11-23 22:10:53 +00:00
Czar Echavez
f0fc6518a0
#2064 : add handling of offline service to dns, ftp and database
2023-11-23 21:48:11 +00:00
Czar Echavez
bd6c27244c
#2064 : Edited services and applications to handle when they are shut down
2023-11-23 19:49:03 +00:00
Nick Todd
87dde6ee0b
#2042 : Test tidying changes.
2023-11-23 15:55:58 +00:00
Nick Todd
8584fa8f51
# 2041: Minor test changes
2023-11-23 10:04:52 +00:00
Nick Todd
3f76e09521
#2042 : remove apply_timestep() return value
2023-11-22 14:13:50 +00:00
Nick Todd
eb2e37429a
#2042 : Add time attribute
2023-11-21 17:24:24 +00:00
Nick Todd
60d94bf4b5
#2041 : Remove test
2023-11-21 11:17:38 +00:00
Nick Todd
f7215847d4
#2041 : ntp_server test fixes.
2023-11-20 18:08:55 +00:00
Marek Wolan
77f3806ba7
Remove real database in favour of simulated
2023-11-18 03:40:08 +00:00
Nick Todd
d28bd0d1c3
#2041 : Fix names
2023-11-17 14:19:36 +00:00