// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 package worker_test import ( "fmt" "testing" "time" "github.com/aws/copilot-cli/e2e/internal/client" . "github.com/onsi/ginkgo/v2" . "github.com/onsi/gomega" ) var ( cli *client.CLI appName string ) const ( lbwsServiceName = "frontend" workerServiceName = "worker" counterServiceName = "counter" envName = "test" ) func TestWorker(t *testing.T) { RegisterFailHandler(Fail) RunSpecs(t, "Worker Service Suite") } var _ = BeforeSuite(func() { var err error cli, err = client.NewCLI() Expect(err).NotTo(HaveOccurred()) appName = fmt.Sprintf("e2e-worker-%d", time.Now().Unix()) }) var _ = AfterSuite(func() { _, err := cli.AppDelete() Expect(err).NotTo(HaveOccurred()) })