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.6",
"regenerated": "2024-11-05 15:05:46.030608",
"spec_repo_commit": "8d63eae4"
"regenerated": "2024-11-05 20:16:09.973906",
"spec_repo_commit": "1a56bfda"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-11-05 15:05:46.050333",
"spec_repo_commit": "8d63eae4"
"regenerated": "2024-11-05 20:16:09.992732",
"spec_repo_commit": "1a56bfda"
}
}
}
9 changes: 8 additions & 1 deletion .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16227,6 +16227,13 @@ components:
allowFailure:
description: A boolean set to allow this step to fail.
type: boolean
alwaysExecute:
description: A boolean set to always execute this step even if the previous
step failed or was skipped.
type: boolean
exitIfSucceed:
description: A boolean set to exit the test if the step succeeds.
type: boolean
isCritical:
description: A boolean to use in addition to `allowFailure` to determine
if the test should be marked as failed when the step fails.
Expand All @@ -16235,7 +16242,7 @@ components:
description: The name of the step.
type: string
noScreenshot:
description: A boolean set to not take a screenshot for the step.
description: A boolean set to skip taking a screenshot for the step.
type: boolean
params:
description: The parameters of the step.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
/** The steps used in a Synthetic browser test. */
@JsonPropertyOrder({
SyntheticsStep.JSON_PROPERTY_ALLOW_FAILURE,
SyntheticsStep.JSON_PROPERTY_ALWAYS_EXECUTE,
SyntheticsStep.JSON_PROPERTY_EXIT_IF_SUCCEED,
SyntheticsStep.JSON_PROPERTY_IS_CRITICAL,
SyntheticsStep.JSON_PROPERTY_NAME,
SyntheticsStep.JSON_PROPERTY_NO_SCREENSHOT,
Expand All @@ -33,6 +35,12 @@ public class SyntheticsStep {
public static final String JSON_PROPERTY_ALLOW_FAILURE = "allowFailure";
private Boolean allowFailure;

public static final String JSON_PROPERTY_ALWAYS_EXECUTE = "alwaysExecute";
private Boolean alwaysExecute;

public static final String JSON_PROPERTY_EXIT_IF_SUCCEED = "exitIfSucceed";
private Boolean exitIfSucceed;

public static final String JSON_PROPERTY_IS_CRITICAL = "isCritical";
private Boolean isCritical;

Expand Down Expand Up @@ -72,6 +80,48 @@ public void setAllowFailure(Boolean allowFailure) {
this.allowFailure = allowFailure;
}

public SyntheticsStep alwaysExecute(Boolean alwaysExecute) {
this.alwaysExecute = alwaysExecute;
return this;
}

/**
* A boolean set to always execute this step even if the previous step failed or was skipped.
*
* @return alwaysExecute
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_ALWAYS_EXECUTE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getAlwaysExecute() {
return alwaysExecute;
}

public void setAlwaysExecute(Boolean alwaysExecute) {
this.alwaysExecute = alwaysExecute;
}

public SyntheticsStep exitIfSucceed(Boolean exitIfSucceed) {
this.exitIfSucceed = exitIfSucceed;
return this;
}

/**
* A boolean set to exit the test if the step succeeds.
*
* @return exitIfSucceed
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_EXIT_IF_SUCCEED)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getExitIfSucceed() {
return exitIfSucceed;
}

public void setExitIfSucceed(Boolean exitIfSucceed) {
this.exitIfSucceed = exitIfSucceed;
}

public SyntheticsStep isCritical(Boolean isCritical) {
this.isCritical = isCritical;
return this;
Expand Down Expand Up @@ -121,7 +171,7 @@ public SyntheticsStep noScreenshot(Boolean noScreenshot) {
}

/**
* A boolean set to not take a screenshot for the step.
* A boolean set to skip taking a screenshot for the step.
*
* @return noScreenshot
*/
Expand Down Expand Up @@ -260,6 +310,8 @@ public boolean equals(Object o) {
}
SyntheticsStep syntheticsStep = (SyntheticsStep) o;
return Objects.equals(this.allowFailure, syntheticsStep.allowFailure)
&& Objects.equals(this.alwaysExecute, syntheticsStep.alwaysExecute)
&& Objects.equals(this.exitIfSucceed, syntheticsStep.exitIfSucceed)
&& Objects.equals(this.isCritical, syntheticsStep.isCritical)
&& Objects.equals(this.name, syntheticsStep.name)
&& Objects.equals(this.noScreenshot, syntheticsStep.noScreenshot)
Expand All @@ -272,14 +324,25 @@ public boolean equals(Object o) {
@Override
public int hashCode() {
return Objects.hash(
allowFailure, isCritical, name, noScreenshot, params, timeout, type, additionalProperties);
allowFailure,
alwaysExecute,
exitIfSucceed,
isCritical,
name,
noScreenshot,
params,
timeout,
type,
additionalProperties);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class SyntheticsStep {\n");
sb.append(" allowFailure: ").append(toIndentedString(allowFailure)).append("\n");
sb.append(" alwaysExecute: ").append(toIndentedString(alwaysExecute)).append("\n");
sb.append(" exitIfSucceed: ").append(toIndentedString(exitIfSucceed)).append("\n");
sb.append(" isCritical: ").append(toIndentedString(isCritical)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" noScreenshot: ").append(toIndentedString(noScreenshot)).append("\n");
Expand Down
Loading