Skip to content

Commit

Permalink
fix: more cypress statuses (kubeshop#4098)
Browse files Browse the repository at this point in the history
* fix: more cypress statuses

* Update contrib/executor/cypress/pkg/runner/cypress.go

Co-authored-by: Lilla Vass <[email protected]>

---------

Co-authored-by: Lilla Vass <[email protected]>
  • Loading branch information
vsukhin and vLia committed Aug 1, 2023
1 parent e7866cd commit bb0138e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions api/v1/testkube.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3960,6 +3960,7 @@ components:
- failed
- aborted
- timeout
- skipped

ExecutionResult:
description: execution result returned from executor
Expand Down
4 changes: 4 additions & 0 deletions contrib/executor/cypress/pkg/runner/cypress.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,10 @@ func MapStatus(in junit.Status) (out string) {
switch string(in) {
case "passed":
return string(testkube.PASSED_ExecutionStatus)
case "pending":
return string(testkube.QUEUED_ExecutionStatus)
case "skipped":
return string(testkube.SKIPPED_ExecutionStatus)
default:
return string(testkube.FAILED_ExecutionStatus)
}
Expand Down
1 change: 1 addition & 0 deletions pkg/api/v1/testkube/model_execution_status.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ const (
FAILED_ExecutionStatus ExecutionStatus = "failed"
ABORTED_ExecutionStatus ExecutionStatus = "aborted"
TIMEOUT_ExecutionStatus ExecutionStatus = "timeout"
SKIPPED_ExecutionStatus ExecutionStatus = "skipped"
)

0 comments on commit bb0138e

Please sign in to comment.