@@ -31,14 +31,14 @@ export = nodeunit.testCase({
31
31
const pipeline = new codepipeline . Pipeline ( stack , 'Pipeline' ) ;
32
32
const fakeAction = new FakeAction ( 'Fake' ) ;
33
33
pipeline . addStage ( {
34
- name : 'FakeStage' ,
34
+ stageName : 'FakeStage' ,
35
35
actions : [ fakeAction ] ,
36
36
} ) ;
37
37
new PipelineDeployStackAction ( stack , 'Action' , {
38
38
changeSetName : 'ChangeSet' ,
39
39
input : fakeAction . outputArtifact ,
40
40
stack : new cdk . Stack ( app , 'DeployedStack' , { env : { account : stackAccount } } ) ,
41
- stage : pipeline . addStage ( { name : 'DeployStage' } ) ,
41
+ stage : pipeline . addStage ( { stageName : 'DeployStage' } ) ,
42
42
adminPermissions : false ,
43
43
} ) ;
44
44
} , 'Cross-environment deployment is not supported' ) ;
@@ -60,7 +60,7 @@ export = nodeunit.testCase({
60
60
const pipeline = new codepipeline . Pipeline ( stack , 'Pipeline' ) ;
61
61
const fakeAction = new FakeAction ( 'Fake' ) ;
62
62
pipeline . addStage ( {
63
- name : 'FakeStage' ,
63
+ stageName : 'FakeStage' ,
64
64
actions : [ fakeAction ] ,
65
65
} ) ;
66
66
new PipelineDeployStackAction ( stack , 'Action' , {
@@ -69,7 +69,7 @@ export = nodeunit.testCase({
69
69
executeChangeSetRunOrder : executeRunOrder ,
70
70
input : fakeAction . outputArtifact ,
71
71
stack : new cdk . Stack ( app , 'DeployedStack' ) ,
72
- stage : pipeline . addStage ( { name : 'DeployStage' } ) ,
72
+ stage : pipeline . addStage ( { stageName : 'DeployStage' } ) ,
73
73
adminPermissions : false ,
74
74
} ) ;
75
75
} , 'createChangeSetRunOrder must be < executeChangeSetRunOrder' ) ;
@@ -89,9 +89,9 @@ export = nodeunit.testCase({
89
89
const selfUpdatingStack = createSelfUpdatingStack ( pipelineStack ) ;
90
90
91
91
const pipeline = selfUpdatingStack . pipeline ;
92
- const selfUpdateStage1 = pipeline . addStage ( { name : 'SelfUpdate1' } ) ;
93
- const selfUpdateStage2 = pipeline . addStage ( { name : 'SelfUpdate2' } ) ;
94
- const selfUpdateStage3 = pipeline . addStage ( { name : 'SelfUpdate3' } ) ;
92
+ const selfUpdateStage1 = pipeline . addStage ( { stageName : 'SelfUpdate1' } ) ;
93
+ const selfUpdateStage2 = pipeline . addStage ( { stageName : 'SelfUpdate2' } ) ;
94
+ const selfUpdateStage3 = pipeline . addStage ( { stageName : 'SelfUpdate3' } ) ;
95
95
96
96
new PipelineDeployStackAction ( pipelineStack , 'SelfUpdatePipeline' , {
97
97
stage : selfUpdateStage1 ,
@@ -155,7 +155,7 @@ export = nodeunit.testCase({
155
155
const selfUpdatingStack = createSelfUpdatingStack ( pipelineStack ) ;
156
156
157
157
const pipeline = selfUpdatingStack . pipeline ;
158
- const selfUpdateStage = pipeline . addStage ( { name : 'SelfUpdate' } ) ;
158
+ const selfUpdateStage = pipeline . addStage ( { stageName : 'SelfUpdate' } ) ;
159
159
new PipelineDeployStackAction ( pipelineStack , 'SelfUpdatePipeline' , {
160
160
stage : selfUpdateStage ,
161
161
stack : pipelineStack ,
@@ -191,7 +191,7 @@ export = nodeunit.testCase({
191
191
assumedBy : new iam . ServicePrincipal ( 'cloudformation.amazonaws.com' ) ,
192
192
} ) ;
193
193
const pipeline = selfUpdatingStack . pipeline ;
194
- const selfUpdateStage = pipeline . addStage ( { name : 'SelfUpdate' } ) ;
194
+ const selfUpdateStage = pipeline . addStage ( { stageName : 'SelfUpdate' } ) ;
195
195
const deployAction = new PipelineDeployStackAction ( pipelineStack , 'SelfUpdatePipeline' , {
196
196
stage : selfUpdateStage ,
197
197
stack : pipelineStack ,
@@ -214,7 +214,7 @@ export = nodeunit.testCase({
214
214
215
215
// WHEN //
216
216
// this our app/service/infra to deploy
217
- const deployStage = pipeline . addStage ( { name : 'Deploy' } ) ;
217
+ const deployStage = pipeline . addStage ( { stageName : 'Deploy' } ) ;
218
218
const deployAction = new PipelineDeployStackAction ( pipelineStack , 'DeployServiceStackA' , {
219
219
stage : deployStage ,
220
220
stack : emptyStack ,
@@ -276,11 +276,11 @@ export = nodeunit.testCase({
276
276
const pipeline = new codepipeline . Pipeline ( stack , 'Pipeline' ) ;
277
277
const fakeAction = new FakeAction ( 'Fake' ) ;
278
278
pipeline . addStage ( {
279
- name : 'FakeStage' ,
279
+ stageName : 'FakeStage' ,
280
280
actions : [ fakeAction ] ,
281
281
} ) ;
282
282
const deployedStack = new cdk . Stack ( app , 'DeployedStack' ) ;
283
- const deployStage = pipeline . addStage ( { name : 'DeployStage' } ) ;
283
+ const deployStage = pipeline . addStage ( { stageName : 'DeployStage' } ) ;
284
284
const action = new PipelineDeployStackAction ( stack , 'Action' , {
285
285
changeSetName : 'ChangeSet' ,
286
286
input : fakeAction . outputArtifact ,
@@ -338,7 +338,7 @@ function createSelfUpdatingStack(pipelineStack: cdk.Stack): SelfUpdatingPipeline
338
338
output : sourceOutput ,
339
339
} ) ;
340
340
pipeline . addStage ( {
341
- name : 'source' ,
341
+ stageName : 'source' ,
342
342
actions : [ sourceAction ] ,
343
343
} ) ;
344
344
@@ -351,7 +351,7 @@ function createSelfUpdatingStack(pipelineStack: cdk.Stack): SelfUpdatingPipeline
351
351
outputs : [ buildOutput ] ,
352
352
} ) ;
353
353
pipeline . addStage ( {
354
- name : 'build' ,
354
+ stageName : 'build' ,
355
355
actions : [ buildAction ] ,
356
356
} ) ;
357
357
return { synthesizedApp : buildOutput , pipeline} ;
0 commit comments