github.com/kubeshop/testkube@v1.17.23/pkg/api/v1/testkube/model_test_workflow_step.go (about) 1 /* 2 * Testkube API 3 * 4 * Testkube provides a Kubernetes-native framework for test definition, execution and results 5 * 6 * API version: 1.0.0 7 * Contact: testkube@kubeshop.io 8 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 9 */ 10 package testkube 11 12 type TestWorkflowStep struct { 13 // readable name for the step 14 Name string `json:"name,omitempty"` 15 // expression to declare under which conditions the step should be run; defaults to \"passed\", except artifacts where it defaults to \"always\" 16 Condition string `json:"condition,omitempty"` 17 // is the step expected to fail 18 Negative bool `json:"negative,omitempty"` 19 // is the step optional, so the failure won't affect the TestWorkflow result 20 Optional bool `json:"optional,omitempty"` 21 // list of TestWorkflowTemplates to use 22 Use []TestWorkflowTemplateRef `json:"use,omitempty"` 23 Template *TestWorkflowTemplateRef `json:"template,omitempty"` 24 Retry *TestWorkflowRetryPolicy `json:"retry,omitempty"` 25 // maximum time this step may take 26 Timeout string `json:"timeout,omitempty"` 27 // delay before the step 28 Delay string `json:"delay,omitempty"` 29 Content *TestWorkflowContent `json:"content,omitempty"` 30 // script to run in a default shell for the container 31 Shell string `json:"shell,omitempty"` 32 Run *TestWorkflowStepRun `json:"run,omitempty"` 33 WorkingDir *BoxedString `json:"workingDir,omitempty"` 34 Container *TestWorkflowContainerConfig `json:"container,omitempty"` 35 Execute *TestWorkflowStepExecute `json:"execute,omitempty"` 36 Artifacts *TestWorkflowStepArtifacts `json:"artifacts,omitempty"` 37 // nested setup steps to run 38 Setup []TestWorkflowStep `json:"setup,omitempty"` 39 // nested steps to run 40 Steps []TestWorkflowStep `json:"steps,omitempty"` 41 }