Skip to content

Commit 7a676ca

Browse files
committed
try fixing missing network UUID env var
1 parent 2967326 commit 7a676ca

3 files changed

Lines changed: 12 additions & 7 deletions

File tree

test/e2e/config/cloudscale.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ providers:
3838
files:
3939
- sourcePath: "../data/shared/v1beta2/metadata.yaml"
4040

41-
- name: cloudscale
41+
- name: cloudscale-ch-cloudscale
4242
type: InfrastructureProvider
4343
versions:
4444
- name: v0.99.99 # dev version, always higher than any release

test/e2e/e2e_suite_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,11 @@ var _ = SynchronizedBeforeSuite(func() []byte {
161161
})
162162
Expect(e2eConfig).NotTo(BeNil())
163163

164+
// Re-inject env-only variables lost when LoadE2EConfig overwrites e2eConfig.
165+
if networkUUID := os.Getenv("CLOUDSCALE_NETWORK_UUID"); networkUUID != "" {
166+
e2eConfig.Variables["CLOUDSCALE_NETWORK_UUID"] = networkUUID
167+
}
168+
164169
if artifactFolder == "" {
165170
artifactFolder = filepath.Join(os.TempDir(), "capcs-e2e-artifacts")
166171
}

test/e2e/e2e_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ var _ = Describe("Workload cluster lifecycle", Label("lifecycle"), func() {
3939
BootstrapClusterProxy: bootstrapClusterProxy,
4040
ArtifactFolder: artifactFolder,
4141
SkipCleanup: skipCleanup,
42-
InfrastructureProvider: ptr.To("cloudscale"),
42+
InfrastructureProvider: ptr.To("cloudscale-ch-cloudscale"),
4343
Flavor: ptr.To(""),
4444
ControlPlaneMachineCount: ptr.To[int64](1),
4545
WorkerMachineCount: ptr.To[int64](1),
@@ -56,7 +56,7 @@ var _ = Describe("Workload cluster lifecycle", Label("lifecycle"), func() {
5656
BootstrapClusterProxy: bootstrapClusterProxy,
5757
ArtifactFolder: artifactFolder,
5858
SkipCleanup: skipCleanup,
59-
InfrastructureProvider: ptr.To("cloudscale"),
59+
InfrastructureProvider: ptr.To("cloudscale-ch-cloudscale"),
6060
Flavor: ptr.To("ha"),
6161
ControlPlaneMachineCount: ptr.To[int64](3),
6262
WorkerMachineCount: ptr.To[int64](2),
@@ -86,7 +86,7 @@ var _ = Describe("BYO networking", Label("byo-networking"), func() {
8686
BootstrapClusterProxy: bootstrapClusterProxy,
8787
ArtifactFolder: artifactFolder,
8888
SkipCleanup: skipCleanup,
89-
InfrastructureProvider: ptr.To("cloudscale"),
89+
InfrastructureProvider: ptr.To("cloudscale-ch-cloudscale"),
9090
Flavor: ptr.To("byo-network"),
9191
ControlPlaneMachineCount: ptr.To[int64](1),
9292
WorkerMachineCount: ptr.To[int64](1),
@@ -104,7 +104,7 @@ var _ = Describe("BYO networking", Label("byo-networking"), func() {
104104
BootstrapClusterProxy: bootstrapClusterProxy,
105105
ArtifactFolder: artifactFolder,
106106
SkipCleanup: skipCleanup,
107-
InfrastructureProvider: ptr.To("cloudscale"),
107+
InfrastructureProvider: ptr.To("cloudscale-ch-cloudscale"),
108108
Flavor: ptr.To("public-lb-private-nodes"),
109109
ControlPlaneMachineCount: ptr.To[int64](1),
110110
WorkerMachineCount: ptr.To[int64](1),
@@ -123,7 +123,7 @@ var _ = Describe("BYO networking", Label("byo-networking"), func() {
123123
BootstrapClusterProxy: bootstrapClusterProxy,
124124
ArtifactFolder: artifactFolder,
125125
SkipCleanup: skipCleanup,
126-
InfrastructureProvider: ptr.To("cloudscale"),
126+
InfrastructureProvider: ptr.To("cloudscale-ch-cloudscale"),
127127
Flavor: ptr.To("private"),
128128
ControlPlaneMachineCount: ptr.To[int64](1),
129129
WorkerMachineCount: ptr.To[int64](1),
@@ -142,7 +142,7 @@ var _ = Describe("BYO networking", Label("byo-networking"), func() {
142142
BootstrapClusterProxy: bootstrapClusterProxy,
143143
ArtifactFolder: artifactFolder,
144144
SkipCleanup: skipCleanup,
145-
InfrastructureProvider: ptr.To("cloudscale"),
145+
InfrastructureProvider: ptr.To("cloudscale-ch-cloudscale"),
146146
Flavor: ptr.To("fip"),
147147
ControlPlaneMachineCount: ptr.To[int64](1),
148148
WorkerMachineCount: ptr.To[int64](1),

0 commit comments

Comments
 (0)