Skip to content

Commit

Permalink
fix: duplicated patch in testkube-yaml (#2575)
Browse files Browse the repository at this point in the history
  • Loading branch information
vLia committed Oct 20, 2022
1 parent 240b68f commit a90fc1c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 46 deletions.
45 changes: 0 additions & 45 deletions api/v1/testkube.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -174,51 +174,6 @@ paths:
items:
$ref: "#/components/schemas/Problem"

patch:
tags:
- test-triggers
- api
summary: "Bulk update test triggers"
description: "Updates test triggers provided as an array in the request body"
operationId: bulkUpdateTestTriggers
requestBody:
description: array of test trigger upsert requests
required: true
content:
application/json:
schema:
type: array
items:
$ref: "#/components/schemas/TestTriggerUpsertRequest"
responses:
200:
description: "successful operation"
content:
application/json:
schema:
type: array
items:
$ref: "#/components/schemas/TestTrigger"
text/yaml:
schema:
type: string
400:
description: "problem with test trigger definition - probably some bad input occurs (invalid JSON body or similar)"
content:
application/problem+json:
schema:
type: object
items:
$ref: "#/components/schemas/Problem"
502:
description: problem communicating with kubernetes cluster
content:
application/problem+json:
schema:
type: object
items:
$ref: "#/components/schemas/Problem"

delete:
tags:
- test-triggers
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/v1/testkube/model_test_trigger_upsert_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ package testkube
// test trigger create or update request body
type TestTriggerUpsertRequest struct {
// object kubernetes namespace
Namespace string `json:"namespace"`
Namespace string `json:"namespace,omitempty"`
// object name
Name string `json:"name"`
// test trigger labels
Expand Down

0 comments on commit a90fc1c

Please sign in to comment.