Skip to content

Commit

Permalink
Updating test cases with pre-req layer
Browse files Browse the repository at this point in the history
  • Loading branch information
himsharma01 committed Dec 24, 2024
1 parent a975bf1 commit c931cd2
Show file tree
Hide file tree
Showing 4 changed files with 91 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,35 @@ TestCase:
SumoCloudTrailAPIURL:
- "parameters.Section6bCloudTrailLogsSourceUrl"
- "assertions[AssertType==ParameterCheck].Assert.sumoLambdaMetricsAppStack.Section5aCloudTrailLogsAPIUrl"
- CFNTemplateURL: "test/setup-infra/create_sumo_cloudwatch_metrics_source.yaml"
CFNParameters:
SumoLogicDeployment: '${SUMO_DEPLOYMENT}'
SumoLogicAccessID: '${SUMO_ACCESS_ID}'
SumoLogicAccessKey: '${SUMO_ACCESS_KEY}'
SumoLambdaHelperArn: '${SumoLambdaHelperArn}'
SumoLogicSourceRoleArn: '${SumoLogicSourceRoleArn}'
SumoCollectorID: '${SumoCollectorID}'
AccountAlias: '${AccountAlias}'
ImpactedParametersPath:
SumoCloudWatchMetricsAPIURL:
- "parameters.Section4cCloudWatchExistingSourceAPIUrl"
- "assertions[AssertType==ParameterCheck].Assert.sumoAlbMetricsAppStack.Section4aCloudWatchExistingSourceAPIUrl"
- "assertions[AssertType==ParameterCheck].Assert.sumoLambdaMetricsAppStack.Section4aCloudWatchExistingSourceAPIUrl"
- CFNTemplateURL: "test/setup-infra/create_sumo_cloudwatch_lb_source.yaml"
CFNParameters:
SumoLogicDeployment: '${SUMO_DEPLOYMENT}'
SumoLogicAccessID: '${SUMO_ACCESS_ID}'
SumoLogicAccessKey: '${SUMO_ACCESS_KEY}'
SumoLambdaHelperArn: '${SumoLambdaHelperArn}'
SumoLogicSourceRoleArn: '${SumoLogicSourceRoleArn}'
SumoCollectorID: '${SumoCollectorID}'
AccountAlias: '${AccountAlias}'
LBLogsBucketName: '${BucketName}'
ImpactedParametersPath:
SumoLoadBalancerLogAPIURL:
- "parameters.Section5cALBLogsSourceUrl"
- "assertions[AssertType==ParameterCheck].Assert.sumoAlbMetricsAppStack.Section5aALBLogsAPIUrl"
- "assertions[AssertType==ParameterCheck].Assert.sumoLambdaMetricsAppStack.Section5aALBLogsAPIUrl"
Parameters:
Values:
Section1aSumoLogicDeployment: '${SUMO_DEPLOYMENT}'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,34 @@ TestCase:
SumoCloudTrailAPIURL:
- "parameters.Section6bCloudTrailLogsSourceUrl"
- "assertions[AssertType==ParameterCheck].Assert.sumoLambdaMetricsAppStack.Section5aCloudTrailLogsAPIUrl"
- CFNTemplateURL: "test/setup-infra/create_sumo_cloudwatch_metrics_source.yaml"
CFNParameters:
SumoLogicDeployment: '${SUMO_DEPLOYMENT}'
SumoLogicAccessID: '${SUMO_ACCESS_ID}'
SumoLogicAccessKey: '${SUMO_ACCESS_KEY}'
SumoLambdaHelperArn: '${SumoLambdaHelperArn}'
SumoLogicSourceRoleArn: '${SumoLogicSourceRoleArn}'
SumoCollectorID: '${SumoCollectorID}'
AccountAlias: '${AccountAlias}'
ImpactedParametersPath:
SumoCloudWatchMetricsAPIURL:
- "parameters.Section4cCloudWatchExistingSourceAPIUrl"
- "assertions[AssertType==ParameterCheck].Assert.sumoAlbMetricsAppStack.Section4aCloudWatchExistingSourceAPIUrl"
- "assertions[AssertType==ParameterCheck].Assert.sumoLambdaMetricsAppStack.Section4aCloudWatchExistingSourceAPIUrl"
- CFNTemplateURL: "test/setup-infra/create_sumo_cloudwatch_lb_source.yaml"
CFNParameters:
SumoLogicDeployment: '${SUMO_DEPLOYMENT}'
SumoLogicAccessID: '${SUMO_ACCESS_ID}'
SumoLogicAccessKey: '${SUMO_ACCESS_KEY}'
SumoLambdaHelperArn: '${SumoLambdaHelperArn}'
SumoLogicSourceRoleArn: '${SumoLogicSourceRoleArn}'
SumoCollectorID: '${SumoCollectorID}'
AccountAlias: '${AccountAlias}'
LBLogsBucketName: '${BucketName}'
ImpactedParametersPath:
SumoLoadBalancerLogAPIURL:
- "parameters.Section9cELBLogsSourceUrl"
- "assertions[AssertType==ParameterCheck].Assert.sumoElbMetricsAppStack.Section5aELBLogsAPIUrl"
Parameters:
Values:
Section1aSumoLogicDeployment: '${SUMO_DEPLOYMENT}'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,23 @@ TestCase:
SumoCloudWatchLogAPIURL:
- "parameters.Section7bLambdaCloudWatchLogsSourceUrl"
- "assertions[AssertType==ParameterCheck].Assert.sumoLambdaMetricsAppStack.Section6aCloudWatchLogsAPIUrl"
- CFNTemplateURL: "test/setup-infra/create_sumo_role.yaml"
CFNParameters:
SumoLogicDeployment: '${SUMO_DEPLOYMENT}'
SumoLogicOrganizationId: '${SUMO_ORG_ID}'
- CFNTemplateURL: "test/setup-infra/create_sumo_cloudwatch_metrics_source.yaml"
CFNParameters:
SumoLogicDeployment: '${SUMO_DEPLOYMENT}'
SumoLogicAccessID: '${SUMO_ACCESS_ID}'
SumoLogicAccessKey: '${SUMO_ACCESS_KEY}'
SumoLambdaHelperArn: '${SumoLambdaHelperArn}'
SumoLogicSourceRoleArn: '${SumoLogicSourceRoleArn}'
SumoCollectorID: '${SumoCollectorID}'
AccountAlias: '${AccountAlias}'
ImpactedParametersPath:
SumoCloudWatchMetricsAPIURL:
- "parameters.Section4cCloudWatchExistingSourceAPIUrl"
- "assertions[AssertType==ParameterCheck].Assert.sumoAlbMetricsAppStack.Section4aCloudWatchExistingSourceAPIUrl"
Parameters:
Values:
Section1aSumoLogicDeployment: '${SUMO_DEPLOYMENT}'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,23 @@ TestCase:
SumoCloudWatchLogAPIURL:
- "parameters.Section7bLambdaCloudWatchLogsSourceUrl"
- "assertions[AssertType==ParameterCheck].Assert.sumoLambdaMetricsAppStack.Section6aCloudWatchLogsAPIUrl"
- CFNTemplateURL: "test/setup-infra/create_sumo_role.yaml"
CFNParameters:
SumoLogicDeployment: '${SUMO_DEPLOYMENT}'
SumoLogicOrganizationId: '${SUMO_ORG_ID}'
- CFNTemplateURL: "test/setup-infra/create_sumo_cloudwatch_metrics_source.yaml"
CFNParameters:
SumoLogicDeployment: '${SUMO_DEPLOYMENT}'
SumoLogicAccessID: '${SUMO_ACCESS_ID}'
SumoLogicAccessKey: '${SUMO_ACCESS_KEY}'
SumoLambdaHelperArn: '${SumoLambdaHelperArn}'
SumoLogicSourceRoleArn: '${SumoLogicSourceRoleArn}'
SumoCollectorID: '${SumoCollectorID}'
AccountAlias: '${AccountAlias}'
ImpactedParametersPath:
SumoCloudWatchMetricsAPIURL:
- "parameters.Section4cCloudWatchExistingSourceAPIUrl"
- "assertions[AssertType==ParameterCheck].Assert.sumoAlbMetricsAppStack.Section4aCloudWatchExistingSourceAPIUrl"
Parameters:
Values:
Section1aSumoLogicDeployment: '${SUMO_DEPLOYMENT}'
Expand Down

0 comments on commit c931cd2

Please sign in to comment.