Skip to content

Commit c709b4e

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

File tree

12 files changed

+16
-15
lines changed

12 files changed

+16
-15
lines changed

hack/e2e/net.xml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
</forward>
88
<bridge name='metal3'/>
99
<ip address='192.168.222.1' netmask='255.255.255.0'>
10-
<dhcp>
11-
<range start='192.168.222.3' end='192.168.222.99'/>
12-
<bootp file='http://192.168.222.2:6180/boot.ipxe'/>
13-
</dhcp>
10+
<!--<tftp root="/tmp/tftpboot"/>-->
1411
</ip>
1512
</network>

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
@@ -213,7 +213,7 @@ var _ = Describe("External Inspection", Label("required", "external-inspection")
213213
CredentialsName: "bmc-credentials",
214214
DisableCertificateVerification: bmc.DisableCertificateVerification,
215215
},
216-
BootMode: metal3api.Legacy,
216+
BootMode: metal3api.BootMode(e2eConfig.GetVariable("BOOT_MODE")),
217217
BootMACAddress: bmc.BootMacAddress,
218218
},
219219
}
@@ -284,7 +284,7 @@ var _ = Describe("External Inspection", Label("required", "external-inspection")
284284
CredentialsName: "bmc-credentials",
285285
DisableCertificateVerification: bmc.DisableCertificateVerification,
286286
},
287-
BootMode: metal3api.Legacy,
287+
BootMode: metal3api.BootMode(e2eConfig.GetVariable("BOOT_MODE")),
288288
BootMACAddress: bmc.BootMacAddress,
289289
InspectionMode: metal3api.InspectionModeDisabled,
290290
},

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
}

0 commit comments

Comments
 (0)