Skip to content

Commit 3849293

Browse files
WIP create smoke tests
1 parent 1fb1073 commit 3849293

File tree

3 files changed

+27
-5
lines changed

3 files changed

+27
-5
lines changed

cicd/2-cicd/cicd.template.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,28 @@ Resources:
395395
Capabilities: CAPABILITY_AUTO_EXPAND
396396
RoleArn: !Sub arn:aws:iam::${AWS::AccountId}:role/admin/CloudFormationService
397397
- !Ref AWS::NoValue
398+
399+
- !If
400+
- DeployForProduction
401+
- Name: Smoke_Test
402+
Actions:
403+
- Name: smoke-test
404+
ActionTypeId:
405+
Category: Build
406+
Owner: AWS
407+
Provider: CodeBuild
408+
Version: 1
409+
InputArtifacts:
410+
- Name: sourceCode
411+
Configuration:
412+
ProjectName: !Ref IntegrationTestBuildProject
413+
EnvironmentVariables: !Sub
414+
- '[{"name":"APP_SUBDOMAIN","value":"${SUBDOMAIN}","type":"PLAINTEXT"},{"name":"APP_BASE_DOMAIN","value":"${BASE_DOMAIN}","type":"PLAINTEXT"}]'
415+
- BASE_DOMAIN: code.org
416+
SUBDOMAIN: !If [TargetsMainBranch, "javabuilder", !Sub "javabuilder-${GitHubBranch}"]
417+
OutputArtifacts:
418+
- Name: smokeTestResults
419+
- !Ref AWS::NoValue
398420

399421
# Send pipeline events to an SNS topic.
400422
# Note:

cicd/2-cicd/deploy-cicd.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ else
3131
fi
3232
fi
3333

34-
ENVIRONMENT_TYPE=${ENVIRONMENT_TYPE-'standard'}
34+
ENVIRONMENT_TYPE=${ENVIRONMENT_TYPE-'production'}
3535
GITHUB_BADGE_ENABLED=${GITHUB_BADGE_ENABLED-'true'}
3636

3737
TEMPLATE_FILE=cicd/2-cicd/cicd.template.yml

cicd/3-app/javabuilder/config/production.config.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
"Parameters": {
33
"BaseDomainName": "code.org",
44
"BaseDomainNameHostedZonedID": "Z2LCOI49SCXUGU",
5-
"ProvisionedConcurrentExecutions": "150",
6-
"ReservedConcurrentExecutions": "1650",
7-
"LimitPerHour": "150",
8-
"LimitPerDay": "300",
5+
"ProvisionedConcurrentExecutions": "1",
6+
"ReservedConcurrentExecutions": "3",
7+
"LimitPerHour": "15",
8+
"LimitPerDay": "40",
99
"SilenceAlerts": "false"
1010
},
1111
"Tags" : {

0 commit comments

Comments
 (0)