Skip to content

Commit 273f55f

Browse files
Update test/component_test.go
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent b1b1b46 commit 273f55f

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

test/component_test.go

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,13 @@ func (s *ComponentSuite) SetupSuite() {
6161
s.TestSuite.Config.ComponentDestDir = "components/terraform/eks/argocd"
6262

6363
s.githubOrg = "cloudposse-tests"
64-
s.githubToken = os.Getenv("GITHUB_TOKEN")
65-
s.randomID = strings.ToLower(random.UniqueId())
66-
s.awsRegion = "us-east-2"
64+
s.githubOrg = "cloudposse-tests"
65+
s.githubToken = os.Getenv("GITHUB_TOKEN")
66+
if s.githubToken == "" {
67+
s.T().Fatal("GITHUB_TOKEN environment variable must be set")
68+
}
69+
s.randomID = strings.ToLower(random.UniqueId())
70+
s.awsRegion = "us-east-2"
6771

6872
if !s.Config.SkipDeployDependencies {
6973
deployKeyPath := fmt.Sprintf("/argocd/deploy_keys/%s/%s", s.randomID, "%s")

0 commit comments

Comments
 (0)