Charlie Crane
6d6f21a20a
#2706 - Additional assert on new test and a guard clause on LocalTerminalConnection.execute() to check that the Terminal service is running before sending a command
2024-08-06 19:14:53 +01:00
Charlie Crane
d05fd00594
#2706 - Resolving an issue that saw disconnected terminal connections still able to send execute commands that were also then processed by the target node. Created a new class: LocalterminalConnection, for local connection objects to terminal. Calling terminal.show() when there is a local connection will have 'Local Connection' as the IP address. Receive and execute will check that the provided connection uuid is valid before actioning any commands. TerminalClientConnection objects now have an is_active flag similar to DatabaseClientConnection. Added a new test to check that terminals will reject commands from disconnected clientconnection objects.
2024-08-06 19:09:23 +01:00
Charlie Crane
1e64e87798
#2706 - Actioning Review comments
2024-08-06 09:30:27 +01:00
Charlie Crane
4fe9753fcf
#2706 - Updated terminal.receive() to work with SSHPacket class, fixed some tests and updated RemoteTerminalConnection to hold Source_IP for easier reading
2024-08-05 15:44:52 +01:00
Charlie Crane
972b0b9712
#2706 - Added another test demonstrating an SSH connection across a network. Actioned some review comments and a minor change to other ACL Terminal tests
2024-08-05 11:19:27 +01:00
Charlie Crane
ca8e568734
#2706 - Additional tests to check terminal login to/from networknodes. Redo of test to check that a router will block SSH traffic if no ACL rule.
2024-08-05 10:58:23 +01:00
Charlie Crane
4bddf72cd3
#2706 - Initial refactor of Terminal Class following review discussion on Friday. Terminal will now return a TerminalConnection/RemoteTerminalConnection object on login.
...
The new connection object can then be used to pass commands to the target node, without needing to form a full payload item.
2024-08-05 09:29:17 +01:00
Charlie Crane
d9faa1a5da
Merge branch 'dev' into feature/2706-Terminal_Sim_Component
2024-08-02 13:34:00 +01:00
Marek Wolan
2abd1969fe
#2800 - Consolidate software install and uninstall to a single method
2024-07-31 16:41:59 +01:00
Charlie Crane
0ed61ec79b
#2706 - Updates to terminal and host_node documentation, removal of redundant terminal unit test
2024-07-30 15:54:08 +01:00
Charlie Crane
3698e6ff5f
#2706 - Commented out references to UserSessionManager to remove the dependency.
2024-07-30 15:24:37 +01:00
Charlie Crane
2f50feb0a0
#2706 - Removing redundant unit test from
2024-07-30 11:11:08 +01:00
Charlie Crane
2b33a6edb4
#2706 - New unit test to show that Terminal is able to send/handle install commands
2024-07-30 11:04:55 +01:00
Charlie Crane
ab26798240
#2706 - New test to check that the terminal can receive and process commmands.
2024-07-30 10:23:34 +01:00
Charlie Crane
f78cb24150
#2706 - Removed some un-necessary comments and changes to network used in terminal ACL unit test
2024-07-29 14:20:29 +01:00
Charlie Crane
0ac1c6702c
#2713 - eod commit. Initial RequestManager Test implemented, along with an initial setup of the additional Request Manager methods.
2024-07-26 16:56:03 +01:00
Charlie Crane
a7f9e4502e
#2712 - Updates to the login logic and fixing resultant test failures. Updates to terminal.rst and ssh.py
2024-07-23 15:18:20 +01:00
Charlie Crane
3c590a8733
#2712 - Commit before changing branches
2024-07-22 09:58:09 +01:00
Charlie Crane
5c04f4fa4c
Merge branch 'dev' into feature/2712-Terminal_Login_Handling
2024-07-19 11:18:34 +01:00
Charlie Crane
32c2ea0b10
#2710 - Pre-commit run ahead of raising PR
2024-07-15 08:22:18 +01:00
Charlie Crane
2eb36149b2
#2710 - Prep for draft PR
2024-07-15 08:20:11 +01:00
Czar Echavez
1d466d6807
#2740 : unit tests + a minor fix to nic test
2024-07-11 12:19:27 +01:00
Czar Echavez
aa425a5284
#2740 : fix tests affected by request permissions
2024-07-10 14:40:25 +01:00
Marek Wolan
f796babf93
#2705 - Move application registry into application module instead of hardcoding in game module
2024-06-28 11:57:54 +01:00
Marek Wolan
28dabad66b
#2682 Backport changes to core PrimAITE
2024-06-25 11:04:52 +01:00
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
ebbdea517e
2536 - Removed 'real files' from FileSystem and FTP
2024-05-13 07:30:33 +01:00
Czar Echavez
25807653f4
Merge remote-tracking branch 'origin/dev' into feature/2533-improve-dev-tools-in-primaite-cli
2024-05-01 16:11:52 +01:00
Czar Echavez
a2fb04e6f6
#2533 : set default dev output path + clean up
2024-05-01 14:02:40 +01:00
Chris McCarthy
04eb33e28a
#2519 - Dropped failed unit test in test_wireless_router.py as it didn't actually test any functionality and simply just tested the config parser, which we now do in the integration test.
2024-04-30 16:07:38 +01:00
Nick Todd
5b03013e3f
Merge branch 'dev' into bugfix/2299-check_hash_function_corrupts_files_and_folders
2024-04-29 15:44: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
Nick Todd
ec8b46f3bc
#2299 : Add tests to check for 'not implemented' warning message.
2024-04-25 17:56:55 +01:00
Nick Todd
0c375ebe4d
#2299 : Disable tests using CHECKHASH functionality
2024-04-25 17:08:03 +01:00
Czar Echavez
34773ed225
#2470 : implement PR suggestions
2024-04-18 16:38:42 +01:00
Czar Echavez
b57deaf9e1
#2470 : implementing log levels into sys log
2024-04-17 18:13:00 +01:00
Marek Wolan
0828f70b4c
#2459 back-sync b8 changes into core
2024-04-15 11:50:08 +01:00
Marek Wolan
3d996f05bd
Merged PR 318: #2418 Add Printer and Wireless router to config parser
...
## Summary
Add ability to parse printers and wireless routers from yaml config.
## Test process
Existing unit tests pass. Added a printer to one of the test yamls. Adding a wireless router as well now.
## Checklist
- [x] PR is linked to a **work item**
- [x] **acceptance criteria** of linked ticket are met
- [x] performed **self-review** of the code
- [ ] written **tests** for any new functionality added with this PR
- [ ] updated the **documentation** if this PR changes or adds functionality
- [ ] written/updated **design docs** if this PR implements new functionality
- [ ] 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: #2418
2024-03-27 13:35:33 +00:00
Marek Wolan
9a8a42f3ec
#2418 - add wildcard masks and from_config tests to routers
2024-03-26 21:48:17 +00: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
b3c1b6b7a5
#2404 quick fix for failing test_query_fail_to_connect
2024-03-26 12:52:16 +00:00
Cristian-VM2
53126e79df
#2404 remove extra code in test_query_when_client_is_closed
2024-03-26 12:43:45 +00:00
Cristian-VM2
128e2227d6
#2404 add missing test and revert some name changes
2024-03-26 12:39:11 +00:00
Cristian-VM2
944b248300
#2404 rename software patch to fix
2024-03-26 10:51:33 +00:00
Czar Echavez
e9eef2b4c0
#2350 : add num_access, num_file_deletions and num_creations to file system
2024-03-08 11:16:27 +00:00
Marek Wolan
4d51b1a414
Update configs to new db manipulation bot approach
2024-03-03 14:57:28 +00:00
Chris McCarthy
81fd43035d
#2358 - the node-specific properties in Network class now simply use node.__class__.__name__ to check their type for filtering by type. Tests updated to use the new property function names
2024-03-01 22:51:01 +00:00
Marek Wolan
f9cc5af7aa
Not sure how this test was passing before
2024-02-26 16:06:58 +00:00
Marek Wolan
a5043a8fbe
Modify tests based on refactoring
2024-02-26 12:15:53 +00:00
Marek Wolan
a34cf08209
Merge remote-tracking branch 'origin/dev' into feature/2317-refactor-reset
2024-02-25 16:41:40 +00:00