Skip to content

Commit 8711763

Browse files
authored
Comment out SSM parameter storage for Datadog keys
Comment out Datadog API and App key storage in tests.
1 parent d268038 commit 8711763

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

test/component_test.go

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,20 @@ func (s *ComponentSuite) TestBasicDatadogMonitor() {
2727
const stack = "default-test"
2828
const awsRegion = "us-east-2"
2929

30-
randomID := strings.ToLower(random.UniqueId())
30+
// randomID := strings.ToLower(random.UniqueId())
3131

32-
// Store the Datadog API key in SSM for the duration of the test.
33-
apiKeyPath := fmt.Sprintf("/datadog/%s/datadog_api_key", randomID)
34-
awsTerratest.PutParameter(s.T(), s.awsRegion, apiKeyPath, "Datadog API Key", s.datadogAPIKey)
32+
// // Store the Datadog API key in SSM for the duration of the test.
33+
// apiKeyPath := fmt.Sprintf("/datadog/%s/datadog_api_key", randomID)
34+
// awsTerratest.PutParameter(s.T(), s.awsRegion, apiKeyPath, "Datadog API Key", s.datadogAPIKey)
3535

36-
// Store the Datadog App key in SSM for the duration of the test.
37-
appKeyPath := fmt.Sprintf("/datadog/%s/datadog_app_key", randomID)
38-
awsTerratest.PutParameter(s.T(), s.awsRegion, appKeyPath, "Datadog App Key", s.datadogAppKey)
36+
// // Store the Datadog App key in SSM for the duration of the test.
37+
// appKeyPath := fmt.Sprintf("/datadog/%s/datadog_app_key", randomID)
38+
// awsTerratest.PutParameter(s.T(), s.awsRegion, appKeyPath, "Datadog App Key", s.datadogAppKey)
3939

40-
defer func() {
41-
awsTerratest.DeleteParameter(s.T(), awsRegion, apiKeyPath)
42-
awsTerratest.DeleteParameter(s.T(), awsRegion, appKeyPath)
43-
}()
40+
// defer func() {
41+
// awsTerratest.DeleteParameter(s.T(), awsRegion, apiKeyPath)
42+
// awsTerratest.DeleteParameter(s.T(), awsRegion, appKeyPath)
43+
// }()
4444

4545
defer s.DestroyAtmosComponent(s.T(), component, stack, nil)
4646
options, _ := s.DeployAtmosComponent(s.T(), component, stack, nil)
@@ -54,20 +54,20 @@ func (s *ComponentSuite) TestEnabledFlag() {
5454
const stack = "default-test"
5555
const awsRegion = "us-east-2"
5656

57-
randomID := strings.ToLower(random.UniqueId())
57+
// randomID := strings.ToLower(random.UniqueId())
5858

59-
// Store the Datadog API key in SSM for the duration of the test.
60-
apiKeyPath := fmt.Sprintf("/datadog/%s/datadog_api_key", randomID)
61-
awsTerratest.PutParameter(s.T(), s.awsRegion, apiKeyPath, "Datadog API Key", s.datadogAPIKey)
59+
// // Store the Datadog API key in SSM for the duration of the test.
60+
// apiKeyPath := fmt.Sprintf("/datadog/%s/datadog_api_key", randomID)
61+
// awsTerratest.PutParameter(s.T(), s.awsRegion, apiKeyPath, "Datadog API Key", s.datadogAPIKey)
6262

63-
// Store the Datadog App key in SSM for the duration of the test.
64-
appKeyPath := fmt.Sprintf("/datadog/%s/datadog_app_key", randomID)
65-
awsTerratest.PutParameter(s.T(), s.awsRegion, appKeyPath, "Datadog App Key", s.datadogAppKey)
63+
// // Store the Datadog App key in SSM for the duration of the test.
64+
// appKeyPath := fmt.Sprintf("/datadog/%s/datadog_app_key", randomID)
65+
// awsTerratest.PutParameter(s.T(), s.awsRegion, appKeyPath, "Datadog App Key", s.datadogAppKey)
6666

67-
defer func() {
68-
awsTerratest.DeleteParameter(s.T(), awsRegion, apiKeyPath)
69-
awsTerratest.DeleteParameter(s.T(), awsRegion, appKeyPath)
70-
}()
67+
// defer func() {
68+
// awsTerratest.DeleteParameter(s.T(), awsRegion, apiKeyPath)
69+
// awsTerratest.DeleteParameter(s.T(), awsRegion, appKeyPath)
70+
// }()
7171

7272
s.VerifyEnabledFlag(component, stack, nil)
7373
}

0 commit comments

Comments
 (0)