Skip to content

Commit

Permalink
fixing batch integ test. Environment should not be specified.
Browse files Browse the repository at this point in the history
  • Loading branch information
corymhall committed Aug 18, 2022
1 parent 1989990 commit 12c9e78
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 20 deletions.
7 changes: 1 addition & 6 deletions packages/@aws-cdk/aws-batch/test/integ.job-definition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,7 @@ import { JobDefinition } from "../lib";

const app = new App();

const stack = new Stack(app, "BatchDefaultEnvVarsStack", {
env: {
account: process.env.CDK_DEFAULT_ACCOUNT,
region: process.env.CDK_DEFAULT_REGION,
},
});
const stack = new Stack(app, "BatchDefaultEnvVarsStack");

new JobDefinition(stack, "JobDefinition", {
container: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,15 @@
"Environment": [
{
"Name": "AWS_REGION",
"Value": "eu-west-1"
"Value": {
"Ref": "AWS::Region"
}
},
{
"Name": "AWS_ACCOUNT",
"Value": "202865745565"
"Value": {
"Ref": "AWS::AccountId"
}
}
],
"Image": "docker/whalesay",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"status": "ACTIVE"
},
"flattenResponse": "true",
"salt": "1660753068855"
"salt": "1660823602154"
},
"UpdateReplacePolicy": "Delete",
"DeletionPolicy": "Delete"
Expand All @@ -36,7 +36,7 @@
]
},
"expected": "{\"$StringLike\":\"AWS_REGION\"}",
"salt": "1660753068856"
"salt": "1660823602155"
},
"UpdateReplacePolicy": "Delete",
"DeletionPolicy": "Delete"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"BatchDefaultEnvVarsStack": {
"type": "aws:cloudformation:stack",
"environment": "aws://202865745565/eu-west-1",
"environment": "aws://unknown-account/unknown-region",
"properties": {
"templateFile": "BatchDefaultEnvVarsStack.template.json",
"validateOnSynth": false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"path": "Tree",
"constructInfo": {
"fqn": "constructs.Construct",
"version": "10.1.71"
"version": "10.1.78"
}
},
"BatchDefaultEnvVarsStack": {
Expand Down Expand Up @@ -47,11 +47,15 @@
"environment": [
{
"name": "AWS_REGION",
"value": "eu-west-1"
"value": {
"Ref": "AWS::Region"
}
},
{
"name": "AWS_ACCOUNT",
"value": "202865745565"
"value": {
"Ref": "AWS::AccountId"
}
}
],
"image": "docker/whalesay",
Expand Down Expand Up @@ -107,7 +111,7 @@
"path": "IntegTest-BatchDefaultEnvVarsStack/DefaultTest/Default",
"constructInfo": {
"fqn": "constructs.Construct",
"version": "10.1.71"
"version": "10.1.78"
}
},
"DeployAssert": {
Expand All @@ -127,7 +131,7 @@
"path": "IntegTest-BatchDefaultEnvVarsStack/DefaultTest/DeployAssert/AwsApiCallBatchdescribeJobDefinitions/SdkProvider/AssertionsProvider",
"constructInfo": {
"fqn": "constructs.Construct",
"version": "10.1.71"
"version": "10.1.78"
}
}
},
Expand Down Expand Up @@ -167,7 +171,7 @@
"path": "IntegTest-BatchDefaultEnvVarsStack/DefaultTest/DeployAssert/AwsApiCallBatchdescribeJobDefinitions/AssertEqualsBatchdescribeJobDefinitions/AssertionProvider/AssertionsProvider",
"constructInfo": {
"fqn": "constructs.Construct",
"version": "10.1.71"
"version": "10.1.78"
}
}
},
Expand Down Expand Up @@ -245,7 +249,7 @@
},
"constructInfo": {
"fqn": "constructs.Construct",
"version": "10.1.71"
"version": "10.1.78"
}
},
"AssetParameters": {
Expand Down Expand Up @@ -283,13 +287,13 @@
},
"constructInfo": {
"fqn": "constructs.Construct",
"version": "10.1.71"
"version": "10.1.78"
}
}
},
"constructInfo": {
"fqn": "constructs.Construct",
"version": "10.1.71"
"version": "10.1.78"
}
}
},
Expand Down

0 comments on commit 12c9e78

Please sign in to comment.