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
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
Czar Echavez
094e89fff1
#2059 : Renamed Red service to red application and moved the datamanipulation bot to the red application folder
2023-12-08 14:54:29 +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
8f063aa339
#2084 : apply previous PR suggestions
2023-12-04 09:07:42 +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
d9de57757f
#2084 : more tests + remove concurrency in test to make sure coverage works
2023-11-30 15:47: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
349f9dee38
Merge remote-tracking branch 'origin/dev' into feature/2084-add-more-tests-to-make-primaite-more-robust
2023-11-30 09:29:34 +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
Marek Wolan
ac2f7ba757
Fix web browser tests.
2023-11-29 14:33:52 +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
3df3e113d1
Change data manipulation test to use the right func
2023-11-27 22:24:30 +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
c3bb78c5a3
Merge remote-tracking branch 'devops/feature/1859-red-agent-marek' into feature/1859-red-agent-marek
2023-11-27 13:50:41 +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
Marek Wolan
89cbc08352
Apply suggestions from code review
2023-11-27 13:28:11 +00:00
Czar Echavez
299729d5b4
#2064 : documentation EVERYWHERE
2023-11-27 11:38:03 +00:00
Marek Wolan
ece9b14d63
Resolve merge conflicts
2023-11-26 23:29:14 +00:00
Czar Echavez
cd49f1eb85
#2064 : Apply PR suggestions
2023-11-25 13:19:32 +00:00
Jake Walker
e62ca22cb7
Fix data manipulation bot tests
2023-11-24 15:53:07 +00:00
Czar Echavez
330e87698e
Merge remote-tracking branch 'origin/dev' into bugfix/2064-software-continues-running-after-node-is-turned-off
2023-11-24 15:16:25 +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
Marek Wolan
e609f8eb50
Fix misconfiguration in uc2 config and session
2023-11-24 14:56:17 +00:00
Marek Wolan
64c7dd3c84
Skip slow tests for now.
2023-11-24 12:03:46 +00:00
Jake Walker
ff8b773c10
Database Manipulation Bot bug fixes
2023-11-24 11:10:34 +00:00
Marek Wolan
d8975078b3
Fix game reset test.
2023-11-24 10:50:10 +00:00
Jake Walker
4e104a4d99
Update data manipulation bot
2023-11-24 10:33:19 +00:00
Marek Wolan
bfd5f054dc
Merge 'origin/dev' into feature/1971-ray-agents-2
2023-11-24 09:50:37 +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
Jake Walker
5f1a5af1b4
Add data manipulation bot action manager
2023-11-23 16:06:19 +00:00
Nick Todd
87dde6ee0b
#2042 : Test tidying changes.
2023-11-23 15:55:58 +00:00
Chris McCarthy
efeaa4c1cc
#2034 - Implemented the Simulation reset functionality by doing a deepcopy of the Simulation object inside the PrimaiteSession upon instantiation. Added a test that uninstalls a service before performing a reset then checks that the service reappears.
2023-11-23 15:31:06 +00:00
Nick Todd
8584fa8f51
# 2041: Minor test changes
2023-11-23 10:04:52 +00:00
Marek Wolan
f1f516c51a
Add multi agent session test
2023-11-23 02:51:31 +00:00
Marek Wolan
8a2279c6cb
Update end to end tests after session changes
2023-11-23 01:40:27 +00:00