|
25 | 25 | SyntheticsTestOptions.JSON_PROPERTY_CHECK_CERTIFICATE_REVOCATION, |
26 | 26 | SyntheticsTestOptions.JSON_PROPERTY_CI, |
27 | 27 | SyntheticsTestOptions.JSON_PROPERTY_DEVICE_IDS, |
| 28 | + SyntheticsTestOptions.JSON_PROPERTY_DISABLE_AIA_INTERMEDIATE_FETCHING, |
28 | 29 | SyntheticsTestOptions.JSON_PROPERTY_DISABLE_CORS, |
29 | 30 | SyntheticsTestOptions.JSON_PROPERTY_DISABLE_CSP, |
30 | 31 | SyntheticsTestOptions.JSON_PROPERTY_ENABLE_PROFILING, |
@@ -65,6 +66,10 @@ public class SyntheticsTestOptions { |
65 | 66 | public static final String JSON_PROPERTY_DEVICE_IDS = "device_ids"; |
66 | 67 | private List<String> deviceIds = null; |
67 | 68 |
|
| 69 | + public static final String JSON_PROPERTY_DISABLE_AIA_INTERMEDIATE_FETCHING = |
| 70 | + "disableAiaIntermediateFetching"; |
| 71 | + private Boolean disableAiaIntermediateFetching; |
| 72 | + |
68 | 73 | public static final String JSON_PROPERTY_DISABLE_CORS = "disableCors"; |
69 | 74 | private Boolean disableCors; |
70 | 75 |
|
@@ -129,7 +134,7 @@ public SyntheticsTestOptions acceptSelfSigned(Boolean acceptSelfSigned) { |
129 | 134 | } |
130 | 135 |
|
131 | 136 | /** |
132 | | - * For SSL test, whether or not the test should allow self signed certificates. |
| 137 | + * For SSL tests, whether or not the test should allow self signed certificates. |
133 | 138 | * |
134 | 139 | * @return acceptSelfSigned |
135 | 140 | */ |
@@ -171,7 +176,7 @@ public SyntheticsTestOptions checkCertificateRevocation(Boolean checkCertificate |
171 | 176 | } |
172 | 177 |
|
173 | 178 | /** |
174 | | - * For SSL test, whether or not the test should fail on revoked certificate in stapled OCSP. |
| 179 | + * For SSL tests, whether or not the test should fail on revoked certificate in stapled OCSP. |
175 | 180 | * |
176 | 181 | * @return checkCertificateRevocation |
177 | 182 | */ |
@@ -237,6 +242,29 @@ public void setDeviceIds(List<String> deviceIds) { |
237 | 242 | this.deviceIds = deviceIds; |
238 | 243 | } |
239 | 244 |
|
| 245 | + public SyntheticsTestOptions disableAiaIntermediateFetching( |
| 246 | + Boolean disableAiaIntermediateFetching) { |
| 247 | + this.disableAiaIntermediateFetching = disableAiaIntermediateFetching; |
| 248 | + return this; |
| 249 | + } |
| 250 | + |
| 251 | + /** |
| 252 | + * For SSL tests, whether or not the test should disable fetching intermediate certificates from |
| 253 | + * AIA. |
| 254 | + * |
| 255 | + * @return disableAiaIntermediateFetching |
| 256 | + */ |
| 257 | + @jakarta.annotation.Nullable |
| 258 | + @JsonProperty(JSON_PROPERTY_DISABLE_AIA_INTERMEDIATE_FETCHING) |
| 259 | + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) |
| 260 | + public Boolean getDisableAiaIntermediateFetching() { |
| 261 | + return disableAiaIntermediateFetching; |
| 262 | + } |
| 263 | + |
| 264 | + public void setDisableAiaIntermediateFetching(Boolean disableAiaIntermediateFetching) { |
| 265 | + this.disableAiaIntermediateFetching = disableAiaIntermediateFetching; |
| 266 | + } |
| 267 | + |
240 | 268 | public SyntheticsTestOptions disableCors(Boolean disableCors) { |
241 | 269 | this.disableCors = disableCors; |
242 | 270 | return this; |
@@ -730,6 +758,9 @@ public boolean equals(Object o) { |
730 | 758 | this.checkCertificateRevocation, syntheticsTestOptions.checkCertificateRevocation) |
731 | 759 | && Objects.equals(this.ci, syntheticsTestOptions.ci) |
732 | 760 | && Objects.equals(this.deviceIds, syntheticsTestOptions.deviceIds) |
| 761 | + && Objects.equals( |
| 762 | + this.disableAiaIntermediateFetching, |
| 763 | + syntheticsTestOptions.disableAiaIntermediateFetching) |
733 | 764 | && Objects.equals(this.disableCors, syntheticsTestOptions.disableCors) |
734 | 765 | && Objects.equals(this.disableCsp, syntheticsTestOptions.disableCsp) |
735 | 766 | && Objects.equals(this.enableProfiling, syntheticsTestOptions.enableProfiling) |
@@ -762,6 +793,7 @@ public int hashCode() { |
762 | 793 | checkCertificateRevocation, |
763 | 794 | ci, |
764 | 795 | deviceIds, |
| 796 | + disableAiaIntermediateFetching, |
765 | 797 | disableCors, |
766 | 798 | disableCsp, |
767 | 799 | enableProfiling, |
@@ -795,6 +827,9 @@ public String toString() { |
795 | 827 | .append("\n"); |
796 | 828 | sb.append(" ci: ").append(toIndentedString(ci)).append("\n"); |
797 | 829 | sb.append(" deviceIds: ").append(toIndentedString(deviceIds)).append("\n"); |
| 830 | + sb.append(" disableAiaIntermediateFetching: ") |
| 831 | + .append(toIndentedString(disableAiaIntermediateFetching)) |
| 832 | + .append("\n"); |
798 | 833 | sb.append(" disableCors: ").append(toIndentedString(disableCors)).append("\n"); |
799 | 834 | sb.append(" disableCsp: ").append(toIndentedString(disableCsp)).append("\n"); |
800 | 835 | sb.append(" enableProfiling: ").append(toIndentedString(enableProfiling)).append("\n"); |
|
0 commit comments