=begin #Datadog API V2 Collection #Collection of all Datadog Public endpoints. The version of the OpenAPI document: 1.0 Contact: support@datadoghq.com Generated by: https://openapi-generator.tech Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. This product includes software developed at Datadog (https://www.datadoghq.com/). Copyright 2020-Present Datadog, Inc. =end require 'spec_helper' require 'json' # Unit tests for DatadogAPIClient::V2::SecurityMonitoringAPI # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe 'SecurityMonitoringAPI' do before do # run before each test @api_instance = DatadogAPIClient::V2::SecurityMonitoringAPI.new end after do # run after each test end describe 'test an instance of SecurityMonitoringAPI' do it 'should create an instance of SecurityMonitoringAPI' do expect(@api_instance).to be_instance_of(DatadogAPIClient::V2::SecurityMonitoringAPI) end end # unit tests for create_security_filter # Create a security filter # Create a security filter. See the [security filter guide](https://docs.datadoghq.com/security_platform/guide/how-to-setup-security-filters-using-security-monitoring-api/) for more examples. # @param body The definition of the new security filter. # @param [Hash] opts the optional parameters # @return [SecurityFilterResponse] describe 'create_security_filter test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for create_security_monitoring_rule # Create a detection rule # Create a detection rule. # @param body # @param [Hash] opts the optional parameters # @return [SecurityMonitoringRuleResponse] describe 'create_security_monitoring_rule test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for delete_security_filter # Delete a security filter # Delete a specific security filter. # @param security_filter_id The ID of the security filter. # @param [Hash] opts the optional parameters # @return [nil] describe 'delete_security_filter test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for delete_security_monitoring_rule # Delete an existing rule # Delete an existing rule. Default rules cannot be deleted. # @param rule_id The ID of the rule. # @param [Hash] opts the optional parameters # @return [nil] describe 'delete_security_monitoring_rule test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for get_security_filter # Get a security filter # Get the details of a specific security filter. See the [security filter guide](https://docs.datadoghq.com/security_platform/guide/how-to-setup-security-filters-using-security-monitoring-api/) for more examples. # @param security_filter_id The ID of the security filter. # @param [Hash] opts the optional parameters # @return [SecurityFilterResponse] describe 'get_security_filter test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for get_security_monitoring_rule # Get a rule's details # Get a rule's details. # @param rule_id The ID of the rule. # @param [Hash] opts the optional parameters # @return [SecurityMonitoringRuleResponse] describe 'get_security_monitoring_rule test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for list_security_filters # Get all security filters # Get the list of configured security filters with their definitions. # @param [Hash] opts the optional parameters # @return [SecurityFiltersResponse] describe 'list_security_filters test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for list_security_monitoring_rules # List rules # List rules. # @param [Hash] opts the optional parameters # @option opts [Integer] :page_size Size for a given page. # @option opts [Integer] :page_number Specific page number to return. # @return [SecurityMonitoringListRulesResponse] describe 'list_security_monitoring_rules test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for list_security_monitoring_signals # Get a quick list of security signals # The list endpoint returns security signals that match a search query. Both this endpoint and the POST endpoint can be used interchangeably when listing security signals. # @param [Hash] opts the optional parameters # @option opts [String] :filter_query The search query for security signals. # @option opts [Time] :filter_from The minimum timestamp for requested security signals. # @option opts [Time] :filter_to The maximum timestamp for requested security signals. # @option opts [SecurityMonitoringSignalsSort] :sort The order of the security signals in results. # @option opts [String] :page_cursor A list of results using the cursor provided in the previous query. # @option opts [Integer] :page_limit The maximum number of security signals in the response. # @return [SecurityMonitoringSignalsListResponse] describe 'list_security_monitoring_signals test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for search_security_monitoring_signals # Get a list of security signals # Returns security signals that match a search query. Both this endpoint and the GET endpoint can be used interchangeably for listing security signals. # @param [Hash] opts the optional parameters # @option opts [SecurityMonitoringSignalListRequest] :body # @return [SecurityMonitoringSignalsListResponse] describe 'search_security_monitoring_signals test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for update_security_filter # Update a security filter # Update a specific security filter. Returns the security filter object when the request is successful. # @param security_filter_id The ID of the security filter. # @param body New definition of the security filter. # @param [Hash] opts the optional parameters # @return [SecurityFilterResponse] describe 'update_security_filter test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for update_security_monitoring_rule # Update an existing rule # Update an existing rule. When updating `cases`, `queries` or `options`, the whole field must be included. For example, when modifying a query all queries must be included. Default rules can only be updated to be enabled and to change notifications. # @param rule_id The ID of the rule. # @param body # @param [Hash] opts the optional parameters # @return [SecurityMonitoringRuleResponse] describe 'update_security_monitoring_rule test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end