Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wulfmann committed Mar 23, 2020
1 parent 96c99e9 commit 5867443
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ test('use aws batch job as an eventrule target', () => {
const jobQueue = new batch.JobQueue(stack, 'MyQueue', {
computeEnvironments: [
{
computeEnvironment: new batch.ComputeEnvironment(stack, 'ComputeEnvironment'),
computeEnvironment: new batch.ComputeEnvironment(stack, 'ComputeEnvironment', {
managed: false
}),
order: 1
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"ComputeEnvironmentOrder": [
{
"ComputeEnvironment": {
"Ref": "MyQueueResourceBatchComputeEnvironment03CD666B"
"Ref": "ComputeEnvironmentC570994D"
},
"Order": 1
}
Expand All @@ -32,12 +32,12 @@
"State": "ENABLED"
}
},
"MyQueueResourceBatchComputeEnvironment03CD666B": {
"ComputeEnvironmentC570994D": {
"Type": "AWS::Batch::ComputeEnvironment",
"Properties": {
"ServiceRole": {
"Fn::GetAtt": [
"MyQueueResourceBatchComputeEnvironmentResourceServiceInstanceRole527D247A",
"ComputeEnvironmentResourceServiceInstanceRoleDC6D4445",
"Arn"
]
},
Expand All @@ -62,7 +62,7 @@
}
}
},
"MyQueueResourceBatchComputeEnvironmentResourceServiceInstanceRole527D247A": {
"ComputeEnvironmentResourceServiceInstanceRoleDC6D4445": {
"Type": "AWS::IAM::Role",
"Properties": {
"AssumeRolePolicyDocument": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ const stack = new cdk.Stack(app, 'batch-events');
const queue = new batch.JobQueue(stack, 'MyQueue', {
computeEnvironments: [
{
computeEnvironment: new batch.ComputeEnvironment(stack, 'ComputeEnvironment'),
computeEnvironment: new batch.ComputeEnvironment(stack, 'ComputeEnvironment', {
managed: false
}),
order: 1
}
]
Expand Down

0 comments on commit 5867443

Please sign in to comment.