Shreya Malviya
|
446524b5b8
|
BB: Use keyword arguments where missing in configuration objects' creation
|
2022-09-02 12:05:30 +05:30 |
Shreya Malviya
|
c7ee48fff1
|
BB: Remove unneeded configuration replacing functions
|
2022-09-02 12:05:30 +05:30 |
Shreya Malviya
|
a65415588f
|
BB: Simplify logic in BB tests' configurations
|
2022-09-02 12:05:30 +05:30 |
Shreya Malviya
|
ff52fbefe4
|
BB: Fix AgentConfiguration logic in MonkeyIslandClient
|
2022-09-02 12:05:30 +05:30 |
Shreya Malviya
|
f841bc041b
|
Agent: Fix AgentConfiguration object creation logic in ControlChannel.get_config()
|
2022-09-02 12:05:30 +05:30 |
Mike Salvatore
|
0f21ad2e09
|
Common: Allow 0 for keep_tunnel_open_time
|
2022-09-02 12:05:30 +05:30 |
Mike Salvatore
|
326d128be8
|
Common: Allow 0 for maximum_depth
|
2022-09-02 12:05:30 +05:30 |
Mike Salvatore
|
8d991f462f
|
UT: Use kwargs instead of **dict in test_agent_configuration.py
|
2022-09-02 12:05:30 +05:30 |
Mike Salvatore
|
1444ce10c3
|
Common: Remove unneeded `import annotations` from agent_configuration
|
2022-09-02 12:05:30 +05:30 |
Shreya Malviya
|
46ee6de13e
|
UT: Remove unneeded function `convert_all_lists_to_tuples_in_mapping()`
|
2022-09-02 12:05:30 +05:30 |
Shreya Malviya
|
9db1a19ad3
|
UT: Simplify assertion logic in common/agent_configuration/test_agent_configuration.py
|
2022-09-02 12:05:29 +05:30 |
Shreya Malviya
|
6460639f91
|
UT: Use `simplify=True` when converting configuration to dict
|
2022-09-02 12:05:29 +05:30 |
Shreya Malviya
|
d5ee4c7f27
|
Island: Use `simplify=True` when converting configuration to dict
|
2022-09-02 12:05:29 +05:30 |
Shreya Malviya
|
fa1620ebb9
|
UT: Add tests for checking that validators in ScanTargetConfiguration work
|
2022-09-02 12:05:29 +05:30 |
Shreya Malviya
|
f7f0047868
|
UT: Simplify assertion logic in test_agent_configuration_endpoint
|
2022-09-02 12:05:29 +05:30 |
Shreya Malviya
|
5b1558ce53
|
Project: Include classes in Vulture allowlist
|
2022-09-02 12:05:29 +05:30 |
Shreya Malviya
|
6234263746
|
Island: Simplify configuration updating logic in PBAFileUpload
|
2022-09-02 12:05:29 +05:30 |
Shreya Malviya
|
4f599c3118
|
UT: Rename `convert_lists_to_tuples` -> `convert_all_lists_to_tuples_in_mapping`
|
2022-09-02 12:05:29 +05:30 |
Shreya Malviya
|
82d8f5bacd
|
Island: Simplify JSON logic inFileAgentConfigurationRepository
|
2022-09-02 12:05:29 +05:30 |
Shreya Malviya
|
eb207de919
|
UT: Convert lists to tuples before comparing values in configuration tests
Probably not the best way to do this
|
2022-09-02 12:05:29 +05:30 |
Shreya Malviya
|
1f77fd468a
|
UT: Add function `convert_lists_to_tuples` to utils
|
2022-09-02 12:05:29 +05:30 |
Shreya Malviya
|
9b924c55b6
|
Common: Remove utils.InvalidConfigurationError
|
2022-09-02 12:05:29 +05:30 |
Shreya Malviya
|
fe3706c0b4
|
Common: Remove agent_configuration.InvalidConfigurationError
|
2022-09-02 12:05:29 +05:30 |
Shreya Malviya
|
dda79c0809
|
Common: Remove unneeded code for freezing lists to tuples
|
2022-09-02 12:05:29 +05:30 |
Shreya Malviya
|
f11e2dc8a1
|
UT: Fix configuration logic to work with pydantic in `agent_configuration` fixture
|
2022-09-02 12:05:29 +05:30 |
Shreya Malviya
|
016cf80cdd
|
UT: Fix AgentConfiguration object creation logic FileAgentConfigurationRepository tests
|
2022-09-02 12:05:29 +05:30 |
Shreya Malviya
|
f4e3bc2a89
|
Island: Fix AgentConfiguration logic in FileAgentConfigurationRepository
|
2022-09-02 12:05:29 +05:30 |
Shreya Malviya
|
a9a006a9fd
|
Agent: Replace fields in configuration using pydantic syntax in PBA file upload resource
|
2022-09-02 12:05:29 +05:30 |
Shreya Malviya
|
163c54a8c3
|
Agent: Replace fields in configuration using pydantic syntax in propagator
|
2022-09-02 12:05:26 +05:30 |
Shreya Malviya
|
45c6fda8b2
|
UT: Use keyword arguments when using configurations
|
2022-09-02 12:05:08 +05:30 |
Shreya Malviya
|
2b11fde827
|
Agent: Use keyword arguments when using PluginConfiguration in Master
|
2022-09-02 12:05:08 +05:30 |
Shreya Malviya
|
e68a5391c8
|
UT: Fix POST request in test_agent_configuration_endpoint to use new pydantic model AgentConfiguration
|
2022-09-02 12:05:08 +05:30 |
Shreya Malviya
|
fe792ffc6f
|
Island: Catch ValueError and TypeError instead of InvalidConfigurationError in resource AgentConfiguration's PUT
|
2022-09-02 12:05:08 +05:30 |
Shreya Malviya
|
433e154cd1
|
Island: Modify AgentConfiguration endpoint to use new pydantic model
|
2022-09-02 12:05:08 +05:30 |
Shreya Malviya
|
c79b3c4497
|
UT: Check that ValueError is raised instead of marshmallow.ValidationError in configuration tests
|
2022-09-02 12:05:08 +05:30 |
Shreya Malviya
|
a1b8bb24b4
|
Common: Raise ValueError instead of marshmallow.ValidationError in validators
|
2022-09-02 12:05:08 +05:30 |
Shreya Malviya
|
b20ad194ff
|
Common: Modify default configurations to work with new pydantic models
|
2022-09-02 12:05:08 +05:30 |
Shreya Malviya
|
96f213d4ee
|
Project: Add pydantic validators to Vulture allowlist
|
2022-09-02 12:05:08 +05:30 |
Shreya Malviya
|
430885ebd4
|
UT: Fix new pydantic configuration class names
|
2022-09-02 12:05:08 +05:30 |
Shreya Malviya
|
0d6e3809d7
|
Common: Rename all new pydantic configurations appropriately
|
2022-09-02 12:05:08 +05:30 |
Shreya Malviya
|
41e7cfb768
|
Common: Remove agent sub-configuration schemas
|
2022-09-02 12:05:08 +05:30 |
Shreya Malviya
|
f2c9952685
|
Common: Remove old sub-configurations using marshmallow
|
2022-09-02 12:05:08 +05:30 |
Shreya Malviya
|
1311fd5d27
|
Common: Remove old AgentConfiguration using marshmallow
|
2022-09-02 12:05:08 +05:30 |
Shreya Malviya
|
6d29829808
|
UT: Modify tests to use new pydantic configurations
TODO: Fix error handling and some assertions (tuple/list stuff)
|
2022-09-02 12:05:08 +05:30 |
Shreya Malviya
|
275237c3f7
|
Common: Inherit from MutableInfectionMonkeyBaseModel where missing in new pydantic configurations
|
2022-09-02 12:05:08 +05:30 |
Shreya Malviya
|
2f05d22780
|
Common: Create AgentConfiguration using pydantic
|
2022-09-02 12:05:08 +05:30 |
Shreya Malviya
|
b8914101a6
|
Common: Remove unused imports in agent_sub_configurations.py
|
2022-09-02 12:05:08 +05:30 |
Shreya Malviya
|
501f752248
|
Common: Create PropagationConfiguration using pydantic
|
2022-09-02 12:05:08 +05:30 |
Shreya Malviya
|
602604e408
|
Common: Create ExploitationConfiguration using pydantic
|
2022-09-02 12:05:08 +05:30 |
Shreya Malviya
|
b74f90fe9b
|
Common: Create ExploitationOptionsConfiguration using pydantic
|
2022-09-02 12:05:08 +05:30 |