Skip to content

Commit

Permalink
Updated unit tests for issue #114
Browse files Browse the repository at this point in the history
  • Loading branch information
jshcodes committed Apr 4, 2021
1 parent 8bac7f8 commit 40c8f31
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion tests/test_device_control_policies.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def serviceDeviceControlPolicies_GenerateErrors(self):
["queryCombinedDeviceControlPolicyMembers", ""],
["queryCombinedDeviceControlPolicies", ""],
["performDeviceControlPoliciesAction", "body={}, parameters={}, action_name='enable'"],
["performDeviceControlPoliciesAction", "body={}, parameters={}, action_name='PooF'"],
["performDeviceControlPoliciesAction", "body={}, parameters={'action_name':'PooF'}"],
["setDeviceControlPoliciesPrecedence", "body={}"],
["getDeviceControlPolicies", "ids='12345678'"],
["createDeviceControlPolicies", "body={}"],
Expand Down
2 changes: 1 addition & 1 deletion tests/test_firewall_policies.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def serviceFirewall_GenerateErrors(self):
["queryCombinedFirewallPolicyMembers", ""],
["queryCombinedFirewallPolicies", ""],
["performFirewallPoliciesAction", "action_name='enable', body={}, parameters={}"],
["performFirewallPoliciesAction", "action_name='make-it-go-boom', body={}, parameters={}"],
["performFirewallPoliciesAction", "body={}, parameters={'action_name':'PooF'}"],
["setFirewallPoliciesPrecedence", "body={}"],
["getFirewallPolicies", "ids='12345678'"],
["createFirewallPolicies", "body={}"],
Expand Down
2 changes: 1 addition & 1 deletion tests/test_host_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def serviceHostGroup_GenerateErrors(self):
["queryCombinedGroupMembers", ""],
["queryCombinedHostGroups", ""],
["performGroupAction", "action_name='add-hosts', body={}, parameters={}"],
["performGroupAction", "action_name='iLikeErrorMessages', body={}, parameters={}"],
["performGroupAction", "body={}, parameters={'action_name':'PooF'}"],
["getHostGroups", "ids='12345678'"],
["createHostGroups", "body={}"],
["deleteHostGroups", "ids='12345678'"],
Expand Down
2 changes: 1 addition & 1 deletion tests/test_hosts.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def serviceHosts_GenerateErrors(self):
errorChecks = True
commandList = [
["PerformActionV2","body={}, action_name='unhide_host', parameters={}"],
["PerformActionV2","body={}, action_name='KErrrPOW', parameters={}"],
["PerformActionV2","body={}, parameters={'action_name':'PooF'}"],
["GetDeviceDetails", "ids='12345678'"],
["QueryHiddenDevices", ""],
["QueryDevicesByFilterScroll", ""],
Expand Down
2 changes: 1 addition & 1 deletion tests/test_prevention_policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def servicePrevent_GenerateErrors(self):
["queryCombinedPreventionPolicyMembers", ""],
["queryCombinedPreventionPolicies", ""],
["performPreventionPoliciesAction", "body={}, action_name='enable', parameters={}"],
["performPreventionPoliciesAction", "body={}, action_name='kaB00M', parameters={}"],
["performPreventionPoliciesAction", "body={}, parameters={'action_name':'PooF'}"],
["setPreventionPoliciesPrecedence", "body={}"],
["getPreventionPolicies", "ids='12345678'"],
["createPreventionPolicies", "body={}"],
Expand Down
2 changes: 1 addition & 1 deletion tests/test_sensor_update_policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def serviceSensorUpdate_GenerateErrors(self):
["updateSensorUpdatePolicies", "body={}"],
["updateSensorUpdatePoliciesV2", "body={}"],
["performSensorUpdatePoliciesAction", "body={}, action_name='enable', parameters={}"],
["performSensorUpdatePoliciesAction", "body={}, action_name='ThisWillFail', parameters={}"],
["performSensorUpdatePoliciesAction", "body={}, parameters={'action_name':'PooF'}"],
["setSensorUpdatePoliciesPrecedence", "body={}"],
["queryCombinedSensorUpdatePoliciesV2",""]
]
Expand Down

0 comments on commit 40c8f31

Please sign in to comment.