Skip to content

Commit ff1aea4

Browse files
committed
E2E: Use UEFI
Switch e2e tests to UEFI instead of Legacy. Signed-off-by: Lennart Jern <[email protected]>
1 parent 5cd8010 commit ff1aea4

File tree

11 files changed

+15
-11
lines changed

11 files changed

+15
-11
lines changed

test/e2e/automated_cleaning_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ var _ = Describe("Automated cleaning", Label("required", "automated-cleaning"),
5959
CredentialsName: "bmc-credentials",
6060
DisableCertificateVerification: bmc.DisableCertificateVerification,
6161
},
62-
BootMode: metal3api.Legacy,
62+
BootMode: metal3api.BootMode(e2eConfig.GetVariable("BOOT_MODE")),
6363
BootMACAddress: bmc.BootMacAddress,
6464
AutomatedCleaningMode: metal3api.CleaningModeMetadata,
6565
},

test/e2e/basic_ops_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ var _ = Describe("basic", Label("required", "basic"), func() {
6161
CredentialsName: "bmc-credentials",
6262
DisableCertificateVerification: bmc.DisableCertificateVerification,
6363
},
64-
BootMode: metal3api.Legacy,
64+
BootMode: metal3api.BootMode(e2eConfig.GetVariable("BOOT_MODE")),
6565
BootMACAddress: bmc.BootMacAddress,
6666
},
6767
}

test/e2e/config/fixture.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ variables:
3535
CERT_MANAGER_VERSION: "v1.17.1"
3636
SSH_CHECK_PROVISIONED: "false"
3737
FETCH_IRONIC_NODES: "false"
38+
# Boot mode can be legacy, UEFI or UEFISecureBoot
39+
BOOT_MODE: "UEFI"
3840

3941
NAMESPACE_SCOPED: "false"
4042

test/e2e/config/ironic.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ variables:
5555
IRONIC_PASSWORD: "changeme"
5656
IRONIC_PROVISIONING_IP: "192.168.222.2"
5757
IRONIC_PROVISIONING_PORT: "6385"
58+
# Boot mode can be legacy, UEFI or UEFISecureBoot
59+
BOOT_MODE: "UEFI"
5860

5961
NAMESPACE_SCOPED: "true"
6062

test/e2e/external_inspection_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ var _ = Describe("External Inspection", Label("required", "external-inspection")
212212
CredentialsName: "bmc-credentials-annotation",
213213
DisableCertificateVerification: bmc.DisableCertificateVerification,
214214
},
215-
BootMode: metal3api.Legacy,
215+
BootMode: metal3api.BootMode(e2eConfig.GetVariable("BOOT_MODE")),
216216
BootMACAddress: bmc.BootMacAddress,
217217
},
218218
}
@@ -283,7 +283,7 @@ var _ = Describe("External Inspection", Label("required", "external-inspection")
283283
CredentialsName: "bmc-credentials-hardware-data",
284284
DisableCertificateVerification: bmc.DisableCertificateVerification,
285285
},
286-
BootMode: metal3api.Legacy,
286+
BootMode: metal3api.BootMode(e2eConfig.GetVariable("BOOT_MODE")),
287287
BootMACAddress: bmc.BootMacAddress,
288288
InspectionMode: metal3api.InspectionModeDisabled,
289289
},

test/e2e/inspection_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ var _ = Describe("Inspection", Label("required", "inspection"), func() {
140140
CredentialsName: "bmc-credentials",
141141
DisableCertificateVerification: bmc.DisableCertificateVerification,
142142
},
143-
BootMode: metal3api.Legacy,
143+
BootMode: metal3api.BootMode(e2eConfig.GetVariable("BOOT_MODE")),
144144
BootMACAddress: bmc.BootMacAddress,
145145
},
146146
}

test/e2e/live_iso_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ var _ = Describe("Live-ISO", Label("required", "live-iso"), func() {
7878
URL: imageURL,
7979
DiskFormat: pointer.String("live-iso"),
8080
},
81-
BootMode: metal3api.Legacy,
81+
BootMode: metal3api.BootMode(e2eConfig.GetVariable("BOOT_MODE")),
8282
BootMACAddress: bmc.BootMacAddress,
8383
AutomatedCleaningMode: metal3api.CleaningModeDisabled,
8484
},

test/e2e/provisioning_and_annotation_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ var _ = Describe("Provision, detach, recreate from status and deprovision", Labe
6363
CredentialsName: "bmc-credentials",
6464
DisableCertificateVerification: bmc.DisableCertificateVerification,
6565
},
66-
BootMode: metal3api.Legacy,
66+
BootMode: metal3api.BootMode(e2eConfig.GetVariable("BOOT_MODE")),
6767
BootMACAddress: bmc.BootMacAddress,
6868
AutomatedCleaningMode: "disabled",
6969
},
@@ -208,7 +208,7 @@ var _ = Describe("Provision, detach, recreate from status and deprovision", Labe
208208
CredentialsName: "bmc-credentials",
209209
DisableCertificateVerification: bmc.DisableCertificateVerification,
210210
},
211-
BootMode: metal3api.Legacy,
211+
BootMode: metal3api.BootMode(e2eConfig.GetVariable("BOOT_MODE")),
212212
BootMACAddress: bmc.BootMacAddress,
213213
AutomatedCleaningMode: "disabled",
214214
Image: &metal3api.Image{

test/e2e/re_inspection_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ var _ = Describe("Re-Inspection", Label("required", "re-inspection"), func() {
6363
CredentialsName: "bmc-credentials",
6464
DisableCertificateVerification: bmc.DisableCertificateVerification,
6565
},
66-
BootMode: metal3api.Legacy,
66+
BootMode: metal3api.BootMode(e2eConfig.GetVariable("BOOT_MODE")),
6767
BootMACAddress: bmc.BootMacAddress,
6868
},
6969
}

test/e2e/upgrade_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ func RunUpgradeTest(ctx context.Context, input *BMOIronicUpgradeInput, upgradeCl
270270
CredentialsName: secretName,
271271
DisableCertificateVerification: bmc.DisableCertificateVerification,
272272
},
273-
BootMode: metal3api.Legacy,
273+
BootMode: metal3api.BootMode(e2eConfig.GetVariable("BOOT_MODE")),
274274
BootMACAddress: bmc.BootMacAddress,
275275
},
276276
}

0 commit comments

Comments
 (0)