Skip to content

Commit bd9ae18

Browse files
committed
Remove dummy configuration tests
1 parent 248c5ce commit bd9ae18

File tree

1 file changed

+0
-43
lines changed

1 file changed

+0
-43
lines changed

plugins/pxeboot/plugin_test.go

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -109,49 +109,6 @@ func TestWrongNumberArgs(t *testing.T) {
109109
}
110110
}
111111

112-
func TestWrongArgs4(t *testing.T) {
113-
malformedTFTPPath := []string{"tftp://192.168.0.3", "tftp:/192.168.0.3/boot.efi", "foo://192.168.0.3/boot.efi"}
114-
malformedIPXEPath := []string{"https://192.168.0.3", "http:/192.168.0.3/boot.ipxe", "foo://192.168.0.3/boot.ipxe"}
115-
116-
for _, wrongTFTP := range malformedTFTPPath {
117-
for _, arch := range []api.Arch{api.AMD64, api.ARM64} {
118-
initValidConfig()
119-
validConfig.TFTPAddress.IPv4[arch] = wrongTFTP
120-
tempDir := t.TempDir()
121-
err := Init4(*validConfig, tempDir)
122-
if err == nil {
123-
t.Fatalf("no error occurred when providing wrong TFTP path %s for arch %s, but it should have", wrongTFTP, arch)
124-
}
125-
126-
tftpo, exists := bootOptsV4.TFTPOptions[arch]
127-
if exists && tftpo.TFTPBootFileNameOption != nil {
128-
t.Fatalf("TFTP boot file was set when providing wrong TFTP path %s for arch %s, but it should be empty", wrongTFTP, arch)
129-
}
130-
131-
if exists && tftpo.TFTPServerNameOption != nil {
132-
t.Fatalf("TFTP server name was set when providing wrong TFTP path %s for arch %s, but it should be empty", wrongTFTP, arch)
133-
}
134-
}
135-
}
136-
137-
for _, wrongIPXE := range malformedIPXEPath {
138-
for _, arch := range []api.Arch{api.AMD64, api.ARM64} {
139-
initValidConfig()
140-
validConfig.IPXEAddress.IPv4[arch] = wrongIPXE
141-
tempDir := t.TempDir()
142-
err := Init4(*validConfig, tempDir)
143-
if err == nil {
144-
t.Fatalf("no error occurred when providing wrong IPXE path %s for arch %s, but it should have", wrongIPXE, arch)
145-
}
146-
147-
ipxeo, exists := bootOptsV4.IPXEOptions[arch]
148-
if exists && ipxeo.String() != "" {
149-
t.Fatalf("IPXE boot file was set when providing wrong IPXE path %s for arch %s, but it should be empty", wrongIPXE, arch)
150-
}
151-
}
152-
}
153-
}
154-
155112
func TestPXERequestedAMD6(t *testing.T) {
156113
tempDir := t.TempDir()
157114
_ = Init6(*validConfig, tempDir, 1)

0 commit comments

Comments
 (0)