// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 package import_certs import ( "fmt" "os" "testing" "time" "github.com/aws/copilot-cli/e2e/internal/client" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" ) var cli *client.CLI var appName string var importedCert string func TestAppWithDomain(t *testing.T) { RegisterFailHandler(Fail) RunSpecs(t, "Import Certificates Suite") } var _ = BeforeSuite(func() { arn, ok := os.LookupEnv("IMPORTED_CERT_ARN") Expect(ok).Should(Equal(true)) importedCert = arn copilotCLI, err := client.NewCLI() Expect(err).NotTo(HaveOccurred()) cli = copilotCLI appName = fmt.Sprintf("e2e-import-certs-%d", time.Now().Unix()) }) var _ = AfterSuite(func() { _, err := cli.AppDelete() Expect(err).NotTo(HaveOccurred()) })