File tree 1 file changed +5
-4
lines changed
integration/utilities/kube
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 4
4
package kube
5
5
6
6
import (
7
- "fmt"
8
-
9
7
harness "github.com/dlespiau/kube-test-harness"
10
8
"github.com/dlespiau/kube-test-harness/logger"
9
+ "github.com/google/uuid"
11
10
"github.com/onsi/ginkgo/v2"
12
11
)
13
12
14
13
type tHelper struct { ginkgo.FullGinkgoTInterface }
15
14
16
15
func (t * tHelper ) Helper () {}
17
- func (t * tHelper ) Name () string { return "eksctl-test " }
16
+ func (t * tHelper ) Name () string { return "eksctl" }
18
17
19
18
// NewTest creates a new test harness to more easily run integration tests against the provided Kubernetes cluster.
20
19
func NewTest (kubeconfigPath string ) (* harness.Test , error ) {
@@ -28,7 +27,9 @@ func NewTest(kubeconfigPath string) (*harness.Test, error) {
28
27
return nil , err
29
28
}
30
29
test := h .NewTest (t )
31
- test .Namespace += fmt .Sprintf ("-%d" , t .ParallelProcess ())
30
+ // several parallel test specs may initialize a new harness and close it after completion,
31
+ // thus, we aim to minimize the chance of conflicting actions against same K8s namespace
32
+ test .Namespace += uuid .NewString ()
32
33
test .Setup ()
33
34
return test , nil
34
35
}
You can’t perform that action at this time.
0 commit comments