Name: "some-put", Resource: "some-output-resource", Tags: []string{"some", "putget", "tags"}, Type: "some-type", Source: atc.Source{"some": "source"}, Params: atc.Params{"another": "params"}, }), }) var err error build, err = execEngine.CreateBuild(logger, db.Build{ID: 123}, plan) Expect(err).ToNot(HaveOccurred()) }) JustBeforeEach(func() { publicPlan, planFound, publicPlanErr = build.PublicPlan(logger) }) It("returns the plan successfully", func() { Expect(publicPlanErr).ToNot(HaveOccurred()) Expect(planFound).To(BeTrue()) }) It("has the engine name as the schema", func() { Expect(publicPlan.Schema).To(Equal("exec.v2")) }) It("cleans out sensitive/irrelevant information from the original plan", func() { Expect(publicPlan.Plan).To(Equal(plan.Public())) }) })