File tree Expand file tree Collapse file tree 8 files changed +24
-16
lines changed
Expand file tree Collapse file tree 8 files changed +24
-16
lines changed Original file line number Diff line number Diff line change @@ -7,12 +7,13 @@ import (
77 "testing"
88 "time"
99
10- "github.com/openmcp-project/openmcp-testing/pkg/providers"
11- "github.com/openmcp-project/openmcp-testing/pkg/setup"
1210 "k8s.io/klog/v2"
1311 "sigs.k8s.io/e2e-framework/klient/wait"
1412 "sigs.k8s.io/e2e-framework/pkg/env"
1513 "sigs.k8s.io/e2e-framework/pkg/envconf"
14+
15+ "github.com/openmcp-project/openmcp-testing/pkg/providers"
16+ "github.com/openmcp-project/openmcp-testing/pkg/setup"
1617)
1718
1819var testenv env.Environment
Original file line number Diff line number Diff line change @@ -5,12 +5,13 @@ import (
55 "testing"
66 "time"
77
8- "github.com/openmcp-project/openmcp-testing/pkg/clusterutils"
9- "github.com/openmcp-project/openmcp-testing/pkg/providers"
108 corev1 "k8s.io/api/core/v1"
119 "sigs.k8s.io/e2e-framework/klient/wait"
1210 "sigs.k8s.io/e2e-framework/pkg/envconf"
1311 "sigs.k8s.io/e2e-framework/pkg/features"
12+
13+ "github.com/openmcp-project/openmcp-testing/pkg/clusterutils"
14+ "github.com/openmcp-project/openmcp-testing/pkg/providers"
1415)
1516
1617func TestServiceProvider (t * testing.T ) {
Original file line number Diff line number Diff line change 55 "fmt"
66 "strings"
77
8- "github.com/openmcp-project/openmcp-testing/pkg/resources"
98 corev1 "k8s.io/api/core/v1"
109 "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
1110 "k8s.io/client-go/tools/clientcmd"
@@ -14,6 +13,8 @@ import (
1413 "sigs.k8s.io/e2e-framework/klient/wait/conditions"
1514 "sigs.k8s.io/e2e-framework/pkg/envconf"
1615 "sigs.k8s.io/kind/pkg/cluster"
16+
17+ "github.com/openmcp-project/openmcp-testing/pkg/resources"
1718)
1819
1920// ConfigByPrefix returns an environment Config with the passed in namespace and
Original file line number Diff line number Diff line change @@ -4,13 +4,14 @@ import (
44 "context"
55 "fmt"
66
7- "github.com/openmcp-project/openmcp-testing/internal"
87 corev1 "k8s.io/api/core/v1"
98 "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
109 "k8s.io/apimachinery/pkg/util/wait"
1110 "k8s.io/klog/v2"
1211 "sigs.k8s.io/e2e-framework/klient/k8s"
1312 "sigs.k8s.io/e2e-framework/pkg/envconf"
13+
14+ "github.com/openmcp-project/openmcp-testing/internal"
1415)
1516
1617// Match returns true if the conditionType of an object matches the conditionStatus.
Original file line number Diff line number Diff line change @@ -4,10 +4,6 @@ import (
44 "context"
55 "testing"
66
7- "github.com/openmcp-project/openmcp-testing/internal"
8- "github.com/openmcp-project/openmcp-testing/pkg/clusterutils"
9- "github.com/openmcp-project/openmcp-testing/pkg/conditions"
10- "github.com/openmcp-project/openmcp-testing/pkg/resources"
117 corev1 "k8s.io/api/core/v1"
128 "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
139 "k8s.io/apimachinery/pkg/runtime/schema"
@@ -16,6 +12,11 @@ import (
1612 "sigs.k8s.io/e2e-framework/klient/wait"
1713 "sigs.k8s.io/e2e-framework/pkg/envconf"
1814 "sigs.k8s.io/e2e-framework/pkg/features"
15+
16+ "github.com/openmcp-project/openmcp-testing/internal"
17+ "github.com/openmcp-project/openmcp-testing/pkg/clusterutils"
18+ "github.com/openmcp-project/openmcp-testing/pkg/conditions"
19+ "github.com/openmcp-project/openmcp-testing/pkg/resources"
1920)
2021
2122const clusterProviderTemplate = `
Original file line number Diff line number Diff line change @@ -4,16 +4,17 @@ import (
44 "context"
55 "testing"
66
7- "github.com/openmcp-project/openmcp-testing/pkg/clusterutils"
8- "github.com/openmcp-project/openmcp-testing/pkg/conditions"
9- "github.com/openmcp-project/openmcp-testing/pkg/resources"
107 corev1 "k8s.io/api/core/v1"
118 "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
129 "k8s.io/apimachinery/pkg/runtime/schema"
1310 "k8s.io/klog/v2"
1411 "sigs.k8s.io/e2e-framework/klient/wait"
1512 "sigs.k8s.io/e2e-framework/pkg/envconf"
1613 "sigs.k8s.io/e2e-framework/pkg/features"
14+
15+ "github.com/openmcp-project/openmcp-testing/pkg/clusterutils"
16+ "github.com/openmcp-project/openmcp-testing/pkg/conditions"
17+ "github.com/openmcp-project/openmcp-testing/pkg/resources"
1718)
1819
1920const serviceProviderTemplate = `
Original file line number Diff line number Diff line change @@ -5,14 +5,15 @@ import (
55 "os"
66 "strings"
77
8- "github.com/openmcp-project/openmcp-testing/internal"
98 "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
109 "k8s.io/klog/v2"
1110 "sigs.k8s.io/e2e-framework/klient/decoder"
1211 "sigs.k8s.io/e2e-framework/klient/k8s"
1312 "sigs.k8s.io/e2e-framework/klient/wait"
1413 "sigs.k8s.io/e2e-framework/klient/wait/conditions"
1514 "sigs.k8s.io/e2e-framework/pkg/envconf"
15+
16+ "github.com/openmcp-project/openmcp-testing/internal"
1617)
1718
1819// DeleteObject deletes the passed in object if it exists
Original file line number Diff line number Diff line change 44 "context"
55 "time"
66
7- "github.com/openmcp-project/openmcp-testing/pkg/providers"
8- "github.com/openmcp-project/openmcp-testing/pkg/resources"
97 apimachinerytypes "k8s.io/apimachinery/pkg/types"
108 "k8s.io/klog/v2"
119 "sigs.k8s.io/e2e-framework/klient/wait"
@@ -15,6 +13,9 @@ import (
1513 "sigs.k8s.io/e2e-framework/pkg/envfuncs"
1614 "sigs.k8s.io/e2e-framework/pkg/types"
1715 "sigs.k8s.io/e2e-framework/support/kind"
16+
17+ "github.com/openmcp-project/openmcp-testing/pkg/providers"
18+ "github.com/openmcp-project/openmcp-testing/pkg/resources"
1819)
1920
2021type OpenMCPSetup struct {
You can’t perform that action at this time.
0 commit comments