Skip to content

Commit

Permalink
Merge pull request #159 from qase-tms/update-v2-specs
Browse files Browse the repository at this point in the history
  • Loading branch information
abelharisov authored Oct 24, 2024
2 parents 347d802 + 4abbda7 commit d3aa206
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 8 deletions.
44 changes: 36 additions & 8 deletions testops-api/v2/schemas/ResultCreate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,29 @@ properties:
$ref: './ResultExecution.yaml'
fields:
type: object
properties:
author:
type: string
description:
type: string
preconditions:
type: string
postconditions:
type: string
layer:
type: string
severity:
type: string
priority:
type: string
behavior:
type: string
type:
type: string
muted:
type: string
is_flaky:
type: string
additionalProperties:
type: string
attachments:
Expand All @@ -31,19 +54,24 @@ properties:
type: object
additionalProperties:
type: string
author:
type: string
param_groups:
type: array
description: List parameter groups by name only. Add their values in the 'params' field
nullable: true
items:
type: array
description: A list of parameters in group
items:
type: string
description: A name of the parameter
relations:
$ref: './ResultRelations.yaml'
muted:
type: boolean
message:
type: string
nullable: true
created_at:
type: number
format: double
nullable: true
defect:
type: boolean
description: If true and the result is failed, the defect associated with the result will be created
required:
- title
- execution
3 changes: 3 additions & 0 deletions testops-api/v2/schemas/ResultExecution.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,20 @@ type: object
properties:
start_time:
type: number
description: Unix epoch time in seconds (whole part) and milliseconds (fractional part).
format: double
nullable: true
end_time:
type: number
description: Unix epoch time in seconds (whole part) and milliseconds (fractional part).
format: double
nullable: true
status:
type: string
description: Can have the following values passed, failed, blocked, skipped, invalid + custom statuses
duration:
type: integer
description: Duration of the test execution in milliseconds.
format: int64
nullable: true
stacktrace:
Expand Down
3 changes: 3 additions & 0 deletions testops-api/v2/schemas/ResultStepExecution.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,19 @@ type: object
properties:
start_time:
type: number
description: Unix epoch time in seconds (whole part) and milliseconds (fractional part).
format: double
nullable: true
end_time:
type: number
description: Unix epoch time in seconds (whole part) and milliseconds (fractional part).
format: double
nullable: true
status:
$ref: './ResultStepStatus.yaml'
duration:
type: integer
description: Duration of the test step execution in milliseconds.
format: int64
nullable: true
comment:
Expand Down

0 comments on commit d3aa206

Please sign in to comment.