Skip to content

Commit 7cfdd2c

Browse files
dbasnerGeorge Gelashvili
andcommitted
Remove some 2012 and 1803 tests
where an analagous 2019 test exists Co-authored-by: George Gelashvili <ggelashvili+cf@pivotal.io>
1 parent 1458c47 commit 7cfdd2c

File tree

1 file changed

+0
-74
lines changed

1 file changed

+0
-74
lines changed

integration/convert_vmdk_command_test.go

Lines changed: 0 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -54,80 +54,6 @@ var _ = Describe("Convert VMDK", func() {
5454
Expect(os.Remove(stemcellFilename)).To(Succeed())
5555
})
5656

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-
13157
It("creates a valid 2019 stemcell", func() {
13258

13359
var err error

0 commit comments

Comments
 (0)