@@ -14,20 +14,20 @@ import (
1414var _ = Describe ("Runnable" , func () {
1515
1616 It ("adds an image from the source to the CloudProfile spec" , func (ctx SpecContext ) {
17- mockSource .images = []cloudprofilesync.SourceImage {{Version : "v1 .0.0" , Architectures : []string {"amd64" }}}
17+ mockSource .images = []cloudprofilesync.SourceImage {{Version : "1 .0.0" , Architectures : []string {"amd64" }}}
1818 var cloudProfile v1beta1.CloudProfile
1919 Expect (runnable .CheckSource (ctx , & cloudProfile )).To (Succeed ())
2020 Expect (cloudProfile .Spec .MachineImages ).To (HaveLen (1 ))
2121 Expect (cloudProfile .Spec .MachineImages [0 ].Name ).To (Equal ("test" ))
2222 Expect (cloudProfile .Spec .MachineImages [0 ].Versions ).To (HaveLen (1 ))
23- Expect (cloudProfile .Spec .MachineImages [0 ].Versions [0 ].Version ).To (Equal ("v1 .0.0" ))
23+ Expect (cloudProfile .Spec .MachineImages [0 ].Versions [0 ].Version ).To (Equal ("1 .0.0" ))
2424 Expect (cloudProfile .Spec .MachineImages [0 ].Versions [0 ].Architectures ).To (Equal ([]string {"amd64" }))
2525 })
2626
2727 It ("adds multiple images from the source to the CloudProfile spec" , func (ctx SpecContext ) {
2828 mockSource .images = []cloudprofilesync.SourceImage {
29- {Version : "v1 .0.0" , Architectures : []string {"amd64" }},
30- {Version : "v2 .0.0" , Architectures : []string {"arm64" , "amd64" }},
29+ {Version : "1 .0.0" , Architectures : []string {"amd64" }},
30+ {Version : "2 .0.0" , Architectures : []string {"arm64" , "amd64" }},
3131 }
3232 var cloudProfile v1beta1.CloudProfile
3333 Expect (runnable .CheckSource (ctx , & cloudProfile )).To (Succeed ())
@@ -36,13 +36,13 @@ var _ = Describe("Runnable", func() {
3636 Expect (cloudProfile .Spec .MachineImages [0 ].Versions ).To (ConsistOf ([]v1beta1.MachineImageVersion {
3737 {
3838 ExpirableVersion : v1beta1.ExpirableVersion {
39- Version : "v1 .0.0" ,
39+ Version : "1 .0.0" ,
4040 },
4141 Architectures : []string {"amd64" },
4242 },
4343 {
4444 ExpirableVersion : v1beta1.ExpirableVersion {
45- Version : "v2 .0.0" ,
45+ Version : "2 .0.0" ,
4646 },
4747 Architectures : []string {"arm64" , "amd64" },
4848 },
@@ -58,7 +58,7 @@ var _ = Describe("Runnable", func() {
5858 Versions : []v1beta1.MachineImageVersion {
5959 {
6060 ExpirableVersion : v1beta1.ExpirableVersion {
61- Version : "v1 .0.0" ,
61+ Version : "1 .0.0" ,
6262 },
6363 Architectures : []string {"amd64" },
6464 },
@@ -68,12 +68,12 @@ var _ = Describe("Runnable", func() {
6868 },
6969 }
7070
71- mockSource .images = []cloudprofilesync.SourceImage {{Version : "v2 .0.0" , Architectures : []string {"arm64" }}}
71+ mockSource .images = []cloudprofilesync.SourceImage {{Version : "2 .0.0" , Architectures : []string {"arm64" }}}
7272 Expect (runnable .CheckSource (ctx , & cloudProfile )).To (Succeed ())
7373 Expect (cloudProfile .Spec .MachineImages ).To (HaveLen (1 ))
7474 Expect (cloudProfile .Spec .MachineImages [0 ].Name ).To (Equal ("test" ))
7575 Expect (cloudProfile .Spec .MachineImages [0 ].Versions ).To (HaveLen (1 ))
76- Expect (cloudProfile .Spec .MachineImages [0 ].Versions [0 ].Version ).To (Equal ("v2 .0.0" ))
76+ Expect (cloudProfile .Spec .MachineImages [0 ].Versions [0 ].Version ).To (Equal ("2 .0.0" ))
7777 Expect (cloudProfile .Spec .MachineImages [0 ].Versions [0 ].Architectures ).To (Equal ([]string {"arm64" }))
7878 })
7979
@@ -86,7 +86,7 @@ var _ = Describe("Runnable", func() {
8686 Versions : []v1beta1.MachineImageVersion {
8787 {
8888 ExpirableVersion : v1beta1.ExpirableVersion {
89- Version : "v1 .0.0" ,
89+ Version : "1 .0.0" ,
9090 },
9191 Architectures : []string {"amd64" },
9292 },
@@ -97,7 +97,7 @@ var _ = Describe("Runnable", func() {
9797 Versions : []v1beta1.MachineImageVersion {
9898 {
9999 ExpirableVersion : v1beta1.ExpirableVersion {
100- Version : "v2 .0.0" ,
100+ Version : "2 .0.0" ,
101101 },
102102 Architectures : []string {"arm64" },
103103 },
@@ -107,15 +107,15 @@ var _ = Describe("Runnable", func() {
107107 },
108108 }
109109
110- mockSource .images = []cloudprofilesync.SourceImage {{Version : "v1 .1.0" , Architectures : []string {"arm64" }}}
110+ mockSource .images = []cloudprofilesync.SourceImage {{Version : "1 .1.0" , Architectures : []string {"arm64" }}}
111111 Expect (runnable .CheckSource (ctx , & cloudProfile )).To (Succeed ())
112112 Expect (cloudProfile .Spec .MachineImages ).To (ConsistOf ([]v1beta1.MachineImage {
113113 {
114114 Name : "test" ,
115115 Versions : []v1beta1.MachineImageVersion {
116116 {
117117 ExpirableVersion : v1beta1.ExpirableVersion {
118- Version : "v1 .1.0" ,
118+ Version : "1 .1.0" ,
119119 },
120120 Architectures : []string {"arm64" },
121121 },
@@ -126,7 +126,7 @@ var _ = Describe("Runnable", func() {
126126 Versions : []v1beta1.MachineImageVersion {
127127 {
128128 ExpirableVersion : v1beta1.ExpirableVersion {
129- Version : "v2 .0.0" ,
129+ Version : "2 .0.0" ,
130130 },
131131 Architectures : []string {"arm64" },
132132 },
0 commit comments