createTurbulenceStub()

	turbulenceManifest = new(helpers.Manifest)
	bosh.GenerateAndSetDeploymentManifest(
		turbulenceManifest,
		turbulenceManifestGeneration,
		directorUUIDStub,
		helpers.TurbulenceInstanceCountOverridesStubPath,
		helpers.TurbulencePersistentDiskOverridesStubPath,
		config.IAASSettingsTurbulenceStubPath,
		config.TurbulencePropertiesStubPath,
		turbulenceNameOverrideStub,
	)

	By("uploading the turbulence release")
	Expect(bosh.Command("-n", "upload", "release", config.TurbulenceReleaseUrl)).To(Exit(0))

	By("deploying the turbulence release")
	Expect(bosh.Command("-n", "deploy")).To(Exit(0))

	createEtcdStub()
	bosh.CreateAndUploadRelease(goPath, etcdRelease)
})

var _ = AfterSuite(func() {
	if bosh == nil {
		return
	}

	By("delete etcd release")
	bosh.Command("-n", "delete", "release", etcdRelease)
Пример #2
0
	consulManifestGeneration = filepath.Join(goPath, "src", "acceptance-tests", "scripts", "generate-consul-deployment-manifest")

	err := os.Chdir(goPath)
	Expect(err).ToNot(HaveOccurred())

	directorUUIDStub = bosh.TargetDeployment()
	createConsulStub()
	bosh.CreateAndUploadRelease(goPath, consulRelease)
})

var _ = AfterSuite(func() {
	if bosh == nil {
		return
	}

	By("delete release")
	bosh.Command("-n", "delete", "release", consulRelease)
})

func createConsulStub() {
	By("creating the consul overrides stub")
	consulStub := fmt.Sprintf(`---
name_overrides:
  release_name: %s
  deployment_name: %s
`, consulRelease, consulDeployment)

	consulNameOverrideStub = helpers.WriteStub(consulStub)
}
Пример #3
0
	etcdManifestGeneration = filepath.Join(goPath, "src", "acceptance-tests", "scripts", "generate_etcd_deployment_manifest")

	err := os.Chdir(goPath)
	Expect(err).ToNot(HaveOccurred())

	directorUUIDStub = bosh.TargetDeployment()
	createEtcdStub()
	bosh.CreateAndUploadRelease(goPath, etcdRelease)
})

var _ = AfterSuite(func() {
	if bosh == nil {
		return
	}

	By("delete release")
	bosh.Command("-n", "delete", "release", etcdRelease)
})

func createEtcdStub() {
	By("creating the etcd overrides stub")
	etcdStub := fmt.Sprintf(`---
name_overrides:
  release_name: %s
  deployment_name: %s
`, etcdRelease, etcdDeployment)

	etcdNameOverrideStub = helpers.WriteStub(etcdStub)
}