fix(actions): state not considered in test payload (#26)
Reviewed-on: #26 Co-authored-by: Varakh <varakh@varakh.de> Co-committed-by: Varakh <varakh@varakh.de>
This commit is contained in:
parent
faffad851c
commit
79c5da119a
4 changed files with 6 additions and 2 deletions
|
@ -2750,6 +2750,7 @@ components:
|
||||||
- provider
|
- provider
|
||||||
- host
|
- host
|
||||||
- version
|
- version
|
||||||
|
- state
|
||||||
properties:
|
properties:
|
||||||
application:
|
application:
|
||||||
type: string
|
type: string
|
||||||
|
@ -2759,6 +2760,8 @@ components:
|
||||||
type: string
|
type: string
|
||||||
version:
|
version:
|
||||||
type: string
|
type: string
|
||||||
|
state:
|
||||||
|
type: string
|
||||||
CreateSecretRequest:
|
CreateSecretRequest:
|
||||||
type: object
|
type: object
|
||||||
required:
|
required:
|
||||||
|
|
|
@ -1506,7 +1506,7 @@
|
||||||
],
|
],
|
||||||
"body": {
|
"body": {
|
||||||
"mode": "raw",
|
"mode": "raw",
|
||||||
"raw": "{\n \"application\": \"Test App\",\n \"host\": \"Test Host\",\n \"provider\": \"Test Provider\",\n \"version\": \"Test Version\"\n}",
|
"raw": "{\n \"application\": \"Test App\",\n \"host\": \"Test Host\",\n \"provider\": \"Test Provider\",\n \"version\": \"Test Version\",\n \"state\": \"Test State\"\n}",
|
||||||
"options": {
|
"options": {
|
||||||
"raw": {
|
"raw": {
|
||||||
"language": "json"
|
"language": "json"
|
||||||
|
|
|
@ -79,6 +79,7 @@ type TestActionRequest struct {
|
||||||
Provider string `json:"provider" binding:"required,min=1"`
|
Provider string `json:"provider" binding:"required,min=1"`
|
||||||
Host string `json:"host" binding:"required,min=1"`
|
Host string `json:"host" binding:"required,min=1"`
|
||||||
Version string `json:"version" binding:"required,min=1"`
|
Version string `json:"version" binding:"required,min=1"`
|
||||||
|
State string `json:"state" binding:"required,min=1"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type PaginateUpdateRequest struct {
|
type PaginateUpdateRequest struct {
|
||||||
|
|
|
@ -30,7 +30,7 @@ func (h *actionInvocationHandler) test(c *gin.Context) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
err = h.actionInvocationService.execute(e, &eventPayloadInformationDto{Application: req.Application, Host: req.Host, Provider: req.Provider, Version: req.Version})
|
err = h.actionInvocationService.execute(e, &eventPayloadInformationDto{Application: req.Application, Host: req.Host, Provider: req.Provider, Version: req.Version, State: req.State})
|
||||||
|
|
||||||
isSuccess := err == nil
|
isSuccess := err == nil
|
||||||
var message string
|
var message string
|
||||||
|
|
Loading…
Reference in a new issue