Skip to content

Commit bc498d3

Browse files
committed
Fix verify test
1 parent ed05136 commit bc498d3

File tree

2 files changed

+16
-20
lines changed

2 files changed

+16
-20
lines changed

test/component_test.go

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ type ComponentSuite struct {
2121
awsRegion string
2222
}
2323

24-
func (s *ComponentSuite) TestBasic() {
25-
const component = "eks/argocd/basic"
24+
func (s *ComponentSuite) TestEnabledFlag() {
25+
const component = "eks/argocd/disabled"
2626
const stack = "default-test"
2727
const awsRegion = "us-east-2"
2828

@@ -40,18 +40,11 @@ func (s *ComponentSuite) TestBasic() {
4040
"ssm_github_api_key": secretPath,
4141
}
4242

43-
defer s.DestroyAtmosComponent(s.T(), component, stack, &inputs)
44-
options, _ := s.DeployAtmosComponent(s.T(), component, stack, &inputs)
45-
assert.NotNil(s.T(), options)
46-
47-
options, _ = s.DeployAtmosComponent(s.T(), component, stack, &inputs)
48-
assert.NotNil(s.T(), options)
49-
50-
// s.DriftTest(component, stack, &inputs)
43+
s.VerifyEnabledFlag(component, stack, &inputs)
5144
}
5245

53-
func (s *ComponentSuite) TestEnabledFlag() {
54-
const component = "eks/argocd/disabled"
46+
func (s *ComponentSuite) TestBasic() {
47+
const component = "eks/argocd/basic"
5548
const stack = "default-test"
5649
const awsRegion = "us-east-2"
5750

@@ -69,7 +62,14 @@ func (s *ComponentSuite) TestEnabledFlag() {
6962
"ssm_github_api_key": secretPath,
7063
}
7164

72-
s.VerifyEnabledFlag(component, stack, &inputs)
65+
defer s.DestroyAtmosComponent(s.T(), component, stack, &inputs)
66+
options, _ := s.DeployAtmosComponent(s.T(), component, stack, &inputs)
67+
assert.NotNil(s.T(), options)
68+
69+
options, _ = s.DeployAtmosComponent(s.T(), component, stack, &inputs)
70+
assert.NotNil(s.T(), options)
71+
72+
s.DriftTest(component, stack, &inputs)
7373
}
7474

7575
func (s *ComponentSuite) SetupSuite() {

test/fixtures/stacks/catalog/usecase/disabled.yaml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ components:
1818
github_organization: cloudposse-tests
1919
oidc_enabled: false
2020
saml_enabled: true
21-
ssm_store_account_tenant: default
22-
ssm_store_account_region: us-east-2
2321
ssm_store_account: test
22+
ssm_store_account_region: us-east-2
23+
ssm_store_account_tenant: default
2424
argocd_rbac_default_policy: "role:readonly"
2525
argocd_rbac_policies:
2626
- "p, role:org-admin, applications, *, */*, allow"
@@ -46,8 +46,4 @@ components:
4646
# component: sso-saml-provider
4747
github_default_notifications_enabled: true
4848
github_webhook_enabled: true
49-
argocd_repositories:
50-
argocd-deploy-non-prod:
51-
environment: gbl
52-
stage: auto
53-
tenant: core
49+
argocd_repositories: {}

0 commit comments

Comments
 (0)