Skip to content

Commit

Permalink
fix: generated testsuite from openapispec
Browse files Browse the repository at this point in the history
  • Loading branch information
exu committed Feb 10, 2022
1 parent 3b4c31c commit 9902bda
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ openapi-generate-model-testkube:
mv tmp/api/testkube/model_test.go tmp/api/testkube/model_test_base.go || true
mv tmp/api/testkube/model_*.go pkg/api/v1/testkube/
rm -rf tmp
find ./pkg/api/v1/testkube -type f -exec sed -i '' -e "s/package swagger/package testkube/g" {} \;
go fmt pkg/api/v1/testkube/*.go


Expand Down
6 changes: 3 additions & 3 deletions api/v1/testkube.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ paths:
content:
application/json:
schema:
$ref: "#/components/schemas/TestExecutionsResult"
$ref: "#/components/schemas/TestSuiteExecutionsResult"
500:
description: "problem with getting script executions from storage"
content:
Expand Down Expand Up @@ -1008,7 +1008,7 @@ components:
$ref: "#/components/schemas/Execution"
description: test step execution

TestExecutionsResult:
TestSuiteExecutionsResult:
description: the result for a page of executions
type: object
required:
Expand Down Expand Up @@ -1449,7 +1449,7 @@ components:
items:
type: string

TestExecutionRequest:
TestSuiteExecutionRequest:
description: test execution request body
type: object
properties:
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ package testkube

type TestSuiteExecutionStatus string

// List of TestStatus
// List of TestSuiteExecutionStatus
const (
QUEUED_TestSuiteExecutionStatus TestSuiteExecutionStatus = "queued"
PENDING_TestSuiteExecutionStatus TestSuiteExecutionStatus = "pending"
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/v1/testkube/model_test_suite_step_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ package testkube

type TestSuiteStepType string

// List of TestStepType
// List of TestSuiteStepType
const (
EXECUTE_SCRIPT_TestSuiteStepType TestSuiteStepType = "executeScript"
DELAY_TestSuiteStepType TestSuiteStepType = "delay"
Expand Down

0 comments on commit 9902bda

Please sign in to comment.