@@ -54,80 +54,6 @@ var _ = Describe("Convert VMDK", func() {
54
54
Expect (os .Remove (stemcellFilename )).To (Succeed ())
55
55
})
56
56
57
- It ("creates a valid 2012R2 stemcell" , func () {
58
-
59
- var err error
60
- stembuildExecutable , err = helpers .BuildStembuild ("1200.0.0" )
61
- Expect (err ).ToNot (HaveOccurred ())
62
-
63
- osVersion = "2012R2"
64
- version = "1200.0"
65
- stemcellFilename = fmt .Sprintf ("bosh-stemcell-%s-vsphere-esxi-windows%s-go_agent.tgz" , version , osVersion )
66
- inputVmdk = filepath .Join (".." , "test" , "data" , "expected.vmdk" )
67
-
68
- session := expectStembuildToSucceed ("package" , "--vmdk" , inputVmdk , "--outputDir" , "." )
69
- Eventually (session ).Should (Say (`created stemcell: .*\.tgz` ))
70
- Expect (stemcellFilename ).To (BeAnExistingFile ())
71
-
72
- stemcellDir , err := helpers .ExtractGzipArchive (stemcellFilename )
73
- Expect (err ).NotTo (HaveOccurred ())
74
-
75
- manifestFilepath := filepath .Join (stemcellDir , "stemcell.MF" )
76
- manifest , err := helpers .ReadFile (manifestFilepath )
77
- Expect (err ).NotTo (HaveOccurred ())
78
-
79
- expectedOs := fmt .Sprintf ("operating_system: windows%s" , osVersion )
80
- Expect (manifest ).To (ContainSubstring (expectedOs ))
81
-
82
- expectedName := fmt .Sprintf ("name: bosh-vsphere-esxi-windows%s-go_agent" , osVersion )
83
- Expect (manifest ).To (ContainSubstring (expectedName ))
84
-
85
- imageFilepath := filepath .Join (stemcellDir , "image" )
86
- imageDir , err := helpers .ExtractGzipArchive (imageFilepath )
87
- Expect (err ).NotTo (HaveOccurred ())
88
-
89
- actualVmdkFilepath := filepath .Join (imageDir , "image-disk1.vmdk" )
90
- _ , err = ioutil .ReadFile (actualVmdkFilepath )
91
- Expect (err ).NotTo (HaveOccurred ())
92
- })
93
-
94
- It ("creates a valid 1803 stemcell" , func () {
95
-
96
- var err error
97
- stembuildExecutable , err = helpers .BuildStembuild ("1803.0.0" )
98
- Expect (err ).ToNot (HaveOccurred ())
99
-
100
- osVersion = "1803"
101
- version = "1803.0"
102
- stemcellFilename = fmt .Sprintf ("bosh-stemcell-%s-vsphere-esxi-windows%s-go_agent.tgz" , version , osVersion )
103
- inputVmdk = filepath .Join (".." , "test" , "data" , "expected.vmdk" )
104
-
105
- session := expectStembuildToSucceed ("package" , "--vmdk" , inputVmdk , "--outputDir" , "." )
106
- Eventually (session ).Should (Say (`created stemcell: .*\.tgz` ))
107
- Expect (stemcellFilename ).To (BeAnExistingFile ())
108
-
109
- stemcellDir , err := helpers .ExtractGzipArchive (stemcellFilename )
110
- Expect (err ).NotTo (HaveOccurred ())
111
-
112
- manifestFilepath := filepath .Join (stemcellDir , "stemcell.MF" )
113
- manifest , err := helpers .ReadFile (manifestFilepath )
114
- Expect (err ).NotTo (HaveOccurred ())
115
-
116
- expectedOs := fmt .Sprintf ("operating_system: windows%s" , osVersion )
117
- Expect (manifest ).To (ContainSubstring (expectedOs ))
118
-
119
- expectedName := fmt .Sprintf ("name: bosh-vsphere-esxi-windows%s-go_agent" , osVersion )
120
- Expect (manifest ).To (ContainSubstring (expectedName ))
121
-
122
- imageFilepath := filepath .Join (stemcellDir , "image" )
123
- imageDir , err := helpers .ExtractGzipArchive (imageFilepath )
124
- Expect (err ).NotTo (HaveOccurred ())
125
-
126
- actualVmdkFilepath := filepath .Join (imageDir , "image-disk1.vmdk" )
127
- _ , err = ioutil .ReadFile (actualVmdkFilepath )
128
- Expect (err ).NotTo (HaveOccurred ())
129
- })
130
-
131
57
It ("creates a valid 2019 stemcell" , func () {
132
58
133
59
var err error
0 commit comments