Commit Graph

9335 Commits

Author SHA1 Message Date
Ilija Lazoroski 02ebef56cf BB: Fix SMB_path configuration 2022-07-26 16:32:21 +02:00
Ilija Lazoroski 85deb6858c BB: Add __test__ to some untestable classes 2022-07-26 16:31:35 +02:00
Ilija Lazoroski 7ccab8e2f2 BB: Monkey object uses _id 2022-07-26 16:30:19 +02:00
Ilija Lazoroski 371b020542 BB: Reset Island after finished test 2022-07-26 16:29:21 +02:00
vakarisz 81101d4213 Common: Rename configuration package to agent_configuration 2022-07-26 09:38:58 -04:00
VakarisZ dd80e24112
Merge pull request #2113 from guardicore/terser-upgrade
Terser upgrade + typescript fixes
2022-07-26 10:34:16 +03:00
vakarisz d44730897f UI: Bump terser from 5.12.1 to 5.14.2 2022-07-26 08:51:26 +03:00
vakarisz a00ae6ad23 UI: Fix typescript errors 2022-07-25 17:29:23 +03:00
Mike Salvatore 4d3fb03da2
Merge pull request #2103 from guardicore/2092-modify-blackbox-tests
Modify BB tests to use new configuration objects
2022-07-25 07:04:10 -04:00
Ilija Lazoroski fd6f1db074 BB: Add todo and comment out broken code in ZerologonAnalyzer 2022-07-25 11:07:47 +02:00
Ilija Lazoroski 674ee02dda UI: Reformat empty payloads 2022-07-25 10:47:49 +02:00
Mike Salvatore f4dee02874 Island: Properly handle Credentials JSON in resource 2022-07-22 13:26:12 -04:00
Mike Salvatore 878f12736f BB: POST config and credentials as JSON 2022-07-22 13:26:12 -04:00
Mike Salvatore e1691b108f BB: Fix credentials object serialization 2022-07-22 13:26:12 -04:00
Mike Salvatore 5c60656f56 BB: Rename post_json(data) parameter to json 2022-07-22 17:24:53 +00:00
Mike Salvatore 2d338fc81f BB: Use to_mapping() to send agent configuration JSON 2022-07-22 17:24:53 +00:00
Mike Salvatore 9d6b0c5a61 UT: Use `json=` in calls to `POST /api/agent-configuration` 2022-07-22 17:24:53 +00:00
Mike Salvatore 1b1bc85804 UT: Fix false negative in test_agent_configuration_endpoint() 2022-07-22 17:24:53 +00:00
Mike Salvatore f321d72dc5 UT: Use default config in InMemoryAgentConfigurationRepository 2022-07-22 17:24:53 +00:00
Mike Salvatore c86b637598 Island: Add comment about 204 status code to AgentConfiguration resource 2022-07-22 17:24:53 +00:00
Mike Salvatore efab944e8b Common: Fix inconsistent wording in AgentConfiguration docstring 2022-07-22 17:24:53 +00:00
Mike Salvatore 7a507f12ba UT: Combine test{to,from}_json() 2022-07-22 17:24:53 +00:00
Mike Salvatore e5e68f21df UT: Rename test_from_dict...() -> test_from_mapping...() 2022-07-22 17:24:53 +00:00
Mike Salvatore d62d81a795 Common: Add AgentConfiguration.to_mapping() 2022-07-22 17:24:53 +00:00
Shreya Malviya b6703becbc BB: Get rid of TestConfigurationParser and move its functions outside 2022-07-22 17:24:53 +00:00
Shreya Malviya 35d5592da0 BB, Island: Remove BB performance tests and *everything* related to it 2022-07-22 17:24:53 +00:00
Shreya Malviya 8b43d910b6 BB: Modify MonkeyIslandClient.import_config() to send propagation credentials to relevant endpoint 2022-07-22 17:24:53 +00:00
Shreya Malviya 379ada7a24 BB: Rename IslandConfigParser -> TestConfigurationParser
Even though the names start with "test", they shouldn't cause any issues
since we only run "test_blackbox.py".
2022-07-22 17:24:53 +00:00
Shreya Malviya 2764069aec BB: Correctly pass and import test configuration and agent configuration 2022-07-22 17:24:53 +00:00
Shreya Malviya 1f4167f44c BB: Add more specific type hint to IslandConfigParser.get_target_ips_from_configuration() 2022-07-22 17:24:53 +00:00
Shreya Malviya 42efe1fc56 BB: Remove unused function from IslandConfigParser 2022-07-22 17:24:53 +00:00
Shreya Malviya b13fb45b04 BB: Get rid of unneeded improts and variables 2022-07-22 17:24:53 +00:00
Shreya Malviya 00626fe579 BB: Use agent configuration object to get target IPs in IslandConfigParser 2022-07-22 17:24:53 +00:00
Shreya Malviya 549a79ced4 BB: Update type hint to be more specific in CommunicationAnalyzer
Co-authored-by: Mike Salvatore <mike.s.salvatore@gmail.com>
2022-07-22 17:24:53 +00:00
Shreya Malviya db5187fc74 BB: Remove config templates 2022-07-22 17:24:53 +00:00
Shreya Malviya 1d45a15ea1 BB: Remove config_generation_script.py 2022-07-22 17:24:53 +00:00
Shreya Malviya c6c38ac008 BB: Add type hints in CommunicationAnalyzer 2022-07-22 17:24:53 +00:00
Shreya Malviya c9b10bfc3f BB: Fix API endpoints in MonkeyIslandClient 2022-07-22 17:24:53 +00:00
Shreya Malviya f0993d94cf BB: Rename raw_config -> serialized_config everywhere 2022-07-22 17:24:53 +00:00
Shreya Malviya 690fb71e10 BB: Rename get_ips_of_targets() -> get_target_ips_from_serialized_config() and pass correct arguments 2022-07-22 17:24:53 +00:00
Shreya Malviya c6ffd16e48 BB: Modify IslandConfigParser.get_ips_of_targets() logic per new configuration 2022-07-22 17:24:53 +00:00
Shreya Malviya 5d9e525ecc BB: Remove unused apply_template_to_config() from IslandConfigParser 2022-07-22 17:24:53 +00:00
Shreya Malviya 7d98d14d3a BB: Use IslandConfigParser.get_serialized_config() in test_blackbox.py 2022-07-22 17:24:53 +00:00
Shreya Malviya c509b1390a BB: Remove unused parameter in get_serialized_config() in IslandConfigParser 2022-07-22 17:24:53 +00:00
Shreya Malviya 6bda56f30c BB: Replace config templates with configuration objects in test_blackbox.py 2022-07-22 17:24:53 +00:00
Shreya Malviya d5736df56d BB: Modify IslandConfigParser to return serialized config 2022-07-22 17:24:53 +00:00
Shreya Malviya f99ad90371 BB: Reorder test configuration imports so they're alphabetical 2022-07-22 17:24:53 +00:00
Mike Salvatore 5e19abbe54 Island: Add some comments/TODOs to /api/island-mode 2022-07-22 08:48:17 -04:00
Mike Salvatore 46bcfe7619 Revert "Island: Add note about 401 for invalid credentials"
This reverts commit 5938382627.
2022-07-22 08:31:48 -04:00
Mike Salvatore 5938382627 Island: Add note about 401 for invalid credentials 2022-07-22 08:18:01 -04:00