-
Notifications
You must be signed in to change notification settings - Fork 128
/
model_execution_request.go
76 lines (75 loc) · 3.47 KB
/
model_execution_request.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
/*
* Testkube API
*
* Testkube provides a Kubernetes-native framework for test definition, execution and results
*
* API version: 1.0.0
* Contact: testkube@kubeshop.io
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package testkube
// test execution request body
type ExecutionRequest struct {
// test execution custom name
Name string `json:"name,omitempty"`
// unique test suite name (CRD Test suite name), if it's run as a part of test suite
TestSuiteName string `json:"testSuiteName,omitempty"`
// test execution number
Number int32 `json:"number,omitempty"`
// test execution labels
ExecutionLabels map[string]string `json:"executionLabels,omitempty"`
// test kubernetes namespace (\"testkube\" when not set)
Namespace string `json:"namespace,omitempty"`
// in case the variables file is too big, it will be uploaded
IsVariablesFileUploaded bool `json:"isVariablesFileUploaded,omitempty"`
// variables file content - need to be in format for particular executor (e.g. postman envs file)
VariablesFile string `json:"variablesFile,omitempty"`
Variables map[string]Variable `json:"variables,omitempty"`
// test secret uuid
TestSecretUUID string `json:"testSecretUUID,omitempty"`
// test suite secret uuid, if it's run as a part of test suite
TestSuiteSecretUUID string `json:"testSuiteSecretUUID,omitempty"`
// container executor image command
Command []string `json:"command,omitempty"`
// additional executor binary arguments
Args []string `json:"args,omitempty"`
// container image, executor will run inside this image
Image string `json:"image,omitempty"`
// container image pull secrets
ImagePullSecrets []LocalObjectReference `json:"imagePullSecrets,omitempty"`
// Environment variables passed to executor.
// Deprecated: use Basic Variables instead
Envs map[string]string `json:"envs,omitempty"`
// Execution variables passed to executor from secrets.
// Deprecated: use Secret Variables instead
SecretEnvs map[string]string `json:"secretEnvs,omitempty"`
// whether to start execution sync or async
Sync bool `json:"sync,omitempty"`
// http proxy for executor containers
HttpProxy string `json:"httpProxy,omitempty"`
// https proxy for executor containers
HttpsProxy string `json:"httpsProxy,omitempty"`
// whether to run test as negative test
NegativeTest bool `json:"negativeTest,omitempty"`
// whether negativeTest was changed by user
IsNegativeTestChangedOnRun bool `json:"isNegativeTestChangedOnRun,omitempty"`
// duration in seconds the test may be active, until its stopped
ActiveDeadlineSeconds int64 `json:"activeDeadlineSeconds,omitempty"`
// list of file paths that need to be copied into the test from uploads
Uploads []string `json:"uploads,omitempty"`
// minio bucket name to get uploads from
BucketName string `json:"bucketName,omitempty"`
ArtifactRequest *ArtifactRequest `json:"artifactRequest,omitempty"`
// job template extensions
JobTemplate string `json:"jobTemplate,omitempty"`
ContentRequest *TestContentRequest `json:"contentRequest,omitempty"`
// script to run before test execution
PreRunScript string `json:"preRunScript,omitempty"`
// scraper template extensions
ScraperTemplate string `json:"scraperTemplate,omitempty"`
// config map references
EnvConfigMaps []EnvReference `json:"envConfigMaps,omitempty"`
// secret references
EnvSecrets []EnvReference `json:"envSecrets,omitempty"`
RunningContext *RunningContext `json:"runningContext,omitempty"`
}