Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Additional tests #85

Merged
merged 107 commits into from
Dec 21, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
107 commits
Select commit Hold shift + click to select a range
0a3d0ac
Add additional validation for create_schedule arguments
bjoernricks Dec 18, 2018
904ff4f
Add tests for create_schedule Gmp method
bjoernricks Dec 18, 2018
c9341f5
Update formatting in CHANGELOG
bjoernricks Dec 18, 2018
89204a5
Add changelog entry for create_schedule arguments validation
bjoernricks Dec 18, 2018
4ddd6d2
Check if required arguments of create_tag are set
bjoernricks Dec 18, 2018
00622a9
Add test for create_tag
bjoernricks Dec 18, 2018
8380cba
Update and simplify create task tests
bjoernricks Dec 18, 2018
8eadada
Improve docstring and comment for create_task observer argument
bjoernricks Dec 18, 2018
57a3b5b
Add comment about create_task hosts_ordering argument
bjoernricks Dec 18, 2018
30e4681
Check create_task schedule_period value
bjoernricks Dec 18, 2018
b4841c6
Update tests for create_task
bjoernricks Dec 18, 2018
b119e5b
Don't add extra spaces for create_user hosts and ifaces
bjoernricks Dec 18, 2018
998ed36
Add tests for create_user gmp command
bjoernricks Dec 18, 2018
2d4e9bb
Add tests for delete_alert gmp command
bjoernricks Dec 18, 2018
8c50615
Raise RequiredArgument exception for missing agent_id in get_agent
bjoernricks Dec 18, 2018
586d9b9
Add tests for get_agent
bjoernricks Dec 18, 2018
128fdac
Add tests for get_agents
bjoernricks Dec 18, 2018
ed60dae
Raise exception if alert_id is missing for get_alert
bjoernricks Dec 19, 2018
88ce7b8
Add tests for get_alert command
bjoernricks Dec 19, 2018
2d3d4f3
Add tests for get_alerts command
bjoernricks Dec 19, 2018
887ec30
Add asset_type before filter arguments to get_assets xml
bjoernricks Dec 19, 2018
aba198a
Add tests for get_assets command
bjoernricks Dec 19, 2018
2caf94f
Extract possible asset types into a tuple constant
bjoernricks Dec 19, 2018
c3acf2e
Raise exception if asset_id is missing for get_asset
bjoernricks Dec 19, 2018
1023ac7
Add tests for get_asset method
bjoernricks Dec 19, 2018
9254827
Remove the format parameter of get_credentials method
bjoernricks Dec 19, 2018
5b454a3
Add additional tests for get_credentials
bjoernricks Dec 19, 2018
8eb0ad5
Update get_credential tests
bjoernricks Dec 19, 2018
4e288d5
Require feed_type as argument for get_feed
bjoernricks Dec 19, 2018
4bbbdb1
Add tests for get_feed command
bjoernricks Dec 19, 2018
ef81183
Add test for get_feeds command
bjoernricks Dec 19, 2018
bf12003
Add tests for get_filters
bjoernricks Dec 19, 2018
55708c2
Require filter_id argument for get_filter
bjoernricks Dec 19, 2018
94d0097
Add tests for get_filter
bjoernricks Dec 19, 2018
824813c
Require group_id for get_group method
bjoernricks Dec 19, 2018
7409f6f
Add tests for get_group
bjoernricks Dec 19, 2018
68441d3
Add tests for get_groups
bjoernricks Dec 19, 2018
7a2b4a8
Extract list of info types as a tuple constant
bjoernricks Dec 19, 2018
5874f5d
Require info_type argument for get_info_list
bjoernricks Dec 19, 2018
390df13
Add type before filter to get_info xml command for get_info_list
bjoernricks Dec 19, 2018
cca1acf
Require info_type and info_id for get_info
bjoernricks Dec 19, 2018
5387197
Add tests for get_info
bjoernricks Dec 19, 2018
33675f8
Add tests for get_info_list
bjoernricks Dec 19, 2018
90a21c6
Remove filter_id and nvt_oid parameters
bjoernricks Dec 19, 2018
7de82d7
Update docstrings for details and result arguments for get_notes
bjoernricks Dec 19, 2018
b635703
Require note_id argument for get_note
bjoernricks Dec 19, 2018
abf1e41
Add tests for get_note
bjoernricks Dec 19, 2018
d3a58eb
Add tests for get_notes
bjoernricks Dec 19, 2018
7a585c8
Require nvt_oid for get_nvt method
bjoernricks Dec 19, 2018
4b6fc3a
Add test for missing nvt_oid when calling get_nvt
bjoernricks Dec 19, 2018
2be57b2
Add test for passing false for boolean args of get_nvts
bjoernricks Dec 19, 2018
dcc80f8
Add tests for get_nvt_families
bjoernricks Dec 19, 2018
973ef89
Remove nvt_oid and task_id from get_overrides
bjoernricks Dec 19, 2018
b8fe399
Require override_id for get_override method
bjoernricks Dec 19, 2018
a40c737
Add tests for get_override
bjoernricks Dec 19, 2018
3e4b5d2
Add tests for get_overrides
bjoernricks Dec 19, 2018
ab66341
Add tests for get_permissions
bjoernricks Dec 19, 2018
b98e4ac
Require permission_id for get_permission
bjoernricks Dec 19, 2018
dea3dbf
Add tests for get_permission
bjoernricks Dec 19, 2018
8dd82d9
Require port_list_id for get_port_list method
bjoernricks Dec 19, 2018
8014002
Add tests for get_port_list
bjoernricks Dec 19, 2018
d295196
Add tests for get_port_lists
bjoernricks Dec 19, 2018
9baa9bd
Move getting a single preference into its own method
bjoernricks Dec 19, 2018
f5625f2
Add tests for get_preference
bjoernricks Dec 19, 2018
931c2eb
Add tests for get_preferences
bjoernricks Dec 19, 2018
30ee72c
Add tests for get_report_formats
bjoernricks Dec 19, 2018
89a2fdd
Require report_format_id for get_report_format method
bjoernricks Dec 19, 2018
56dfe2c
Add tests for get_report_format
bjoernricks Dec 19, 2018
0e9db17
Add tests for get_results
bjoernricks Dec 19, 2018
e80f9e1
Require result_id for get_result
bjoernricks Dec 19, 2018
222d896
Add tests for get_result
bjoernricks Dec 19, 2018
7fcec38
Require role_id for get_role method
bjoernricks Dec 19, 2018
92c5482
Add tests for get_role
bjoernricks Dec 19, 2018
1c15b38
Add tests for get_roles
bjoernricks Dec 19, 2018
81b991a
Require scanner_id for get_scanner method
bjoernricks Dec 20, 2018
548ff55
Add tests for get_scanner
bjoernricks Dec 20, 2018
8c26612
Add tests for get_scanners
bjoernricks Dec 20, 2018
2c6ee32
Require schedule_id for get_schedule method
bjoernricks Dec 20, 2018
981ace1
Add tests for get_schedule
bjoernricks Dec 20, 2018
5979577
Add tests for get_schedules
bjoernricks Dec 20, 2018
1a09364
Apply suggestions from code review
wiegandm Dec 20, 2018
948cb75
Update get_settings tests
bjoernricks Dec 20, 2018
0c8eaea
Ensure duration of get_system_reports is an integer
bjoernricks Dec 20, 2018
a791a51
Add tests for get_system_reports
bjoernricks Dec 20, 2018
723ceef
Require setting_id for get_setting
bjoernricks Dec 20, 2018
e2c0f08
Add test for missing setting_id of get_setting
bjoernricks Dec 20, 2018
fb0f947
Require tag_id for get_tag
bjoernricks Dec 20, 2018
14dfb2d
Add tests for get_tag
bjoernricks Dec 20, 2018
bec7e2f
Add tests for get_tags
bjoernricks Dec 20, 2018
9442f9f
Add tests for get_targets
bjoernricks Dec 20, 2018
9e38cdc
Require target_id for get_target
bjoernricks Dec 20, 2018
f202e07
Add tests for get_target
bjoernricks Dec 20, 2018
616f159
Add tests for get_users
bjoernricks Dec 20, 2018
8e0f95f
Require user_id argument for get_user method
bjoernricks Dec 20, 2018
d5c7291
Add tests for get_user
bjoernricks Dec 20, 2018
3e76575
Add tests for missing report_id when calling trigger_alert
bjoernricks Dec 20, 2018
fcea21a
Update coding style of create alert tests
bjoernricks Dec 20, 2018
d0b45f0
Extract checking the event of create_alert into an own function
bjoernricks Dec 20, 2018
6a53899
Update coding style in modify_agent method
bjoernricks Dec 20, 2018
d244273
Add tests for modify_agent
bjoernricks Dec 20, 2018
e027d67
Only add xml elements if values are provided to modify_alert
bjoernricks Dec 20, 2018
a4a8018
Fix order of key and value for modify_alert data
bjoernricks Dec 20, 2018
3fe81d2
Check event argument for modify_alert
bjoernricks Dec 20, 2018
529cbb3
Update docstrings about condition, event and method args
bjoernricks Dec 20, 2018
a2f17f7
Add tests for modify_alert
bjoernricks Dec 20, 2018
f730153
Reset comment when calling modify_asset without comment argument
bjoernricks Dec 20, 2018
c1352b0
Add tests for modify_asset
bjoernricks Dec 20, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,16 @@
* Fixed generating XML for `get_nvts` command
* Fixed generating XML for `get_settings` command
* Fixed generating XML for `get_credentials` command
* Renamed create_asset method to create_host and dropped asset_type parameter. It is
only possible to create host assets.
* Renamed create_asset method to create_host and dropped asset_type parameter.
It is only possible to create host assets.
* Updated and improved validation of `create_schedule` arguments
* Removed the format parameter from `get_credentials` method
* Removed the task_id and nvt_oid parameters from `get_notes` and
`get_overrides` methods
* Split getting a single preference by name from `get_preferences` method into
`get_preference`
* Fixed wrong order of key and value for condition_data, event_data and
method_data dict parameters of `modify_alert` method.

# python-gvm 1.0.0.beta2 (04.12.2018)

Expand Down
Loading