Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.4",
"regenerated": "2023-05-26 16:53:13.309161",
"spec_repo_commit": "fa84acd1"
"regenerated": "2023-05-26 17:55:31.638628",
"spec_repo_commit": "c4844513"
},
"v2": {
"apigentools_version": "1.6.4",
"regenerated": "2023-05-26 16:53:13.324691",
"spec_repo_commit": "fa84acd1"
"regenerated": "2023-05-26 17:55:31.651767",
"spec_repo_commit": "c4844513"
}
}
}
3 changes: 3 additions & 0 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13746,6 +13746,9 @@ components:
type: string
parser:
$ref: '#/components/schemas/SyntheticsVariableParser'
secure:
description: Determines whether or not the extracted value will be obfuscated.
type: boolean
type:
$ref: '#/components/schemas/SyntheticsGlobalVariableParseTestOptionsType'
type: object
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ public static void main(String[] args) {
.type(SyntheticsGlobalVariableParserType.RAW))
.type(
SyntheticsGlobalVariableParseTestOptionsType
.HTTP_HEADER)))
.HTTP_HEADER)
.secure(true)))
.isCritical(true)
.name("request is sent")
.request(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
SyntheticsParsingOptions.JSON_PROPERTY_FIELD,
SyntheticsParsingOptions.JSON_PROPERTY_NAME,
SyntheticsParsingOptions.JSON_PROPERTY_PARSER,
SyntheticsParsingOptions.JSON_PROPERTY_SECURE,
SyntheticsParsingOptions.JSON_PROPERTY_TYPE
})
@jakarta.annotation.Generated(
Expand All @@ -32,6 +33,9 @@ public class SyntheticsParsingOptions {
public static final String JSON_PROPERTY_PARSER = "parser";
private SyntheticsVariableParser parser;

public static final String JSON_PROPERTY_SECURE = "secure";
private Boolean secure;

public static final String JSON_PROPERTY_TYPE = "type";
private SyntheticsGlobalVariableParseTestOptionsType type;

Expand Down Expand Up @@ -99,6 +103,27 @@ public void setParser(SyntheticsVariableParser parser) {
this.parser = parser;
}

public SyntheticsParsingOptions secure(Boolean secure) {
this.secure = secure;
return this;
}

/**
* Determines whether or not the extracted value will be obfuscated.
*
* @return secure
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_SECURE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getSecure() {
return secure;
}

public void setSecure(Boolean secure) {
this.secure = secure;
}

public SyntheticsParsingOptions type(SyntheticsGlobalVariableParseTestOptionsType type) {
this.type = type;
this.unparsed |= !type.isValid();
Expand Down Expand Up @@ -137,12 +162,13 @@ public boolean equals(Object o) {
return Objects.equals(this.field, syntheticsParsingOptions.field)
&& Objects.equals(this.name, syntheticsParsingOptions.name)
&& Objects.equals(this.parser, syntheticsParsingOptions.parser)
&& Objects.equals(this.secure, syntheticsParsingOptions.secure)
&& Objects.equals(this.type, syntheticsParsingOptions.type);
}

@Override
public int hashCode() {
return Objects.hash(field, name, parser, type);
return Objects.hash(field, name, parser, secure, type);
}

@Override
Expand All @@ -152,6 +178,7 @@ public String toString() {
sb.append(" field: ").append(toIndentedString(field)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" parser: ").append(toIndentedString(parser)).append("\n");
sb.append(" secure: ").append(toIndentedString(secure)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append("}");
return sb.toString();
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2023-01-05T15:20:23.898Z
2023-05-23T13:41:47.597Z
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"httpRequest": {
"body": {
"type": "JSON",
"json": "{\"config\":{\"configVariables\":[{\"example\":\"content-type\",\"name\":\"PROPERTY\",\"pattern\":\"content-type\",\"type\":\"text\"}],\"steps\":[{\"allowFailure\":true,\"assertions\":[{\"operator\":\"is\",\"target\":200,\"type\":\"statusCode\"}],\"extractedValues\":[{\"field\":\"server\",\"name\":\"EXTRACTED_VALUE\",\"parser\":{\"type\":\"raw\"},\"type\":\"http_header\"}],\"isCritical\":true,\"name\":\"request is sent\",\"request\":{\"method\":\"GET\",\"timeout\":10,\"url\":\"https://datadoghq.com\"},\"retry\":{\"count\":5,\"interval\":1000},\"subtype\":\"http\"}]},\"locations\":[\"aws:us-east-2\"],\"message\":\"BDD test payload: synthetics_api_test_multi_step_payload.json\",\"name\":\"Test-Create_a_global_variable_from_test_returns_OK_response-1672932023\",\"options\":{\"accept_self_signed\":false,\"allow_insecure\":true,\"follow_redirects\":true,\"min_failure_duration\":10,\"min_location_failed\":1,\"monitor_name\":\"Test-Create_a_global_variable_from_test_returns_OK_response-1672932023\",\"monitor_priority\":5,\"retry\":{\"count\":3,\"interval\":1000},\"tick_every\":60},\"subtype\":\"multi\",\"tags\":[\"testing:api\"],\"type\":\"api\"}"
"json": "{\"config\":{\"configVariables\":[{\"example\":\"content-type\",\"name\":\"PROPERTY\",\"pattern\":\"content-type\",\"type\":\"text\"}],\"steps\":[{\"allowFailure\":true,\"assertions\":[{\"operator\":\"is\",\"target\":200,\"type\":\"statusCode\"}],\"extractedValues\":[{\"field\":\"server\",\"name\":\"EXTRACTED_VALUE\",\"parser\":{\"type\":\"raw\"},\"secure\":true,\"type\":\"http_header\"}],\"isCritical\":true,\"name\":\"request is sent\",\"request\":{\"method\":\"GET\",\"timeout\":10,\"url\":\"https://datadoghq.com\"},\"retry\":{\"count\":5,\"interval\":1000},\"subtype\":\"http\"}]},\"locations\":[\"aws:us-east-2\"],\"message\":\"BDD test payload: synthetics_api_test_multi_step_payload.json\",\"name\":\"Test-Create_a_global_variable_from_test_returns_OK_response-1684849307\",\"options\":{\"accept_self_signed\":false,\"allow_insecure\":true,\"follow_redirects\":true,\"min_failure_duration\":10,\"min_location_failed\":1,\"monitor_name\":\"Test-Create_a_global_variable_from_test_returns_OK_response-1684849307\",\"monitor_priority\":5,\"retry\":{\"count\":3,\"interval\":1000},\"tick_every\":60},\"subtype\":\"multi\",\"tags\":[\"testing:api\"],\"type\":\"api\"}"
},
"headers": {},
"method": "POST",
Expand All @@ -12,7 +12,7 @@
"secure": true
},
"httpResponse": {
"body": "{\"status\":\"live\",\"public_id\":\"prg-fny-su9\",\"tags\":[\"testing:api\"],\"org_id\":321813,\"locations\":[\"aws:us-east-2\"],\"message\":\"BDD test payload: synthetics_api_test_multi_step_payload.json\",\"deleted_at\":null,\"name\":\"Test-Create_a_global_variable_from_test_returns_OK_response-1672932023\",\"monitor_id\":106967129,\"type\":\"api\",\"created_at\":\"2023-01-05T15:20:24.483020+00:00\",\"modified_at\":\"2023-01-05T15:20:24.483020+00:00\",\"subtype\":\"multi\",\"config\":{\"steps\":[{\"retry\":{\"count\":5,\"interval\":1000},\"name\":\"request is sent\",\"request\":{\"url\":\"https://datadoghq.com\",\"method\":\"GET\",\"timeout\":10},\"subtype\":\"http\",\"allowFailure\":true,\"assertions\":[{\"operator\":\"is\",\"type\":\"statusCode\",\"target\":200}],\"isCritical\":true,\"id\":\"dg9-uxx-k65\",\"extractedValues\":[{\"field\":\"server\",\"parser\":{\"type\":\"raw\"},\"type\":\"http_header\",\"name\":\"EXTRACTED_VALUE\"}]}],\"configVariables\":[{\"pattern\":\"content-type\",\"type\":\"text\",\"example\":\"content-type\",\"name\":\"PROPERTY\"}]},\"options\":{\"accept_self_signed\":false,\"retry\":{\"count\":3,\"interval\":1000},\"min_location_failed\":1,\"allow_insecure\":true,\"follow_redirects\":true,\"min_failure_duration\":10,\"monitor_priority\":5,\"monitor_name\":\"Test-Create_a_global_variable_from_test_returns_OK_response-1672932023\",\"tick_every\":60}}",
"body": "{\"public_id\":\"wk3-pn7-sn3\",\"name\":\"Test-Create_a_global_variable_from_test_returns_OK_response-1684849307\",\"status\":\"live\",\"type\":\"api\",\"tags\":[\"testing:api\"],\"created_at\":\"2023-05-23T13:41:47.888352+00:00\",\"modified_at\":\"2023-05-23T13:41:47.888352+00:00\",\"config\":{\"configVariables\":[{\"example\":\"content-type\",\"name\":\"PROPERTY\",\"pattern\":\"content-type\",\"type\":\"text\"}],\"steps\":[{\"allowFailure\":true,\"assertions\":[{\"operator\":\"is\",\"target\":200,\"type\":\"statusCode\"}],\"extractedValues\":[{\"field\":\"server\",\"name\":\"EXTRACTED_VALUE\",\"parser\":{\"type\":\"raw\"},\"secure\":true,\"type\":\"http_header\"}],\"isCritical\":true,\"name\":\"request is sent\",\"request\":{\"method\":\"GET\",\"timeout\":10,\"url\":\"https://datadoghq.com\"},\"retry\":{\"count\":5,\"interval\":1000},\"subtype\":\"http\",\"id\":\"ymn-tzt-isn\"}]},\"message\":\"BDD test payload: synthetics_api_test_multi_step_payload.json\",\"options\":{\"accept_self_signed\":false,\"allow_insecure\":true,\"follow_redirects\":true,\"min_failure_duration\":10,\"min_location_failed\":1,\"monitor_name\":\"Test-Create_a_global_variable_from_test_returns_OK_response-1684849307\",\"monitor_priority\":5,\"retry\":{\"count\":3,\"interval\":1000},\"tick_every\":60},\"locations\":[\"aws:us-east-2\"],\"subtype\":\"multi\",\"deleted_at\":null,\"monitor_id\":119820627,\"org_id\":321813}",
"headers": {
"Content-Type": [
"application/json"
Expand All @@ -27,13 +27,13 @@
"timeToLive": {
"unlimited": true
},
"id": "b6972103-20a5-5a3f-00a7-bf7dca2eca0f"
"id": "cbd17627-b87f-5547-0cf1-27936d0758f1"
},
{
"httpRequest": {
"body": {
"type": "JSON",
"json": "{\"description\":\"\",\"name\":\"GLOBAL_VARIABLE_PAYLOAD_TESTCREATEAGLOBALVARIABLEFROMTESTRETURNSOKRESPONSE1672932023\",\"parse_test_options\":{\"localVariableName\":\"EXTRACTED_VALUE\",\"type\":\"local_variable\"},\"parse_test_public_id\":\"prg-fny-su9\",\"tags\":[],\"value\":{\"options\":{\"totp_parameters\":{\"digits\":6,\"refresh_interval\":30}},\"secure\":false,\"value\":\"\"}}"
"json": "{\"description\":\"\",\"name\":\"GLOBAL_VARIABLE_PAYLOAD_TESTCREATEAGLOBALVARIABLEFROMTESTRETURNSOKRESPONSE1684849307\",\"parse_test_options\":{\"localVariableName\":\"EXTRACTED_VALUE\",\"type\":\"local_variable\"},\"parse_test_public_id\":\"wk3-pn7-sn3\",\"tags\":[],\"value\":{\"options\":{\"totp_parameters\":{\"digits\":6,\"refresh_interval\":30}},\"secure\":false,\"value\":\"\"}}"
},
"headers": {},
"method": "POST",
Expand All @@ -42,7 +42,7 @@
"secure": true
},
"httpResponse": {
"body": "{\"parse_test_options\":{\"type\":\"local_variable\",\"localVariableName\":\"EXTRACTED_VALUE\"},\"parse_test_extracted_at\":null,\"description\":\"\",\"tags\":[],\"last_error\":null,\"is_totp\":null,\"value\":{\"options\":{\"totp_parameters\":{\"digits\":6,\"refresh_interval\":30}},\"value\":\"\",\"secure\":false},\"parse_test_public_id\":\"prg-fny-su9\",\"parse_test_name\":null,\"type\":\"variable\",\"id\":\"2dcbf35a-34a9-4254-8ddb-417593377a20\",\"name\":\"GLOBAL_VARIABLE_PAYLOAD_TESTCREATEAGLOBALVARIABLEFROMTESTRETURNSOKRESPONSE1672932023\"}\n",
"body": "{\"id\":\"c1b94a97-87df-440f-b5fc-ef7f391bf07a\",\"name\":\"GLOBAL_VARIABLE_PAYLOAD_TESTCREATEAGLOBALVARIABLEFROMTESTRETURNSOKRESPONSE1684849307\",\"description\":\"\",\"type\":\"variable\",\"tags\":[],\"parse_test_public_id\":\"wk3-pn7-sn3\",\"parse_test_name\":null,\"parse_test_options\":{\"localVariableName\":\"EXTRACTED_VALUE\",\"type\":\"local_variable\"},\"parse_test_extracted_at\":null,\"is_totp\":null,\"is_fido\":null,\"last_error\":null,\"value\":{\"options\":{\"totp_parameters\":{\"digits\":6,\"refresh_interval\":30}},\"secure\":false,\"value\":\"\"}}\n",
"headers": {
"Content-Type": [
"application/json"
Expand All @@ -57,13 +57,13 @@
"timeToLive": {
"unlimited": true
},
"id": "5bd852f0-eb4a-8466-6852-2c57818d6cae"
"id": "29977d1c-e74c-e920-e2e1-ad849607b5da"
},
{
"httpRequest": {
"headers": {},
"method": "DELETE",
"path": "/api/v1/synthetics/variables/2dcbf35a-34a9-4254-8ddb-417593377a20",
"path": "/api/v1/synthetics/variables/c1b94a97-87df-440f-b5fc-ef7f391bf07a",
"keepAlive": false,
"secure": true
},
Expand All @@ -82,13 +82,13 @@
"timeToLive": {
"unlimited": true
},
"id": "77bac210-3f49-b190-c6aa-ba294a726900"
"id": "5416ecd3-49a2-e141-2654-86b9d15b18d8"
},
{
"httpRequest": {
"body": {
"type": "JSON",
"json": "{\"public_ids\":[\"prg-fny-su9\"]}"
"json": "{\"public_ids\":[\"wk3-pn7-sn3\"]}"
},
"headers": {},
"method": "POST",
Expand All @@ -97,7 +97,7 @@
"secure": true
},
"httpResponse": {
"body": "{\"deleted_tests\":[{\"deleted_at\":\"2023-01-05T15:20:26.202732+00:00\",\"public_id\":\"prg-fny-su9\"}]}\n",
"body": "{\"deleted_tests\":[{\"public_id\":\"wk3-pn7-sn3\",\"deleted_at\":\"2023-05-23T13:41:48.789772+00:00\"}]}\n",
"headers": {
"Content-Type": [
"application/json"
Expand All @@ -112,6 +112,6 @@
"timeToLive": {
"unlimited": true
},
"id": "4e0eb2ab-081e-47b6-cc33-11509730e00f"
"id": "ba553cdf-9a87-0f96-50e1-f2a290951c95"
}
]
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2022-08-30T12:59:30.516Z
2023-05-22T14:08:52.406Z
Loading