File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ import (
2525 . "github.com/onsi/gomega"
2626
2727 cvibuilder "github.com/deckhouse/virtualization-controller/pkg/builder/cvi"
28+ vdbuilder "github.com/deckhouse/virtualization-controller/pkg/builder/vd"
2829 vdsnapshotbuilder "github.com/deckhouse/virtualization-controller/pkg/builder/vdsnapshot"
2930 vibuilder "github.com/deckhouse/virtualization-controller/pkg/builder/vi"
3031 vmbuilder "github.com/deckhouse/virtualization-controller/pkg/builder/vm"
@@ -52,7 +53,15 @@ var _ = Describe("VirtualImageCreation", func() {
5253 )
5354
5455 By ("Creating VirtualDisk" , func () {
55- vd = object .NewGeneratedHTTPVDUbuntu ("vd-" , f .Namespace ().Name )
56+ vd = vdbuilder .New (
57+ vdbuilder .WithGenerateName ("vd-" ),
58+ vdbuilder .WithNamespace (f .Namespace ().Name ),
59+ vdbuilder .WithDataSourceHTTP (
60+ & v1alpha2.DataSourceHTTP {
61+ URL : object .ImageURLAlpineUEFIPerf ,
62+ },
63+ ),
64+ )
5665 err := f .CreateWithDeferredDeletion (context .Background (), vd )
5766 Expect (err ).NotTo (HaveOccurred ())
5867 vm := object .NewMinimalVM ("vm-" , f .Namespace ().Name , vmbuilder .WithBlockDeviceRefs (v1alpha2.BlockDeviceSpecRef {
You can’t perform that action at this time.
0 commit comments