forked from kubevirt/kubevirt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use the fedora tooling image everywhere
Stop using the vanilla fedora image. Signed-off-by: Roman Mohr <[email protected]>
- Loading branch information
Showing
12 changed files
with
17 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -365,7 +365,7 @@ var _ = Describe("[Serial][rfe_id:899][crit:medium][vendor:[email protected]][le | |
|
||
vmi := tests.NewRandomVMIWithEphemeralDiskAndUserdataHighMemory( | ||
cd.ContainerDiskFor( | ||
cd.ContainerDiskFedora), "#!/bin/bash\necho \"fedora\" | passwd fedora --stdin\n") | ||
cd.ContainerDiskFedoraTestTooling), "#!/bin/bash\necho \"fedora\" | passwd fedora --stdin\n") | ||
tests.AddConfigMapDisk(vmi, configMapName, configMapName) | ||
tests.AddSecretDisk(vmi, secretName, secretName) | ||
tests.AddConfigMapDiskWithCustomLabel(vmi, configMapName, "random1", "configlabel") | ||
|
@@ -484,7 +484,7 @@ var _ = Describe("[Serial][rfe_id:899][crit:medium][vendor:[email protected]][le | |
By("Running VMI") | ||
vmi := tests.NewRandomVMIWithEphemeralDiskAndUserdataHighMemory( | ||
cd.ContainerDiskFor( | ||
cd.ContainerDiskFedora), "#!/bin/bash\necho \"fedora\" | passwd fedora --stdin\n") | ||
cd.ContainerDiskFedoraTestTooling), "#!/bin/bash\necho \"fedora\" | passwd fedora --stdin\n") | ||
tests.AddSecretDisk(vmi, secretName, secretName) | ||
vmi = tests.RunVMIAndExpectLaunch(vmi, 90) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1229,7 +1229,7 @@ var _ = Describe("[Serial][rfe_id:393][crit:high][vendor:[email protected]][leve | |
Expect(nfsIP).NotTo(BeEmpty()) | ||
// create a new PV and PVC (PVs can't be reused) | ||
By("create a new NFS PV and PVC") | ||
os := string(cd.ContainerDiskFedora) | ||
os := string(cd.ContainerDiskFedoraTestTooling) | ||
tests.CreateNFSPvAndPvc(pvName, util.NamespaceTestDefault, "5Gi", nfsIP, os) | ||
|
||
cfg := getCurrentKv() | ||
|
@@ -1904,7 +1904,7 @@ var _ = Describe("[Serial][rfe_id:393][crit:high][vendor:[email protected]][leve | |
} | ||
|
||
newVirtualMachineInstanceWithFedoraOCSDisk := func() (*v1.VirtualMachineInstance, *cdiv1.DataVolume) { | ||
// It could have been cleaner to import cd.ContainerDiskFedora from cdi-http-server but that does | ||
// It could have been cleaner to import cd.ContainerDiskFedoraTestTooling from cdi-http-server but that does | ||
// not work so as a temporary workaround the following imports the image from an ISCSI target pod | ||
if !tests.HasCDI() { | ||
Skip("Skip DataVolume tests when CDI is not present") | ||
|
@@ -2147,7 +2147,7 @@ var _ = Describe("[Serial][rfe_id:393][crit:high][vendor:[email protected]][leve | |
tests.CreateConfigMap(configMapName, config_data) | ||
tests.CreateSecret(secretName, secret_data) | ||
|
||
vmi := tests.NewRandomVMIWithEphemeralDisk(cd.ContainerDiskFor(cd.ContainerDiskFedora)) | ||
vmi := tests.NewRandomVMIWithEphemeralDisk(cd.ContainerDiskFor(cd.ContainerDiskFedoraTestTooling)) | ||
vmi.Spec.Domain.Resources.Requests[k8sv1.ResourceMemory] = resource.MustParse(fedoraVMSize) | ||
tests.AddUserData(vmi, "cloud-init", "#cloud-config\npassword: fedora\nchpasswd: { expire: False }\n") | ||
tests.AddConfigMapDisk(vmi, configMapName, configMapName) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -541,7 +541,7 @@ var _ = SIGDescribe("[Serial][rfe_id:694][crit:medium][vendor:[email protected]] | |
|
||
It("[test_id:1778]should offer extra dhcp options to pod iface", func() { | ||
userData := "#cloud-config\npassword: fedora\nchpasswd: { expire: False }\n" | ||
dhcpVMI := tests.NewRandomVMIWithEphemeralDiskAndUserdata(cd.ContainerDiskFor(cd.ContainerDiskFedora), userData) | ||
dhcpVMI := tests.NewRandomVMIWithEphemeralDiskAndUserdata(cd.ContainerDiskFor(cd.ContainerDiskFedoraTestTooling), userData) | ||
tests.AddExplicitPodNetworkInterface(dhcpVMI) | ||
|
||
dhcpVMI.Spec.Domain.Resources.Requests[k8sv1.ResourceName("memory")] = resource.MustParse("1024M") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -837,7 +837,7 @@ var _ = Describe("[rfe_id:1177][crit:medium][vendor:[email protected]][level:com | |
It("[test_id:3007]Should force restart a VM with terminationGracePeriodSeconds>0", func() { | ||
|
||
By("getting a VM with high TerminationGracePeriod") | ||
newVMI := tests.NewRandomVMIWithEphemeralDisk(cd.ContainerDiskFor(cd.ContainerDiskFedora)) | ||
newVMI := tests.NewRandomVMIWithEphemeralDisk(cd.ContainerDiskFor(cd.ContainerDiskFedoraTestTooling)) | ||
gracePeriod := int64(600) | ||
newVMI.Spec.TerminationGracePeriodSeconds = &gracePeriod | ||
newVM := tests.NewRandomVirtualMachine(newVMI, true) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -176,7 +176,7 @@ var _ = Describe("[rfe_id:151][crit:high][vendor:[email protected]][level:compon | |
fedoraPassword, | ||
sshAuthorizedKey, | ||
) | ||
vmi := tests.NewRandomVMIWithEphemeralDiskAndUserdataHighMemory(cd.ContainerDiskFor(cd.ContainerDiskFedora), userData) | ||
vmi := tests.NewRandomVMIWithEphemeralDiskAndUserdataHighMemory(cd.ContainerDiskFor(cd.ContainerDiskFedoraTestTooling), userData) | ||
|
||
LaunchVMI(vmi) | ||
CheckCloudInitIsoSize(vmi, cloudinit.DataSourceNoCloud) | ||
|
@@ -214,7 +214,7 @@ var _ = Describe("[rfe_id:151][crit:high][vendor:[email protected]][level:compon | |
fedoraPassword, | ||
sshAuthorizedKey, | ||
) | ||
vmi := tests.NewRandomVMIWithEphemeralDiskAndConfigDriveUserdataHighMemory(cd.ContainerDiskFor(cd.ContainerDiskFedora), userData) | ||
vmi := tests.NewRandomVMIWithEphemeralDiskAndConfigDriveUserdataHighMemory(cd.ContainerDiskFor(cd.ContainerDiskFedoraTestTooling), userData) | ||
|
||
LaunchVMI(vmi) | ||
CheckCloudInitIsoSize(vmi, cloudinit.DataSourceConfigDrive) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,7 +69,7 @@ var _ = Describe("[Serial][rfe_id:151][crit:high][vendor:[email protected]][leve | |
Context("with IgnitionData annotation", func() { | ||
Context("with injected data", func() { | ||
It("[test_id:1616]should have injected data under firmware directory", func() { | ||
vmi := tests.NewRandomVMIWithEphemeralDiskAndUserdataHighMemory(cd.ContainerDiskFor(cd.ContainerDiskFedora), "#!/bin/sh\n\necho fedora| passwd --stdin fedora\n") | ||
vmi := tests.NewRandomVMIWithEphemeralDiskAndUserdataHighMemory(cd.ContainerDiskFor(cd.ContainerDiskFedoraTestTooling), "#!/bin/sh\n\necho fedora| passwd --stdin fedora\n") | ||
|
||
ignitionData := "ignition injected" | ||
vmi.Annotations = map[string]string{v1.IgnitionAnnotation: ignitionData} | ||
|