err = downloadAndUploadRelease(boshClient, ConcourseReleaseURL) Expect(err).NotTo(HaveOccurred()) err = downloadAndUploadRelease(boshClient, GardenReleaseURL) Expect(err).NotTo(HaveOccurred()) err = downloadAndUploadStemcell(boshClient, StemcellURL) Expect(err).NotTo(HaveOccurred()) concourseExampleManifest, err := downloadConcourseExampleManifest() Expect(err).NotTo(HaveOccurred()) info, err := boshClient.Info() Expect(err).NotTo(HaveOccurred()) lbURL := fmt.Sprintf("http://%s", aws.LoadBalancers(state.StackName())["ConcourseLoadBalancerURL"]) stemcell, err := boshClient.Stemcell(StemcellName) Expect(err).NotTo(HaveOccurred()) concourseRelease, err := boshClient.Release("concourse") Expect(err).NotTo(HaveOccurred()) gardenRelease, err := boshClient.Release(GardenReleaseName) Expect(err).NotTo(HaveOccurred()) concourseManifestInputs := concourseManifestInputs{ boshDirectorUUID: info.UUID, webExternalURL: lbURL, stemcellVersion: stemcell.Latest(), concourseReleaseVersion: concourseRelease.Latest(),
aws = actors.NewAWS(configuration) bosh = actors.NewBOSH() state = integration.NewState(configuration.StateFileDir) }) It("creates, updates and deletes an LB with the specified cert and key", func() { bbl.Up() stackName := state.StackName() directorAddress := bbl.DirectorAddress() directorUsername := bbl.DirectorUsername() directorPassword := bbl.DirectorPassword() Expect(aws.StackExists(stackName)).To(BeTrue()) Expect(aws.LoadBalancers(stackName)).To(BeEmpty()) Expect(bosh.DirectorExists(directorAddress, directorUsername, directorPassword)).To(BeTrue()) certPath, err := testhelpers.WriteContentsToTempFile(testhelpers.BBL_CERT) Expect(err).NotTo(HaveOccurred()) chainPath, err := testhelpers.WriteContentsToTempFile(testhelpers.BBL_CHAIN) Expect(err).NotTo(HaveOccurred()) keyPath, err := testhelpers.WriteContentsToTempFile(testhelpers.BBL_KEY) Expect(err).NotTo(HaveOccurred()) otherCertPath, err := testhelpers.WriteContentsToTempFile(testhelpers.OTHER_BBL_CERT) Expect(err).NotTo(HaveOccurred()) otherKeyPath, err := testhelpers.WriteContentsToTempFile(testhelpers.OTHER_BBL_KEY)