We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 64f4087 + 273f55f commit c655b25Copy full SHA for c655b25
test/component_test.go
@@ -61,9 +61,13 @@ func (s *ComponentSuite) SetupSuite() {
61
s.TestSuite.Config.ComponentDestDir = "components/terraform/eks/argocd"
62
63
s.githubOrg = "cloudposse-tests"
64
- s.githubToken = os.Getenv("GITHUB_TOKEN")
65
- s.randomID = strings.ToLower(random.UniqueId())
66
- s.awsRegion = "us-east-2"
+ s.githubOrg = "cloudposse-tests"
+ s.githubToken = os.Getenv("GITHUB_TOKEN")
+ 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"
71
72
if !s.Config.SkipDeployDependencies {
73
deployKeyPath := fmt.Sprintf("/argocd/deploy_keys/%s/%s", s.randomID, "%s")
0 commit comments