Skip to content

Commit ed05136

Browse files
committed
Fix verify test
1 parent c655b25 commit ed05136

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

test/component_test.go

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,23 @@ func (s *ComponentSuite) TestBasic() {
5353
func (s *ComponentSuite) TestEnabledFlag() {
5454
const component = "eks/argocd/disabled"
5555
const stack = "default-test"
56-
s.VerifyEnabledFlag(component, stack, nil)
56+
const awsRegion = "us-east-2"
57+
58+
randomID := strings.ToLower(random.UniqueId())
59+
namespace := fmt.Sprintf("argocd-%s", randomID)
60+
61+
secretPath := fmt.Sprintf("/argocd/%s/github/api_key", randomID)
62+
defer func() {
63+
awsTerratest.DeleteParameter(s.T(), awsRegion, secretPath)
64+
}()
65+
awsTerratest.PutParameter(s.T(), s.awsRegion, secretPath, "Github API Key", s.githubToken)
66+
67+
inputs := map[string]interface{}{
68+
"kubernetes_namespace": namespace,
69+
"ssm_github_api_key": secretPath,
70+
}
71+
72+
s.VerifyEnabledFlag(component, stack, &inputs)
5773
}
5874

5975
func (s *ComponentSuite) SetupSuite() {

0 commit comments

Comments
 (0)