Czar Echavez
2c743005cd
#2257 : moved config tests into its own directory + added dmz_network.yaml to use in tests
2024-02-12 18:58:10 +00:00
Czar Echavez
7beacfd95f
#2258 : missing some configuration items + added more tests
2024-02-12 11:41:55 +00:00
Czar Echavez
66a3e8d02c
Merge remote-tracking branch 'origin/dev' into feature/2258-dosbot-cannot-be-added-via-configuration-file
2024-02-12 08:57:47 +00:00
Czar Echavez
d1c3f891bf
#2258 : moving applications to application types - more tests
2024-02-09 11:41:06 +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
Czar Echavez
e1237625a5
Merge remote-tracking branch 'origin/dev' into feature/2258-dosbot-cannot-be-added-via-configuration-file
2024-02-08 16:03:41 +00:00
Czar Echavez
b31a9943d7
#2258 : testing individual application install
2024-02-08 16:02:37 +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
Czar Echavez
a4b7878604
#2258 : added NTPClient to system software + testing all installable software on client1 in config
2024-02-08 10:36:07 +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
Czar Echavez
f21ee857a7
#2258 : setting up test that verifies game config parsing
2024-02-07 18:09:54 +00:00
Marek Wolan
c35c060448
Cosmetic changes based on PR feedback
2024-02-06 17:32:15 +00:00
Marek Wolan
41bc932f52
Add reward test.
2024-02-06 15:05:44 +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
Chris McCarthy
cb002d644f
#2248 - Tidying up the tests so that they use updated networks
2024-02-02 16:55:43 +00:00
Chris McCarthy
dc5aeede33
#2248 - ICMP now working as a service using the session manager for transmission. Now started to comb through the tests to fix anything up.
2024-02-02 16:20:15 +00:00
Marek Wolan
83db5b1eb5
Fix node file delete action
2024-01-31 13:50:20 +00:00
Marek Wolan
41a7f83887
Add file scan test
2024-01-31 13:29:46 +00:00
Marek Wolan
d6a83fd1fb
Update action tests to use name, not uuid
2024-01-31 11:55:38 +00:00
Marek Wolan
0dbaa66aa3
Merge remote-tracking branch 'origin/dev' into feature/2137-refactor-request-api
2024-01-31 10:05:09 +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
Marek Wolan
7c0ff8e3f0
Add acl remove rule integration test.
2024-01-08 16:24:09 +00:00
Marek Wolan
534f84ccd1
Add action tests.
2024-01-08 13:29:17 +00:00
Chris McCarthy
d2d628b676
#2139 - Fixed unicast and broadcast functionality properly
2024-01-05 22:11:37 +00:00
Chris McCarthy
ddf7fbf88b
#2139 - Included a test that tests services over multi-hop routing. Added some PR suggestions around logging.
2024-01-05 15:27:10 +00:00
Marek Wolan
ec7723732b
Merge remote-tracking branch 'origin/dev' into feature/2137-refactor-request-api
2024-01-04 14:40:20 +00:00
Marek Wolan
528e3b22a9
Add integration tests
2024-01-04 12:47:35 +00:00
Marek Wolan
25c8ec2ec9
Add skeleton for action integration and unit tests
2024-01-03 18:19:10 +00:00
Chris McCarthy
ade5f133d0
#2139 - Implemented routing
2023-12-22 10:31:11 +00:00
Marek Wolan
ffeb04d6ed
Merged PR 235: Refactor describe_state to use name/hostname instead of UUID as primary key
...
## Summary
- Refactor Simulator state to use service/application name instead of UUID, and node hostname instead of UUID.
- Refactor observations to read the hostname/name instead of UUID.
- Refactor rewards as well.
- Refactor configs to specify name instead of reference that will be translated to UUID.
## Test process
Existing unit tests pass. Inspected the printout from running 'describe_state' on arcd_uc2_network' to verify that names are used to report state.
## Checklist
- [x] PR is linked to a **work item**
- [x] **acceptance criteria** of linked ticket are met
- [x] performed **self-review** of the code
- [na] written **tests** for any new functionality added with this PR
- [na] updated the **documentation** if this PR changes or adds functionality
- [x] written/updated **design docs** if this PR implements new functionality
- [na] 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: #2131
2023-12-15 16:02:29 +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
Marek Wolan
a16028d10c
Merge remote-tracking branch 'origin/feature/2131-refactor-describe-state' into feature/2137-refactor-request-api
2023-12-15 10:10:39 +00:00
Nick Todd
fab39b1506
Merge branch 'dev' into feature/2041_2042-Add-NTP-Services
2023-12-15 09:50:19 +00:00
Marek Wolan
6a80f4cc77
Make game layer work with new state api
2023-12-14 14:04:43 +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
b2a52b2ec0
#2084 : created a fixture that we can use to test things at a non end to end level
2023-11-29 16:31:21 +00:00