kill extraneous SaveOutput test
@@ -429,8 +429,7 @@ var _ = Describe("Build", func() {
Expect(found).To(BeTrue())
})
- Context("when a job build", func() {
- It("can get a build's output", func() {
+ It("can save a build's output", func() {
build, err := job.CreateBuild()
Expect(err).ToNot(HaveOccurred())
@@ -462,39 +461,6 @@ var _ = Describe("Build", func() {
})
})
- Context("when a one off build", func() {
- It("can not get a build's output", func() {
- build, err := team.CreateOneOffBuild()
- Expect(err).ToNot(HaveOccurred())
-
- versionedResource := db.VersionedResource{
- Resource: "some-explicit-resource",
- Type: "some-type",
- Version: db.ResourceVersion{
- "some": "version",
- },
- Metadata: []db.ResourceMetadataField{
- {
- Name: "meta1",
- Value: "data1",
- },
- {
- Name: "meta2",
- Value: "data2",
- },
- },
- }
-
- err = build.SaveOutput(versionedResource)
- Expect(err).ToNot(HaveOccurred())
-
- actualBuildOutput, err := build.GetVersionedResources()
- Expect(err).ToNot(HaveOccurred())
- Expect(len(actualBuildOutput)).To(Equal(0))
- })
- })
- })
-
Describe("GetResources", func() {
var (
pipeline db.Pipeline
