diff --git a/.apigentools-info b/.apigentools-info index b05064860f..fb74d79b3a 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -4,13 +4,13 @@ "spec_versions": { "v1": { "apigentools_version": "1.4.1.dev6", - "regenerated": "2021-04-26 08:16:19.525650", - "spec_repo_commit": "e26c7dd" + "regenerated": "2021-04-26 10:43:48.470883", + "spec_repo_commit": "ff4efbb" }, "v2": { "apigentools_version": "1.4.1.dev6", - "regenerated": "2021-04-26 08:16:46.360849", - "spec_repo_commit": "e26c7dd" + "regenerated": "2021-04-26 10:44:17.733512", + "spec_repo_commit": "ff4efbb" } } } \ No newline at end of file diff --git a/docs/v1/README.md b/docs/v1/README.md index 6e7be97d66..2049b78725 100644 --- a/docs/v1/README.md +++ b/docs/v1/README.md @@ -215,7 +215,6 @@ Class | Method | HTTP request | Description *SyntheticsApi* | [**create_private_location**](SyntheticsApi.md#create_private_location) | **POST** /api/v1/synthetics/private-locations | Create a private location *SyntheticsApi* | [**create_synthetics_api_test**](SyntheticsApi.md#create_synthetics_api_test) | **POST** /api/v1/synthetics/tests/api | Create an API test *SyntheticsApi* | [**create_synthetics_browser_test**](SyntheticsApi.md#create_synthetics_browser_test) | **POST** /api/v1/synthetics/tests/browser | Create a browser test -*SyntheticsApi* | [**create_test**](SyntheticsApi.md#create_test) | **POST** /api/v1/synthetics/tests | Create a test *SyntheticsApi* | [**delete_global_variable**](SyntheticsApi.md#delete_global_variable) | **DELETE** /api/v1/synthetics/variables/{variable_id} | Delete a global variable *SyntheticsApi* | [**delete_private_location**](SyntheticsApi.md#delete_private_location) | **DELETE** /api/v1/synthetics/private-locations/{location_id} | Delete a private location *SyntheticsApi* | [**delete_tests**](SyntheticsApi.md#delete_tests) | **POST** /api/v1/synthetics/tests/delete | Delete tests @@ -235,7 +234,6 @@ Class | Method | HTTP request | Description *SyntheticsApi* | [**update_api_test**](SyntheticsApi.md#update_api_test) | **PUT** /api/v1/synthetics/tests/api/{public_id} | Edit an API test *SyntheticsApi* | [**update_browser_test**](SyntheticsApi.md#update_browser_test) | **PUT** /api/v1/synthetics/tests/browser/{public_id} | Edit a browser test *SyntheticsApi* | [**update_private_location**](SyntheticsApi.md#update_private_location) | **PUT** /api/v1/synthetics/private-locations/{location_id} | Edit a private location -*SyntheticsApi* | [**update_test**](SyntheticsApi.md#update_test) | **PUT** /api/v1/synthetics/tests/{public_id} | Edit a test *SyntheticsApi* | [**update_test_pause_status**](SyntheticsApi.md#update_test_pause_status) | **PUT** /api/v1/synthetics/tests/{public_id}/status | Pause or start a test *TagsApi* | [**create_host_tags**](TagsApi.md#create_host_tags) | **POST** /api/v1/tags/hosts/{host_name} | Add tags to a host *TagsApi* | [**delete_host_tags**](TagsApi.md#delete_host_tags) | **DELETE** /api/v1/tags/hosts/{host_name} | Remove host tags diff --git a/docs/v1/SyntheticsApi.md b/docs/v1/SyntheticsApi.md index 0c73fa5111..e385220407 100644 --- a/docs/v1/SyntheticsApi.md +++ b/docs/v1/SyntheticsApi.md @@ -8,7 +8,6 @@ Method | HTTP request | Description [**create_private_location**](SyntheticsApi.md#create_private_location) | **POST** /api/v1/synthetics/private-locations | Create a private location [**create_synthetics_api_test**](SyntheticsApi.md#create_synthetics_api_test) | **POST** /api/v1/synthetics/tests/api | Create an API test [**create_synthetics_browser_test**](SyntheticsApi.md#create_synthetics_browser_test) | **POST** /api/v1/synthetics/tests/browser | Create a browser test -[**create_test**](SyntheticsApi.md#create_test) | **POST** /api/v1/synthetics/tests | Create a test [**delete_global_variable**](SyntheticsApi.md#delete_global_variable) | **DELETE** /api/v1/synthetics/variables/{variable_id} | Delete a global variable [**delete_private_location**](SyntheticsApi.md#delete_private_location) | **DELETE** /api/v1/synthetics/private-locations/{location_id} | Delete a private location [**delete_tests**](SyntheticsApi.md#delete_tests) | **POST** /api/v1/synthetics/tests/delete | Delete tests @@ -28,7 +27,6 @@ Method | HTTP request | Description [**update_api_test**](SyntheticsApi.md#update_api_test) | **PUT** /api/v1/synthetics/tests/api/{public_id} | Edit an API test [**update_browser_test**](SyntheticsApi.md#update_browser_test) | **PUT** /api/v1/synthetics/tests/browser/{public_id} | Edit a browser test [**update_private_location**](SyntheticsApi.md#update_private_location) | **PUT** /api/v1/synthetics/private-locations/{location_id} | Edit a private location -[**update_test**](SyntheticsApi.md#update_test) | **PUT** /api/v1/synthetics/tests/{public_id} | Edit a test [**update_test_pause_status**](SyntheticsApi.md#update_test_pause_status) | **PUT** /api/v1/synthetics/tests/{public_id}/status | Pause or start a test @@ -529,168 +527,6 @@ Name | Type | Description | Notes - **Accept**: application/json -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK - Returns the created test details. | - | -**400** | - JSON format is wrong - Creation failed | - | -**402** | Test quota is reached | - | -**403** | Forbidden | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - -# **create_test** -> SyntheticsTestDetails create_test(body) - -Create a test - -Create a Synthetic test. - -### Example - -* Api Key Authentication (apiKeyAuth): -* Api Key Authentication (appKeyAuth): -```python -import os -from dateutil.parser import parse as dateutil_parser -from datadog_api_client.v1 import ApiClient, ApiException, Configuration -from datadog_api_client.v1.api import synthetics_api -from datadog_api_client.v1.models import * -from pprint import pprint -# See configuration.py for a list of all supported configuration parameters. -configuration = Configuration() - -# Enter a context with an instance of the API client -with ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = synthetics_api.SyntheticsApi(api_client) - body = SyntheticsTestDetails( - config=SyntheticsTestConfig( - assertions=[ - SyntheticsAssertion(), - ], - config_variables=[ - SyntheticsConfigVariable( - example="example_example", - name="VARIABLE_NAME", - pattern="pattern_example", - type=SyntheticsConfigVariableType("text"), - ), - ], - request=SyntheticsTestRequest( - basic_auth=SyntheticsBasicAuth( - password="", - username="", - ), - body="body_example", - certificate=SyntheticsTestRequestCertificate( - cert=SyntheticsTestRequestCertificateItem( - content="content_example", - filename="filename_example", - updated_at="updated_at_example", - ), - key=SyntheticsTestRequestCertificateItem( - content="content_example", - filename="filename_example", - updated_at="updated_at_example", - ), - ), - dns_server="dns_server_example", - headers=SyntheticsTestHeaders( - key="key_example", - ), - host="host_example", - method=HTTPMethod("GET"), - no_saving_response_body=True, - port=1, - query={}, - timeout=3.14, - url="url_example", - ), - variables=[ - SyntheticsBrowserVariable( - example="example_example", - id="id_example", - name="VARIABLE_NAME", - pattern="pattern_example", - type=SyntheticsBrowserVariableType("element"), - ), - ], - ), - locations=[ - "locations_example", - ], - message="message_example", - monitor_id=1, - name="name_example", - options=SyntheticsTestOptions( - accept_self_signed=True, - allow_insecure=True, - device_ids=[ - SyntheticsDeviceID("laptop_large"), - ], - disable_cors=True, - follow_redirects=True, - min_failure_duration=1, - min_location_failed=1, - monitor_options=SyntheticsTestOptionsMonitorOptions( - renotify_interval=0, - ), - no_screenshot=True, - retry=SyntheticsTestOptionsRetry( - count=1, - interval=3.14, - ), - tick_every=SyntheticsTickInterval(60), - ), - public_id="public_id_example", - status=SyntheticsTestPauseStatus("live"), - steps=[ - SyntheticsStep( - allow_failure=True, - name="name_example", - params={}, - timeout=1, - type=SyntheticsStepType("assertCurrentUrl"), - ), - ], - subtype=SyntheticsTestDetailsSubType("http"), - tags=[ - "tags_example", - ], - type=SyntheticsTestDetailsType("api"), - ) # SyntheticsTestDetails | Details of the test to create. - - # example passing only required values which don't have defaults set - try: - # Create a test - api_response = api_instance.create_test(body) - pprint(api_response) - except ApiException as e: - print("Exception when calling SyntheticsApi->create_test: %s\n" % e) -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **body** | [**SyntheticsTestDetails**](SyntheticsTestDetails.md)| Details of the test to create. | - -### Return type - -[**SyntheticsTestDetails**](SyntheticsTestDetails.md) - -### Authorization - -[apiKeyAuth](README.md#apiKeyAuth), [appKeyAuth](README.md#appKeyAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - - ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| @@ -2274,170 +2110,6 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) -# **update_test** -> SyntheticsTestDetails update_test(public_id, body) - -Edit a test - -Edit the configuration of a Synthetic test. - -### Example - -* Api Key Authentication (apiKeyAuth): -* Api Key Authentication (appKeyAuth): -```python -import os -from dateutil.parser import parse as dateutil_parser -from datadog_api_client.v1 import ApiClient, ApiException, Configuration -from datadog_api_client.v1.api import synthetics_api -from datadog_api_client.v1.models import * -from pprint import pprint -# See configuration.py for a list of all supported configuration parameters. -configuration = Configuration() - -# Enter a context with an instance of the API client -with ApiClient(configuration) as api_client: - # Create an instance of the API class - api_instance = synthetics_api.SyntheticsApi(api_client) - public_id = "public_id_example" # str | The public ID of the test to get details from. - body = SyntheticsTestDetails( - config=SyntheticsTestConfig( - assertions=[ - SyntheticsAssertion(), - ], - config_variables=[ - SyntheticsConfigVariable( - example="example_example", - name="VARIABLE_NAME", - pattern="pattern_example", - type=SyntheticsConfigVariableType("text"), - ), - ], - request=SyntheticsTestRequest( - basic_auth=SyntheticsBasicAuth( - password="", - username="", - ), - body="body_example", - certificate=SyntheticsTestRequestCertificate( - cert=SyntheticsTestRequestCertificateItem( - content="content_example", - filename="filename_example", - updated_at="updated_at_example", - ), - key=SyntheticsTestRequestCertificateItem( - content="content_example", - filename="filename_example", - updated_at="updated_at_example", - ), - ), - dns_server="dns_server_example", - headers=SyntheticsTestHeaders( - key="key_example", - ), - host="host_example", - method=HTTPMethod("GET"), - no_saving_response_body=True, - port=1, - query={}, - timeout=3.14, - url="url_example", - ), - variables=[ - SyntheticsBrowserVariable( - example="example_example", - id="id_example", - name="VARIABLE_NAME", - pattern="pattern_example", - type=SyntheticsBrowserVariableType("element"), - ), - ], - ), - locations=[ - "locations_example", - ], - message="message_example", - monitor_id=1, - name="name_example", - options=SyntheticsTestOptions( - accept_self_signed=True, - allow_insecure=True, - device_ids=[ - SyntheticsDeviceID("laptop_large"), - ], - disable_cors=True, - follow_redirects=True, - min_failure_duration=1, - min_location_failed=1, - monitor_options=SyntheticsTestOptionsMonitorOptions( - renotify_interval=0, - ), - no_screenshot=True, - retry=SyntheticsTestOptionsRetry( - count=1, - interval=3.14, - ), - tick_every=SyntheticsTickInterval(60), - ), - public_id="public_id_example", - status=SyntheticsTestPauseStatus("live"), - steps=[ - SyntheticsStep( - allow_failure=True, - name="name_example", - params={}, - timeout=1, - type=SyntheticsStepType("assertCurrentUrl"), - ), - ], - subtype=SyntheticsTestDetailsSubType("http"), - tags=[ - "tags_example", - ], - type=SyntheticsTestDetailsType("api"), - ) # SyntheticsTestDetails | New test details to be saved. - - # example passing only required values which don't have defaults set - try: - # Edit a test - api_response = api_instance.update_test(public_id, body) - pprint(api_response) - except ApiException as e: - print("Exception when calling SyntheticsApi->update_test: %s\n" % e) -``` - - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **public_id** | **str**| The public ID of the test to get details from. | - **body** | [**SyntheticsTestDetails**](SyntheticsTestDetails.md)| New test details to be saved. | - -### Return type - -[**SyntheticsTestDetails**](SyntheticsTestDetails.md) - -### Authorization - -[apiKeyAuth](README.md#apiKeyAuth), [appKeyAuth](README.md#appKeyAuth) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: application/json - - -### HTTP response details -| Status code | Description | Response headers | -|-------------|-------------|------------------| -**200** | OK | - | -**400** | - JSON format is wrong - Updating sub-type is forbidden | - | -**403** | Forbidden | - | -**404** | - Synthetic is not activated for the user - Test is not owned by the user - Test can't be found | - | - -[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md) - # **update_test_pause_status** > bool update_test_pause_status(public_id, body) diff --git a/src/datadog_api_client/v1/api/synthetics_api.py b/src/datadog_api_client/v1/api/synthetics_api.py index 1c6086050d..c8ef0d090c 100644 --- a/src/datadog_api_client/v1/api/synthetics_api.py +++ b/src/datadog_api_client/v1/api/synthetics_api.py @@ -200,42 +200,6 @@ def __init__(self, api_client=None): api_client=api_client, ) - self._create_test_endpoint = _Endpoint( - settings={ - "response_type": (SyntheticsTestDetails,), - "auth": ["apiKeyAuth", "appKeyAuth"], - "endpoint_path": "/api/v1/synthetics/tests", - "operation_id": "create_test", - "http_method": "POST", - "servers": None, - }, - params_map={ - "all": [ - "body", - ], - "required": [ - "body", - ], - "nullable": [], - "enum": [], - "validation": [], - }, - root_map={ - "validations": {}, - "allowed_values": {}, - "openapi_types": { - "body": (SyntheticsTestDetails,), - }, - "attribute_map": {}, - "location_map": { - "body": "body", - }, - "collection_format_map": {}, - }, - headers_map={"accept": ["application/json"], "content_type": ["application/json"]}, - api_client=api_client, - ) - self._delete_global_variable_endpoint = _Endpoint( settings={ "response_type": None, @@ -1015,48 +979,6 @@ def __init__(self, api_client=None): api_client=api_client, ) - self._update_test_endpoint = _Endpoint( - settings={ - "response_type": (SyntheticsTestDetails,), - "auth": ["apiKeyAuth", "appKeyAuth"], - "endpoint_path": "/api/v1/synthetics/tests/{public_id}", - "operation_id": "update_test", - "http_method": "PUT", - "servers": None, - }, - params_map={ - "all": [ - "public_id", - "body", - ], - "required": [ - "public_id", - "body", - ], - "nullable": [], - "enum": [], - "validation": [], - }, - root_map={ - "validations": {}, - "allowed_values": {}, - "openapi_types": { - "public_id": (str,), - "body": (SyntheticsTestDetails,), - }, - "attribute_map": { - "public_id": "public_id", - }, - "location_map": { - "public_id": "path", - "body": "body", - }, - "collection_format_map": {}, - }, - headers_map={"accept": ["application/json"], "content_type": ["application/json"]}, - api_client=api_client, - ) - self._update_test_pause_status_endpoint = _Endpoint( settings={ "response_type": (bool,), @@ -1271,49 +1193,6 @@ def create_synthetics_browser_test(self, body, **kwargs): kwargs["body"] = body return self._create_synthetics_browser_test_endpoint.call_with_http_info(**kwargs) - def create_test(self, body, **kwargs): - """Create a test # noqa: E501 - - Create a Synthetic test. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - - >>> thread = api.create_test(body, async_req=True) - >>> result = thread.get() - - Args: - body (SyntheticsTestDetails): Details of the test to create. - - Keyword Args: - _return_http_data_only (bool): response data without head status - code and headers. Default is True. - _preload_content (bool): if False, the urllib3.HTTPResponse object - will be returned without reading/decoding response data. - Default is True. - _request_timeout (float/tuple): timeout setting for this request. If one - number provided, it will be total request timeout. It can also - be a pair (tuple) of (connection, read) timeouts. - Default is None. - _check_input_type (bool): specifies if type checking - should be done one the data sent to the server. - Default is True. - _check_return_type (bool): specifies if type checking - should be done one the data received from the server. - Default is True. - _host_index (int/None): specifies the index of the server - that we want to use. - Default is read from the configuration. - async_req (bool): execute request asynchronously - - Returns: - SyntheticsTestDetails - If the method is called asynchronously, returns the request - thread. - """ - kwargs = self._create_test_endpoint.default_arguments(kwargs) - kwargs["body"] = body - return self._create_test_endpoint.call_with_http_info(**kwargs) - def delete_global_variable(self, variable_id, **kwargs): """Delete a global variable # noqa: E501 @@ -2143,51 +2022,6 @@ def update_private_location(self, location_id, body, **kwargs): kwargs["body"] = body return self._update_private_location_endpoint.call_with_http_info(**kwargs) - def update_test(self, public_id, body, **kwargs): - """Edit a test # noqa: E501 - - Edit the configuration of a Synthetic test. # noqa: E501 - This method makes a synchronous HTTP request by default. To make an - asynchronous HTTP request, please pass async_req=True - - >>> thread = api.update_test(public_id, body, async_req=True) - >>> result = thread.get() - - Args: - public_id (str): The public ID of the test to get details from. - body (SyntheticsTestDetails): New test details to be saved. - - Keyword Args: - _return_http_data_only (bool): response data without head status - code and headers. Default is True. - _preload_content (bool): if False, the urllib3.HTTPResponse object - will be returned without reading/decoding response data. - Default is True. - _request_timeout (float/tuple): timeout setting for this request. If one - number provided, it will be total request timeout. It can also - be a pair (tuple) of (connection, read) timeouts. - Default is None. - _check_input_type (bool): specifies if type checking - should be done one the data sent to the server. - Default is True. - _check_return_type (bool): specifies if type checking - should be done one the data received from the server. - Default is True. - _host_index (int/None): specifies the index of the server - that we want to use. - Default is read from the configuration. - async_req (bool): execute request asynchronously - - Returns: - SyntheticsTestDetails - If the method is called asynchronously, returns the request - thread. - """ - kwargs = self._update_test_endpoint.default_arguments(kwargs) - kwargs["public_id"] = public_id - kwargs["body"] = body - return self._update_test_endpoint.call_with_http_info(**kwargs) - def update_test_pause_status(self, public_id, body, **kwargs): """Pause or start a test # noqa: E501 diff --git a/src/datadog_api_client/v1/openapi.yaml b/src/datadog_api_client/v1/openapi.yaml index 38fc01bc8e..101c23a1e9 100644 --- a/src/datadog_api_client/v1/openapi.yaml +++ b/src/datadog_api_client/v1/openapi.yaml @@ -17374,53 +17374,6 @@ paths: x-menu-order: 9 x-undo: type: safe - post: - deprecated: true - description: Create a Synthetic test. - operationId: CreateTest - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/SyntheticsTestDetails' - description: Details of the test to create. - required: true - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/SyntheticsTestDetails' - description: OK - Returns the created test details. - '400': - content: - application/json: - schema: - $ref: '#/components/schemas/APIErrorResponse' - description: '- JSON format is wrong - - - Creation failed' - '402': - content: - application/json: - schema: - $ref: '#/components/schemas/APIErrorResponse' - description: Test quota is reached - '403': - content: - application/json: - schema: - $ref: '#/components/schemas/APIErrorResponse' - description: Forbidden - summary: Create a test - tags: - - Synthetics - x-codegen-request-body-name: body - x-menu-order: 26 - x-undo: - operationId: TODO - parameters: [] - type: unsafe /api/v1/synthetics/tests/api: post: description: Create a Synthetic API test. @@ -17934,62 +17887,6 @@ paths: x-menu-order: 24 x-undo: type: safe - put: - deprecated: true - description: Edit the configuration of a Synthetic test. - operationId: UpdateTest - parameters: - - description: The public ID of the test to get details from. - in: path - name: public_id - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/SyntheticsTestDetails' - description: New test details to be saved. - required: true - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/SyntheticsTestDetails' - description: OK - '400': - content: - application/json: - schema: - $ref: '#/components/schemas/APIErrorResponse' - description: '- JSON format is wrong - - - Updating sub-type is forbidden' - '403': - content: - application/json: - schema: - $ref: '#/components/schemas/APIErrorResponse' - description: Forbidden - '404': - content: - application/json: - schema: - $ref: '#/components/schemas/APIErrorResponse' - description: '- Synthetic is not activated for the user - - - Test is not owned by the user - - - Test can''t be found' - summary: Edit a test - tags: - - Synthetics - x-codegen-request-body-name: body - x-menu-order: 25 - x-undo: - type: idempotent /api/v1/synthetics/tests/{public_id}/results: get: description: Get the last 50 test results summaries for a given Synthetics API diff --git a/tests/v1/features/synthetics.feature b/tests/v1/features/synthetics.feature index 6ed5d7aa6e..3ea3736ac9 100644 --- a/tests/v1/features/synthetics.feature +++ b/tests/v1/features/synthetics.feature @@ -71,27 +71,6 @@ Feature: Synthetics When the request is sent Then the response status is 402 Quota reached for private locations - @generated @skip - Scenario: Create a test returns "- JSON format is wrong" response - Given new "CreateTest" request - And body {"config": {"assertions": [], "configVariables": [{"example": null, "name": "VARIABLE_NAME", "pattern": null, "type": "text"}], "request": {"basicAuth": {"password": "", "username": ""}, "body": null, "certificate": {"cert": {"content": null, "filename": null, "updatedAt": null}, "key": {"content": null, "filename": null, "updatedAt": null}}, "dnsServer": null, "headers": null, "host": null, "method": "GET", "noSavingResponseBody": null, "port": null, "query": null, "timeout": null, "url": null}, "variables": [{"example": null, "id": null, "name": "VARIABLE_NAME", "pattern": null, "type": "element"}]}, "locations": [null], "message": null, "monitor_id": null, "name": null, "options": {"accept_self_signed": null, "allow_insecure": null, "device_ids": ["laptop_large"], "disableCors": null, "follow_redirects": null, "min_failure_duration": null, "min_location_failed": null, "monitor_options": {"renotify_interval": null}, "noScreenshot": null, "retry": {"count": null, "interval": null}, "tick_every": 60}, "public_id": null, "status": "live", "steps": [{"allowFailure": null, "name": null, "params": null, "timeout": null, "type": "assertCurrentUrl"}], "subtype": "http", "tags": [null], "type": "api"} - When the request is sent - Then the response status is 400 - JSON format is wrong - - @generated @skip - Scenario: Create a test returns "OK - Returns the created test details." response - Given new "CreateTest" request - And body {"config": {"assertions": [], "configVariables": [{"example": null, "name": "VARIABLE_NAME", "pattern": null, "type": "text"}], "request": {"basicAuth": {"password": "", "username": ""}, "body": null, "certificate": {"cert": {"content": null, "filename": null, "updatedAt": null}, "key": {"content": null, "filename": null, "updatedAt": null}}, "dnsServer": null, "headers": null, "host": null, "method": "GET", "noSavingResponseBody": null, "port": null, "query": null, "timeout": null, "url": null}, "variables": [{"example": null, "id": null, "name": "VARIABLE_NAME", "pattern": null, "type": "element"}]}, "locations": [null], "message": null, "monitor_id": null, "name": null, "options": {"accept_self_signed": null, "allow_insecure": null, "device_ids": ["laptop_large"], "disableCors": null, "follow_redirects": null, "min_failure_duration": null, "min_location_failed": null, "monitor_options": {"renotify_interval": null}, "noScreenshot": null, "retry": {"count": null, "interval": null}, "tick_every": 60}, "public_id": null, "status": "live", "steps": [{"allowFailure": null, "name": null, "params": null, "timeout": null, "type": "assertCurrentUrl"}], "subtype": "http", "tags": [null], "type": "api"} - When the request is sent - Then the response status is 200 OK - Returns the created test details. - - @generated @skip - Scenario: Create a test returns "Test quota is reached" response - Given new "CreateTest" request - And body {"config": {"assertions": [], "configVariables": [{"example": null, "name": "VARIABLE_NAME", "pattern": null, "type": "text"}], "request": {"basicAuth": {"password": "", "username": ""}, "body": null, "certificate": {"cert": {"content": null, "filename": null, "updatedAt": null}, "key": {"content": null, "filename": null, "updatedAt": null}}, "dnsServer": null, "headers": null, "host": null, "method": "GET", "noSavingResponseBody": null, "port": null, "query": null, "timeout": null, "url": null}, "variables": [{"example": null, "id": null, "name": "VARIABLE_NAME", "pattern": null, "type": "element"}]}, "locations": [null], "message": null, "monitor_id": null, "name": null, "options": {"accept_self_signed": null, "allow_insecure": null, "device_ids": ["laptop_large"], "disableCors": null, "follow_redirects": null, "min_failure_duration": null, "min_location_failed": null, "monitor_options": {"renotify_interval": null}, "noScreenshot": null, "retry": {"count": null, "interval": null}, "tick_every": 60}, "public_id": null, "status": "live", "steps": [{"allowFailure": null, "name": null, "params": null, "timeout": null, "type": "assertCurrentUrl"}], "subtype": "http", "tags": [null], "type": "api"} - When the request is sent - Then the response status is 402 Test quota is reached - @generated @skip Scenario: Create an API test returns "- JSON format is wrong" response Given new "CreateSyntheticsAPITest" request @@ -225,30 +204,6 @@ Feature: Synthetics When the request is sent Then the response status is 200 OK - @generated @skip - Scenario: Edit a test returns "- JSON format is wrong" response - Given new "UpdateTest" request - And request contains "public_id" parameter from "" - And body {"config": {"assertions": [], "configVariables": [{"example": null, "name": "VARIABLE_NAME", "pattern": null, "type": "text"}], "request": {"basicAuth": {"password": "", "username": ""}, "body": null, "certificate": {"cert": {"content": null, "filename": null, "updatedAt": null}, "key": {"content": null, "filename": null, "updatedAt": null}}, "dnsServer": null, "headers": null, "host": null, "method": "GET", "noSavingResponseBody": null, "port": null, "query": null, "timeout": null, "url": null}, "variables": [{"example": null, "id": null, "name": "VARIABLE_NAME", "pattern": null, "type": "element"}]}, "locations": [null], "message": null, "monitor_id": null, "name": null, "options": {"accept_self_signed": null, "allow_insecure": null, "device_ids": ["laptop_large"], "disableCors": null, "follow_redirects": null, "min_failure_duration": null, "min_location_failed": null, "monitor_options": {"renotify_interval": null}, "noScreenshot": null, "retry": {"count": null, "interval": null}, "tick_every": 60}, "public_id": null, "status": "live", "steps": [{"allowFailure": null, "name": null, "params": null, "timeout": null, "type": "assertCurrentUrl"}], "subtype": "http", "tags": [null], "type": "api"} - When the request is sent - Then the response status is 400 - JSON format is wrong - - @generated @skip - Scenario: Edit a test returns "- Synthetic is not activated for the user" response - Given new "UpdateTest" request - And request contains "public_id" parameter from "" - And body {"config": {"assertions": [], "configVariables": [{"example": null, "name": "VARIABLE_NAME", "pattern": null, "type": "text"}], "request": {"basicAuth": {"password": "", "username": ""}, "body": null, "certificate": {"cert": {"content": null, "filename": null, "updatedAt": null}, "key": {"content": null, "filename": null, "updatedAt": null}}, "dnsServer": null, "headers": null, "host": null, "method": "GET", "noSavingResponseBody": null, "port": null, "query": null, "timeout": null, "url": null}, "variables": [{"example": null, "id": null, "name": "VARIABLE_NAME", "pattern": null, "type": "element"}]}, "locations": [null], "message": null, "monitor_id": null, "name": null, "options": {"accept_self_signed": null, "allow_insecure": null, "device_ids": ["laptop_large"], "disableCors": null, "follow_redirects": null, "min_failure_duration": null, "min_location_failed": null, "monitor_options": {"renotify_interval": null}, "noScreenshot": null, "retry": {"count": null, "interval": null}, "tick_every": 60}, "public_id": null, "status": "live", "steps": [{"allowFailure": null, "name": null, "params": null, "timeout": null, "type": "assertCurrentUrl"}], "subtype": "http", "tags": [null], "type": "api"} - When the request is sent - Then the response status is 404 - Synthetic is not activated for the user - - @generated @skip - Scenario: Edit a test returns "OK" response - Given new "UpdateTest" request - And request contains "public_id" parameter from "" - And body {"config": {"assertions": [], "configVariables": [{"example": null, "name": "VARIABLE_NAME", "pattern": null, "type": "text"}], "request": {"basicAuth": {"password": "", "username": ""}, "body": null, "certificate": {"cert": {"content": null, "filename": null, "updatedAt": null}, "key": {"content": null, "filename": null, "updatedAt": null}}, "dnsServer": null, "headers": null, "host": null, "method": "GET", "noSavingResponseBody": null, "port": null, "query": null, "timeout": null, "url": null}, "variables": [{"example": null, "id": null, "name": "VARIABLE_NAME", "pattern": null, "type": "element"}]}, "locations": [null], "message": null, "monitor_id": null, "name": null, "options": {"accept_self_signed": null, "allow_insecure": null, "device_ids": ["laptop_large"], "disableCors": null, "follow_redirects": null, "min_failure_duration": null, "min_location_failed": null, "monitor_options": {"renotify_interval": null}, "noScreenshot": null, "retry": {"count": null, "interval": null}, "tick_every": 60}, "public_id": null, "status": "live", "steps": [{"allowFailure": null, "name": null, "params": null, "timeout": null, "type": "assertCurrentUrl"}], "subtype": "http", "tags": [null], "type": "api"} - When the request is sent - Then the response status is 200 OK - @generated @skip Scenario: Edit an API test returns "- JSON format is wrong" response Given new "UpdateAPITest" request diff --git a/tests/v1/features/undo.json b/tests/v1/features/undo.json index fd52808d27..3a6eef94c9 100644 --- a/tests/v1/features/undo.json +++ b/tests/v1/features/undo.json @@ -842,14 +842,6 @@ "type": "safe" } }, - "CreateTest": { - "tag": "Synthetics", - "undo": { - "operationId": "TODO", - "parameters": [], - "type": "unsafe" - } - }, "CreateSyntheticsAPITest": { "tag": "Synthetics", "undo": { @@ -920,12 +912,6 @@ "type": "safe" } }, - "UpdateTest": { - "tag": "Synthetics", - "undo": { - "type": "idempotent" - } - }, "GetAPITestLatestResults": { "tag": "Synthetics", "undo": {