VakarisZ
|
2e600fd5b2
|
Decoupled mongo setup from environment config
|
2021-05-27 15:57:12 +03:00 |
VakarisZ
|
289f3df7e4
|
Implemented mongodb process launch from the island
|
2021-05-27 15:54:07 +03:00 |
VakarisZ
|
243642c1af
|
Merge pull request #1185 from guardicore/mongo_db_launch_from_island
Mongo db launch from island
|
2021-05-27 15:43:10 +03:00 |
VakarisZ
|
26e57153da
|
Fixed typos and renamed windows permission setting function in windows_permissions.py to be more specific.
|
2021-05-27 14:09:21 +03:00 |
Shreya
|
4b733ba383
|
Fix unit tests (test_utils.py)
|
2021-05-27 15:40:47 +05:30 |
VakarisZ
|
7240d60342
|
Typos and small bugfixes in mongo_process_runner.py
|
2021-05-27 11:08:09 +03:00 |
VakarisZ
|
cb14a4ea9b
|
Refactored secure directory creation into a separate method. Data dir creation and db dir creation now use that method. Added unit tests for secure directory creation.
|
2021-05-27 11:08:09 +03:00 |
VakarisZ
|
5aeab3a56c
|
Refactored mongo executable path to be calculated in consts, since this is a trivial calculation.
|
2021-05-27 11:08:07 +03:00 |
VakarisZ
|
f7674b0635
|
Aggregated duplicate runtime os checking functions into one.
|
2021-05-27 11:05:54 +03:00 |
Shreya
|
f5f8f572f6
|
Remove unneeded function arguments in test_mongo_process_runner.py
|
2021-05-27 11:05:54 +03:00 |
Shreya
|
1610860bd0
|
Rename test_process_runner.py to test_mongo_process_runner.py to better reflect the file it's testing
|
2021-05-27 11:05:54 +03:00 |
Shreya
|
0be8e56858
|
Add fixture for fake db dir in test_process_runner.py
|
2021-05-27 11:05:54 +03:00 |
Shreya
|
58745a0eb4
|
Use fixtures in test_process_runner.py
|
2021-05-27 11:05:54 +03:00 |
VakarisZ
|
5f7e886310
|
Updated CHANGELOG.md with mongodb launch from island changes.
|
2021-05-27 11:05:53 +03:00 |
VakarisZ
|
a5d72c8b94
|
Fixed an import statement in monkey_island/main.py
|
2021-05-27 11:05:43 +03:00 |
VakarisZ
|
36b3e987da
|
Added expand user call to transform data dir input into a proper path
|
2021-05-27 11:05:43 +03:00 |
VakarisZ
|
559b61b581
|
Removed code related to running mongodb and db folder creation
|
2021-05-27 11:05:43 +03:00 |
VakarisZ
|
73f23ad383
|
Removed run.sh and updated mongodb related documentation: removed db folder creation and run.sh execution on linux
|
2021-05-27 11:05:43 +03:00 |
VakarisZ
|
5ec64ef189
|
Added unit test for db dir creation.
|
2021-05-27 11:05:43 +03:00 |
VakarisZ
|
2483691b8b
|
Implemented mongodb process launch from the island
|
2021-05-27 11:05:41 +03:00 |
VakarisZ
|
a31067a752
|
Added a common method to determine the runtime OS
|
2021-05-27 11:03:51 +03:00 |
Shreya
|
02ead23d04
|
Remove unused unit test fixtures
|
2021-05-26 19:27:08 +05:30 |
Shreya
|
31d65301d4
|
Remove unused file (monkey_island/config_file_parser.py) and its test file (tests/unit_tests/monkey_island/test_config_file_parser.py)
|
2021-05-26 19:16:46 +05:30 |
VakarisZ
|
a211c0f1bd
|
Merge pull request #1170 from guardicore/data-dir-on-island-init
Create data directory on Island initialisation
|
2021-05-26 14:37:01 +03:00 |
Shreya
|
baee74b761
|
Add exception messages during data directory creation
|
2021-05-26 15:22:52 +05:30 |
Shreya
|
a89a62cb5c
|
Remove unneeded "noqa" statements
|
2021-05-26 12:55:23 +05:30 |
VakarisZ
|
17e994c8d8
|
Fixed UT's for models by mocking an environment singleton with needed mongodb parameters
|
2021-05-25 11:12:58 +03:00 |
VakarisZ
|
5b7329b3d1
|
Fixed stack-overflow that has been happening due to gevent unpatched imports
|
2021-05-25 10:21:27 +03:00 |
VakarisZ
|
057a579d62
|
Rolled back the changes that made default server config on model packages import
|
2021-05-25 09:49:34 +03:00 |
VakarisZ
|
9337c68ae0
|
Removed the infrastructure from starting main.py - it can no longer be the entrypoint to the application
|
2021-05-24 18:08:26 +03:00 |
VakarisZ
|
3a800d9a44
|
Fixed a bug where models were getting imported without mongodb connection and failing
|
2021-05-24 18:07:24 +03:00 |
VakarisZ
|
d273e85858
|
Fixed bugs in argument parser passing default server config path even though server path is not specified. Island thinks that server config path was specified.
|
2021-05-24 17:09:14 +03:00 |
VakarisZ
|
2b257f0012
|
Fixed bugs merge bugs where structures are being accessed in an outdated ways
|
2021-05-24 16:44:43 +03:00 |
VakarisZ
|
0a7cf1d5ee
|
Improved readability in the arg_parser.py by extracting defaults to the argparser flag section
|
2021-05-24 16:42:30 +03:00 |
VakarisZ
|
7d1c5dd908
|
Merged develop into data-dir-on-island-init
|
2021-05-24 16:00:21 +03:00 |
VakarisZ
|
d8c1e2be9f
|
Merge pull request #1181 from guardicore/setup_param_refactoring
Setup param refactoring
|
2021-05-24 14:32:09 +03:00 |
VakarisZ
|
0248a6e281
|
Refactored IslandConfigOptions tests to be test per option, rather than based on code workflow branches
|
2021-05-24 14:25:22 +03:00 |
VakarisZ
|
d52e80a3f3
|
Improved the readability IslandConfigOptions test
|
2021-05-24 14:03:49 +03:00 |
VakarisZ
|
2afdfa297b
|
Improved IslandConfigOptions readability by removing defaults and added a unit test for constructor
|
2021-05-24 13:37:02 +03:00 |
Shreya Malviya
|
f500ca8b06
|
Merge pull request #1184 from guardicore/data-dir-on-island-refactor
Data dir on island refactor
|
2021-05-24 15:24:21 +05:30 |
Shreya
|
d33c5d68d8
|
Use `os.path.expandvars()` on server config argument
|
2021-05-24 15:17:22 +05:30 |
VakarisZ
|
3098ac1459
|
Fixed a failing environment setup in unit tests
|
2021-05-24 12:25:10 +03:00 |
VakarisZ
|
5f88f6f04b
|
Moved a comment to a proper place
|
2021-05-24 12:13:33 +03:00 |
VakarisZ
|
0f49579148
|
Added typehints to IslandConfigOptions
|
2021-05-24 11:34:55 +03:00 |
VakarisZ
|
8afe93747f
|
Improved monkey_island.py setup readability by extracting workflows of server_config setup by cmd_arguments and setup of server_config using defaults
|
2021-05-24 11:10:16 +03:00 |
VakarisZ
|
70b9a9f6b7
|
Refactored config_loader.py and server_config_handler.py into a single file, with server config write/read operations
|
2021-05-24 11:05:15 +03:00 |
Shreya
|
43d919a3eb
|
Create default server_config.json when running unit tests
|
2021-05-21 20:09:17 +05:30 |
Shreya
|
23b04920b2
|
Remove unit test related to code removed in the previous commit
|
2021-05-21 19:18:08 +05:30 |
Shreya
|
9705c73978
|
Remove code in environment_config.py which was calling `write_default_server_config_to_file()`
This was causing an error in the unit tests, and is handled in monkey_island.py (commit 3de620e3).
|
2021-05-21 18:57:40 +05:30 |
VakarisZ
|
7b02cebbaf
|
Merge pull request #1180 from guardicore/bb_test_gcp_authentication_fix
BB tests: automatic registration
|
2021-05-21 13:14:16 +03:00 |