Skip to content

Commit 1c173c5

Browse files
committed
fix(kubevirt): Fix create unit tests
Signed-off-by: Lee Yarwood <lyarwood@redhat.com>
1 parent ad82523 commit 1c173c5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

pkg/toolsets/kubevirt/vm/create/tool_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ func TestCreate(t *testing.T) {
4545
if !strings.Contains(result, "quay.io/containerdisks/fedora:latest") {
4646
t.Errorf("Expected fedora container disk in result")
4747
}
48-
if !strings.Contains(result, "guest: 1Gi") {
49-
t.Errorf("Expected guest: 1Gi in YAML manifest")
48+
if !strings.Contains(result, "guest: 2Gi") {
49+
t.Errorf("Expected guest: 2Gi in YAML manifest")
5050
}
5151
},
5252
},
@@ -180,15 +180,15 @@ func TestResolveContainerDisk(t *testing.T) {
180180
expected string
181181
}{
182182
{"fedora", "fedora", "quay.io/containerdisks/fedora:latest"},
183-
{"ubuntu", "ubuntu", "quay.io/containerdisks/ubuntu:latest"},
183+
{"ubuntu", "ubuntu", "quay.io/containerdisks/ubuntu:24.04"},
184184
{"rhel8", "rhel8", "registry.redhat.io/rhel8/rhel-guest-image:latest"},
185185
{"rhel9", "rhel9", "registry.redhat.io/rhel9/rhel-guest-image:latest"},
186186
{"rhel10", "rhel10", "registry.redhat.io/rhel10/rhel-guest-image:latest"},
187-
{"centos", "centos", "quay.io/containerdisks/centos-stream:latest"},
188-
{"centos-stream", "centos-stream", "quay.io/containerdisks/centos-stream:latest"},
187+
{"centos", "centos", "quay.io/containerdisks/centos-stream:9-latest"},
188+
{"centos-stream", "centos-stream", "quay.io/containerdisks/centos-stream:9-latest"},
189189
{"debian", "debian", "quay.io/containerdisks/debian:latest"},
190190
{"case insensitive", "FEDORA", "quay.io/containerdisks/fedora:latest"},
191-
{"with whitespace", " ubuntu ", "quay.io/containerdisks/ubuntu:latest"},
191+
{"with whitespace", " ubuntu ", "quay.io/containerdisks/ubuntu:24.04"},
192192
{"custom image", "quay.io/myrepo/myimage:v1", "quay.io/myrepo/myimage:v1"},
193193
{"with tag", "myimage:latest", "myimage:latest"},
194194
{"unknown OS", "customos", "customos"},

0 commit comments

Comments
 (0)