=begin #Datadog API V1 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::V1::SyntheticsAPI # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate describe 'SyntheticsAPI' do before do # run before each test @api_instance = DatadogAPIClient::V1::SyntheticsAPI.new end after do # run after each test end describe 'test an instance of SyntheticsAPI' do it 'should create an instance of SyntheticsAPI' do expect(@api_instance).to be_instance_of(DatadogAPIClient::V1::SyntheticsAPI) end end # unit tests for create_global_variable # Create a global variable # Create a Synthetics global variable. # @param body Details of the global variable to create. # @param [Hash] opts the optional parameters # @return [SyntheticsGlobalVariable] describe 'create_global_variable 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_private_location # Create a private location # Create a new Synthetics private location. # @param body Details of the private location to create. # @param [Hash] opts the optional parameters # @return [SyntheticsPrivateLocationCreationResponse] describe 'create_private_location 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_synthetics_api_test # Create an API test # Create a Synthetic API test. # @param body Details of the test to create. # @param [Hash] opts the optional parameters # @return [SyntheticsAPITest] describe 'create_synthetics_api_test 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_synthetics_browser_test # Create a browser test # Create a Synthetic browser test. # @param body Details of the test to create. # @param [Hash] opts the optional parameters # @return [SyntheticsBrowserTest] describe 'create_synthetics_browser_test 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_global_variable # Delete a global variable # Delete a Synthetics global variable. # @param variable_id The ID of the global variable. # @param [Hash] opts the optional parameters # @return [nil] describe 'delete_global_variable 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_private_location # Delete a private location # Delete a Synthetics private location. # @param location_id The ID of the private location. # @param [Hash] opts the optional parameters # @return [nil] describe 'delete_private_location 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_tests # Delete tests # Delete multiple Synthetic tests by ID. # @param body Public ID list of the Synthetic tests to be deleted. # @param [Hash] opts the optional parameters # @return [SyntheticsDeleteTestsResponse] describe 'delete_tests 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 edit_global_variable # Edit a global variable # Edit a Synthetics global variable. # @param variable_id The ID of the global variable. # @param body Details of the global variable to update. # @param [Hash] opts the optional parameters # @return [SyntheticsGlobalVariable] describe 'edit_global_variable 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_api_test # Get an API test # Get the detailed configuration associated with a Synthetic API test. # @param public_id The public ID of the test to get details from. # @param [Hash] opts the optional parameters # @return [SyntheticsAPITest] describe 'get_api_test 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_api_test_latest_results # Get an API test's latest results summaries # Get the last 50 test results summaries for a given Synthetics API test. # @param public_id The public ID of the test for which to search results for. # @param [Hash] opts the optional parameters # @option opts [Integer] :from_ts Timestamp in milliseconds from which to start querying results. # @option opts [Integer] :to_ts Timestamp in milliseconds up to which to query results. # @option opts [Array] :probe_dc Locations for which to query results. # @return [SyntheticsGetAPITestLatestResultsResponse] describe 'get_api_test_latest_results 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_api_test_result # Get an API test result # Get a specific full result from a given (API) Synthetic test. # @param public_id The public ID of the API test to which the target result belongs. # @param result_id The ID of the result to get. # @param [Hash] opts the optional parameters # @return [SyntheticsAPITestResultFull] describe 'get_api_test_result 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_browser_test # Get a browser test # Get the detailed configuration (including steps) associated with a Synthetic browser test. # @param public_id The public ID of the test to get details from. # @param [Hash] opts the optional parameters # @return [SyntheticsBrowserTest] describe 'get_browser_test 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_browser_test_latest_results # Get a browser test's latest results summaries # Get the last 50 test results summaries for a given Synthetics Browser test. # @param public_id The public ID of the browser test for which to search results for. # @param [Hash] opts the optional parameters # @option opts [Integer] :from_ts Timestamp in milliseconds from which to start querying results. # @option opts [Integer] :to_ts Timestamp in milliseconds up to which to query results. # @option opts [Array] :probe_dc Locations for which to query results. # @return [SyntheticsGetBrowserTestLatestResultsResponse] describe 'get_browser_test_latest_results 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_browser_test_result # Get a browser test result # Get a specific full result from a given (browser) Synthetic test. # @param public_id The public ID of the browser test to which the target result belongs. # @param result_id The ID of the result to get. # @param [Hash] opts the optional parameters # @return [SyntheticsBrowserTestResultFull] describe 'get_browser_test_result 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_global_variable # Get a global variable # Get the detailed configuration of a global variable. # @param variable_id The ID of the global variable. # @param [Hash] opts the optional parameters # @return [SyntheticsGlobalVariable] describe 'get_global_variable 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_private_location # Get a private location # Get a Synthetics private location. # @param location_id The ID of the private location. # @param [Hash] opts the optional parameters # @return [SyntheticsPrivateLocation] describe 'get_private_location 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_synthetics_ci_batch # Get details of batch # Get a batch's updated details. # @param batch_id The ID of the batch. # @param [Hash] opts the optional parameters # @return [SyntheticsBatchDetails] describe 'get_synthetics_ci_batch 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_test # Get a test configuration # Get the detailed configuration associated with a Synthetics test. # @param public_id The public ID of the test to get details from. # @param [Hash] opts the optional parameters # @return [SyntheticsTestDetails] describe 'get_test 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_global_variables # Get all global variables # Get the list of all Synthetics global variables. # @param [Hash] opts the optional parameters # @return [SyntheticsListGlobalVariablesResponse] describe 'list_global_variables 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_locations # Get all locations (public and private) # Get the list of public and private locations available for Synthetic tests. No arguments required. # @param [Hash] opts the optional parameters # @return [SyntheticsLocations] describe 'list_locations 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_tests # Get the list of all tests # Get the list of all Synthetic tests. # @param [Hash] opts the optional parameters # @return [SyntheticsListTestsResponse] describe 'list_tests 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 trigger_ci_tests # Trigger tests from CI/CD pipelines # Trigger a set of Synthetics tests for continuous integration. # @param body Details of the test to trigger. # @param [Hash] opts the optional parameters # @return [SyntheticsTriggerCITestsResponse] describe 'trigger_ci_tests 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 trigger_tests # Trigger Synthetics tests # Trigger a set of Synthetics tests. # @param body The identifiers of the tests to trigger. # @param [Hash] opts the optional parameters # @return [SyntheticsTriggerCITestsResponse] describe 'trigger_tests 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_api_test # Edit an API test # Edit the configuration of a Synthetic API test. # @param public_id The public ID of the test to get details from. # @param body New test details to be saved. # @param [Hash] opts the optional parameters # @return [SyntheticsAPITest] describe 'update_api_test 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_browser_test # Edit a browser test # Edit the configuration of a Synthetic browser test. # @param public_id The public ID of the test to get details from. # @param body New test details to be saved. # @param [Hash] opts the optional parameters # @return [SyntheticsBrowserTest] describe 'update_browser_test 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_private_location # Edit a private location # Edit a Synthetics private location. # @param location_id The ID of the private location. # @param body Details of the private location to be updated. # @param [Hash] opts the optional parameters # @return [SyntheticsPrivateLocation] describe 'update_private_location 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_test_pause_status # Pause or start a test # Pause or start a Synthetics test by changing the status. # @param public_id The public ID of the Synthetic test to update. # @param body Status to set the given Synthetic test to. # @param [Hash] opts the optional parameters # @return [Boolean] describe 'update_test_pause_status test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end end