@@ -52,7 +52,7 @@ func TestUpdatePipelineOpts_convertStages(t *testing.T) {
52
52
Prod : false ,
53
53
}
54
54
gomock .InOrder (
55
- m .ws .EXPECT ().ServiceNames ().Return ([]string {"frontend" , "backend" }, nil ).Times (1 ),
55
+ m .ws .EXPECT ().WorkloadNames ().Return ([]string {"frontend" , "backend" }, nil ).Times (1 ),
56
56
m .envStore .EXPECT ().GetEnvironment ("badgoose" , "test" ).Return (mockEnv , nil ).Times (1 ),
57
57
)
58
58
},
@@ -64,7 +64,7 @@ func TestUpdatePipelineOpts_convertStages(t *testing.T) {
64
64
Region : "us-west-2" ,
65
65
AccountID : "123456789012" ,
66
66
},
67
- LocalServices : []string {"frontend" , "backend" },
67
+ LocalWorkloads : []string {"frontend" , "backend" },
68
68
RequiresApproval : false ,
69
69
TestCommands : []string {"make test" , "echo \" made test\" " },
70
70
},
@@ -87,7 +87,7 @@ func TestUpdatePipelineOpts_convertStages(t *testing.T) {
87
87
Prod : false ,
88
88
}
89
89
gomock .InOrder (
90
- m .ws .EXPECT ().ServiceNames ().Return ([]string {"frontend" , "backend" }, nil ).Times (1 ),
90
+ m .ws .EXPECT ().WorkloadNames ().Return ([]string {"frontend" , "backend" }, nil ).Times (1 ),
91
91
m .envStore .EXPECT ().GetEnvironment ("badgoose" , "test" ).Return (mockEnv , nil ).Times (1 ),
92
92
)
93
93
},
@@ -99,7 +99,7 @@ func TestUpdatePipelineOpts_convertStages(t *testing.T) {
99
99
Region : "us-west-2" ,
100
100
AccountID : "123456789012" ,
101
101
},
102
- LocalServices : []string {"frontend" , "backend" },
102
+ LocalWorkloads : []string {"frontend" , "backend" },
103
103
RequiresApproval : false ,
104
104
TestCommands : []string (nil ),
105
105
},
@@ -123,7 +123,7 @@ func TestUpdatePipelineOpts_convertStages(t *testing.T) {
123
123
Prod : true ,
124
124
}
125
125
gomock .InOrder (
126
- m .ws .EXPECT ().ServiceNames ().Return ([]string {"frontend" , "backend" }, nil ).Times (1 ),
126
+ m .ws .EXPECT ().WorkloadNames ().Return ([]string {"frontend" , "backend" }, nil ).Times (1 ),
127
127
m .envStore .EXPECT ().GetEnvironment ("badgoose" , "test" ).Return (mockEnv , nil ).Times (1 ),
128
128
)
129
129
},
@@ -135,7 +135,7 @@ func TestUpdatePipelineOpts_convertStages(t *testing.T) {
135
135
Region : "us-west-2" ,
136
136
AccountID : "123456789012" ,
137
137
},
138
- LocalServices : []string {"frontend" , "backend" },
138
+ LocalWorkloads : []string {"frontend" , "backend" },
139
139
RequiresApproval : true ,
140
140
TestCommands : []string (nil ),
141
141
},
@@ -305,7 +305,7 @@ stages:
305
305
m .prog .EXPECT ().Stop (log .Ssuccessf (fmtPipelineUpdateResourcesComplete , appName )).Times (1 ),
306
306
307
307
m .ws .EXPECT ().ReadPipelineManifest ().Return ([]byte (content ), nil ),
308
- m .ws .EXPECT ().ServiceNames ().Return ([]string {"frontend" , "backend" }, nil ).Times (1 ),
308
+ m .ws .EXPECT ().WorkloadNames ().Return ([]string {"frontend" , "backend" }, nil ).Times (1 ),
309
309
310
310
// convertStages
311
311
m .envStore .EXPECT ().GetEnvironment (appName , "chicken" ).Return (mockEnv , nil ).Times (1 ),
@@ -334,7 +334,7 @@ stages:
334
334
m .prog .EXPECT ().Stop (log .Ssuccessf (fmtPipelineUpdateResourcesComplete , appName )).Times (1 ),
335
335
336
336
m .ws .EXPECT ().ReadPipelineManifest ().Return ([]byte (content ), nil ),
337
- m .ws .EXPECT ().ServiceNames ().Return ([]string {"frontend" , "backend" }, nil ).Times (1 ),
337
+ m .ws .EXPECT ().WorkloadNames ().Return ([]string {"frontend" , "backend" }, nil ).Times (1 ),
338
338
339
339
// convertStages
340
340
m .envStore .EXPECT ().GetEnvironment (appName , "chicken" ).Return (mockEnv , nil ).Times (1 ),
@@ -364,7 +364,7 @@ stages:
364
364
m .prog .EXPECT ().Stop (log .Ssuccessf (fmtPipelineUpdateResourcesComplete , appName )).Times (1 ),
365
365
366
366
m .ws .EXPECT ().ReadPipelineManifest ().Return ([]byte (content ), nil ),
367
- m .ws .EXPECT ().ServiceNames ().Return ([]string {"frontend" , "backend" }, nil ).Times (1 ),
367
+ m .ws .EXPECT ().WorkloadNames ().Return ([]string {"frontend" , "backend" }, nil ).Times (1 ),
368
368
369
369
// convertStages
370
370
m .envStore .EXPECT ().GetEnvironment (appName , "chicken" ).Return (mockEnv , nil ).Times (1 ),
@@ -391,7 +391,7 @@ stages:
391
391
m .prog .EXPECT ().Stop (log .Ssuccessf (fmtPipelineUpdateResourcesComplete , appName )).Times (1 ),
392
392
393
393
m .ws .EXPECT ().ReadPipelineManifest ().Return ([]byte (content ), nil ),
394
- m .ws .EXPECT ().ServiceNames ().Return ([]string {"frontend" , "backend" }, nil ).Times (1 ),
394
+ m .ws .EXPECT ().WorkloadNames ().Return ([]string {"frontend" , "backend" }, nil ).Times (1 ),
395
395
396
396
// convertStages
397
397
m .envStore .EXPECT ().GetEnvironment (appName , "chicken" ).Return (mockEnv , nil ).Times (1 ),
@@ -462,10 +462,10 @@ stages:
462
462
m .prog .EXPECT ().Stop (log .Ssuccessf (fmtPipelineUpdateResourcesComplete , appName )).Times (1 ),
463
463
464
464
m .ws .EXPECT ().ReadPipelineManifest ().Return ([]byte (content ), nil ),
465
- m .ws .EXPECT ().ServiceNames ().Return (nil , errors .New ("some error" )).Times (1 ),
465
+ m .ws .EXPECT ().WorkloadNames ().Return (nil , errors .New ("some error" )).Times (1 ),
466
466
)
467
467
},
468
- expectedError : fmt .Errorf ("convert environments to deployment stage: service names from workspace: some error" ),
468
+ expectedError : fmt .Errorf ("convert environments to deployment stage: get workload names from workspace: some error" ),
469
469
},
470
470
"returns an error if fails to get cross-regional resources" : {
471
471
inApp : & app ,
@@ -478,7 +478,7 @@ stages:
478
478
m .prog .EXPECT ().Stop (log .Ssuccessf (fmtPipelineUpdateResourcesComplete , appName )).Times (1 ),
479
479
480
480
m .ws .EXPECT ().ReadPipelineManifest ().Return ([]byte (content ), nil ),
481
- m .ws .EXPECT ().ServiceNames ().Return ([]string {"frontend" , "backend" }, nil ).Times (1 ),
481
+ m .ws .EXPECT ().WorkloadNames ().Return ([]string {"frontend" , "backend" }, nil ).Times (1 ),
482
482
483
483
// convertStages
484
484
m .envStore .EXPECT ().GetEnvironment (appName , "chicken" ).Return (mockEnv , nil ).Times (1 ),
@@ -501,7 +501,7 @@ stages:
501
501
m .prog .EXPECT ().Stop (log .Ssuccessf (fmtPipelineUpdateResourcesComplete , appName )).Times (1 ),
502
502
503
503
m .ws .EXPECT ().ReadPipelineManifest ().Return ([]byte (content ), nil ),
504
- m .ws .EXPECT ().ServiceNames ().Return ([]string {"frontend" , "backend" }, nil ).Times (1 ),
504
+ m .ws .EXPECT ().WorkloadNames ().Return ([]string {"frontend" , "backend" }, nil ).Times (1 ),
505
505
506
506
// convertStages
507
507
m .envStore .EXPECT ().GetEnvironment (appName , "chicken" ).Return (mockEnv , nil ).Times (1 ),
@@ -527,7 +527,7 @@ stages:
527
527
m .prog .EXPECT ().Stop (log .Ssuccessf (fmtPipelineUpdateResourcesComplete , appName )).Times (1 ),
528
528
529
529
m .ws .EXPECT ().ReadPipelineManifest ().Return ([]byte (content ), nil ),
530
- m .ws .EXPECT ().ServiceNames ().Return ([]string {"frontend" , "backend" }, nil ).Times (1 ),
530
+ m .ws .EXPECT ().WorkloadNames ().Return ([]string {"frontend" , "backend" }, nil ).Times (1 ),
531
531
532
532
// convertStages
533
533
m .envStore .EXPECT ().GetEnvironment (appName , "chicken" ).Return (mockEnv , nil ).Times (1 ),
@@ -556,7 +556,7 @@ stages:
556
556
m .prog .EXPECT ().Stop (log .Ssuccessf (fmtPipelineUpdateResourcesComplete , appName )).Times (1 ),
557
557
558
558
m .ws .EXPECT ().ReadPipelineManifest ().Return ([]byte (content ), nil ),
559
- m .ws .EXPECT ().ServiceNames ().Return ([]string {"frontend" , "backend" }, nil ).Times (1 ),
559
+ m .ws .EXPECT ().WorkloadNames ().Return ([]string {"frontend" , "backend" }, nil ).Times (1 ),
560
560
561
561
// convertStages
562
562
m .envStore .EXPECT ().GetEnvironment (appName , "chicken" ).Return (mockEnv , nil ).Times (1 ),
0 commit comments