github.com/kubeshop/testkube@v1.17.23/pkg/api/v1/testkube/model_execution_request.go (about) 1 /* 2 * Testkube API 3 * 4 * Testkube provides a Kubernetes-native framework for test definition, execution and results 5 * 6 * API version: 1.0.0 7 * Contact: testkube@kubeshop.io 8 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 9 */ 10 package testkube 11 12 // test execution request body 13 type ExecutionRequest struct { 14 // execution id 15 Id string `json:"id,omitempty"` 16 // test execution custom name 17 Name string `json:"name,omitempty"` 18 // unique test suite name (CRD Test suite name), if it's run as a part of test suite 19 TestSuiteName string `json:"testSuiteName,omitempty"` 20 // test execution number 21 Number int32 `json:"number,omitempty"` 22 // test execution labels 23 ExecutionLabels map[string]string `json:"executionLabels,omitempty"` 24 // test kubernetes namespace (\"testkube\" when not set) 25 Namespace string `json:"namespace,omitempty"` 26 // in case the variables file is too big, it will be uploaded 27 IsVariablesFileUploaded bool `json:"isVariablesFileUploaded,omitempty"` 28 // variables file content - need to be in format for particular executor (e.g. postman envs file) 29 VariablesFile string `json:"variablesFile,omitempty"` 30 Variables map[string]Variable `json:"variables,omitempty"` 31 // test secret uuid 32 TestSecretUUID string `json:"testSecretUUID,omitempty"` 33 // test suite secret uuid, if it's run as a part of test suite 34 TestSuiteSecretUUID string `json:"testSuiteSecretUUID,omitempty"` 35 // executor image command 36 Command []string `json:"command,omitempty"` 37 // additional executor binary arguments 38 Args []string `json:"args,omitempty"` 39 // usage mode for arguments 40 ArgsMode string `json:"args_mode,omitempty"` 41 // container image, executor will run inside this image 42 Image string `json:"image,omitempty"` 43 // container image pull secrets 44 ImagePullSecrets []LocalObjectReference `json:"imagePullSecrets,omitempty"` 45 // Environment variables passed to executor. 46 // Deprecated: use Basic Variables instead 47 Envs map[string]string `json:"envs,omitempty"` 48 // Execution variables passed to executor from secrets. 49 // Deprecated: use Secret Variables instead 50 SecretEnvs map[string]string `json:"secretEnvs,omitempty"` 51 // whether to start execution sync or async 52 Sync bool `json:"sync,omitempty"` 53 // http proxy for executor containers 54 HttpProxy string `json:"httpProxy,omitempty"` 55 // https proxy for executor containers 56 HttpsProxy string `json:"httpsProxy,omitempty"` 57 // whether to run test as negative test 58 NegativeTest bool `json:"negativeTest,omitempty"` 59 // whether negativeTest was changed by user 60 IsNegativeTestChangedOnRun bool `json:"isNegativeTestChangedOnRun,omitempty"` 61 // duration in seconds the test may be active, until its stopped 62 ActiveDeadlineSeconds int64 `json:"activeDeadlineSeconds,omitempty"` 63 // list of file paths that need to be copied into the test from uploads 64 Uploads []string `json:"uploads,omitempty"` 65 // minio bucket name to get uploads from 66 BucketName string `json:"bucketName,omitempty"` 67 ArtifactRequest *ArtifactRequest `json:"artifactRequest,omitempty"` 68 // job template extensions 69 JobTemplate string `json:"jobTemplate,omitempty"` 70 // name of the template resource 71 JobTemplateReference string `json:"jobTemplateReference,omitempty"` 72 // cron job template extensions 73 CronJobTemplate string `json:"cronJobTemplate,omitempty"` 74 // name of the template resource 75 CronJobTemplateReference string `json:"cronJobTemplateReference,omitempty"` 76 ContentRequest *TestContentRequest `json:"contentRequest,omitempty"` 77 // script to run before test execution 78 PreRunScript string `json:"preRunScript,omitempty"` 79 // script to run after test execution 80 PostRunScript string `json:"postRunScript,omitempty"` 81 // execute post run script before scraping (prebuilt executor only) 82 ExecutePostRunScriptBeforeScraping bool `json:"executePostRunScriptBeforeScraping,omitempty"` 83 // run scripts using source command (container executor only) 84 SourceScripts bool `json:"sourceScripts,omitempty"` 85 // scraper template extensions 86 ScraperTemplate string `json:"scraperTemplate,omitempty"` 87 // name of the template resource 88 ScraperTemplateReference string `json:"scraperTemplateReference,omitempty"` 89 // pvc template extensions 90 PvcTemplate string `json:"pvcTemplate,omitempty"` 91 // name of the template resource 92 PvcTemplateReference string `json:"pvcTemplateReference,omitempty"` 93 // config map references 94 EnvConfigMaps []EnvReference `json:"envConfigMaps,omitempty"` 95 // secret references 96 EnvSecrets []EnvReference `json:"envSecrets,omitempty"` 97 RunningContext *RunningContext `json:"runningContext,omitempty"` 98 // test execution name started the test execution 99 TestExecutionName string `json:"testExecutionName,omitempty"` 100 // execution ids for artifacts to download 101 DownloadArtifactExecutionIDs []string `json:"downloadArtifactExecutionIDs,omitempty"` 102 // test names for artifacts to download from latest executions 103 DownloadArtifactTestNames []string `json:"downloadArtifactTestNames,omitempty"` 104 SlavePodRequest *PodRequest `json:"slavePodRequest,omitempty"` 105 // namespace for test execution (Pro edition only) 106 ExecutionNamespace string `json:"executionNamespace,omitempty"` 107 }