func init() { db = data.NewDeploymentsPerBOSH() }
. "github.com/cloudfoundry-community/stannis/rendertemplates" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" ) var _ = Describe("Prepare data for templates", func() { var ( pipelineConfig *config.PipelinesConfig expectedRenderData RenderData db data.DeploymentsPerBOSH renderdata *RenderData ) BeforeEach(func() { expectedRenderData = *TestScenarioData() db = data.NewDeploymentsPerBOSH() db.FixtureBosh("../upload/fixtures/bosh-lite.json") db.FixtureDeployment("../upload/fixtures/deployment-bosh-lite-cf1.json") db.FixtureDeployment("../upload/fixtures/deployment-bosh-lite-cf2.json") db.FixtureBosh("../upload/fixtures/bosh-vsphere-sandbox.json") db.FixtureDeployment("../upload/fixtures/deployment-vsphere-sandbox-cf.json") db.FixtureBosh("../upload/fixtures/bosh-aws-production.json") db.FixtureDeployment("../upload/fixtures/deployment-aws-production-cf.json") var err error pipelineConfig, err = config.LoadConfigFromYAMLFile("../config/webserver.config.example.yml") Expect(err).NotTo(HaveOccurred())