From 68dc322ebd39d9ed3986db0d812bb64555b3cc45 Mon Sep 17 00:00:00 2001 From: Vladislav Sukhin Date: Wed, 13 Dec 2023 14:50:38 +0300 Subject: [PATCH] fix: previous testnames --- api/testsuite/v3/testsuite_types.go | 2 ++ api/testsuite/v3/zz_generated.deepcopy.go | 5 +++++ .../crd/bases/tests.testkube.io_testsuites.yaml | 15 +++++++++++++++ 3 files changed, 22 insertions(+) diff --git a/api/testsuite/v3/testsuite_types.go b/api/testsuite/v3/testsuite_types.go index ef51f212..70668660 100644 --- a/api/testsuite/v3/testsuite_types.go +++ b/api/testsuite/v3/testsuite_types.go @@ -60,6 +60,8 @@ type DownloadArtifactOptions struct { AllPreviousSteps bool `json:"allPreviousSteps,omitempty"` // previous step numbers starting from 1 PreviousStepNumbers []int32 `json:"previousStepNumbers,omitempty"` + // previous test names + PreviousTestNames []string `json:"previousTestNames,omitempty"` } // TestSuiteBatchStep is set of steps run in parallel diff --git a/api/testsuite/v3/zz_generated.deepcopy.go b/api/testsuite/v3/zz_generated.deepcopy.go index d39c0360..d079906c 100644 --- a/api/testsuite/v3/zz_generated.deepcopy.go +++ b/api/testsuite/v3/zz_generated.deepcopy.go @@ -33,6 +33,11 @@ func (in *DownloadArtifactOptions) DeepCopyInto(out *DownloadArtifactOptions) { *out = make([]int32, len(*in)) copy(*out, *in) } + if in.PreviousTestNames != nil { + in, out := &in.PreviousTestNames, &out.PreviousTestNames + *out = make([]string, len(*in)) + copy(*out, *in) + } } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DownloadArtifactOptions. diff --git a/config/crd/bases/tests.testkube.io_testsuites.yaml b/config/crd/bases/tests.testkube.io_testsuites.yaml index f39bafaa..26a77640 100644 --- a/config/crd/bases/tests.testkube.io_testsuites.yaml +++ b/config/crd/bases/tests.testkube.io_testsuites.yaml @@ -576,6 +576,11 @@ spec: format: int32 type: integer type: array + previousTestNames: + description: previous test names + items: + type: string + type: array type: object execute: items: @@ -614,6 +619,11 @@ spec: format: int32 type: integer type: array + previousTestNames: + description: previous test names + items: + type: string + type: array type: object execute: items: @@ -818,6 +828,11 @@ spec: format: int32 type: integer type: array + previousTestNames: + description: previous test names + items: + type: string + type: array type: object execute: items: