remove no longer relevant test
it's the responsibility of the caller to determine whether to save the
input now
@@ -326,7 +326,6 @@ var _ = Describe("Build", func() {
Expect(found).To(BeTrue())
})
- Context("when a job build", func() {
It("saves the build's input", func() {
build, err := job.CreateBuild()
Expect(err).ToNot(HaveOccurred())
@@ -361,41 +360,6 @@ var _ = Describe("Build", func() {
})
})
- Context("when a one off build", func() {
- It("does not save the build's input", func() {
- build, err := team.CreateOneOffBuild()
- Expect(err).ToNot(HaveOccurred())
-
- versionedResource := db.VersionedResource{
- Resource: "some-resource",
- Type: "some-type",
- Version: db.ResourceVersion{
- "some": "version",
- },
- Metadata: []db.ResourceMetadataField{
- {
- Name: "meta1",
- Value: "data1",
- },
- {
- Name: "meta2",
- Value: "data2",
- },
- },
- }
- err = build.SaveInput(db.BuildInput{
- Name: "some-input",
- VersionedResource: versionedResource,
- })
- Expect(err).ToNot(HaveOccurred())
-
- actualBuildInput, err := build.GetVersionedResources()
- Expect(err).ToNot(HaveOccurred())
- Expect(len(actualBuildInput)).To(Equal(0))
- })
- })
- })
-
Describe("SaveOutput", func() {
var pipeline db.Pipeline
var job db.Job
