File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -264,7 +264,7 @@ func TestAWSMachinePoolValidateCreate(t *testing.T) {
264
264
},
265
265
},
266
266
},
267
- wantErr : true ,
267
+ wantErrToContain : ptr. To [ string ]( "Valid values are" ) ,
268
268
},
269
269
{
270
270
name : "with MarketType empty value provided" ,
@@ -275,7 +275,7 @@ func TestAWSMachinePoolValidateCreate(t *testing.T) {
275
275
},
276
276
},
277
277
},
278
- wantErr : false ,
278
+ wantErrToContain : nil ,
279
279
},
280
280
{
281
281
name : "with MarketType Spot and CapacityReservationID value provided" ,
@@ -287,7 +287,7 @@ func TestAWSMachinePoolValidateCreate(t *testing.T) {
287
287
},
288
288
},
289
289
},
290
- wantErr : true ,
290
+ wantErrToContain : ptr. To [ string ]( "cannot be set to 'Spot' when CapacityReservationID is specified" ) ,
291
291
},
292
292
{
293
293
name : "with CapacityReservationID and SpotMarketOptions value provided" ,
@@ -299,7 +299,7 @@ func TestAWSMachinePoolValidateCreate(t *testing.T) {
299
299
},
300
300
},
301
301
},
302
- wantErr : true ,
302
+ wantErrToContain : ptr. To [ string ]( "cannot be set to when CapacityReservationID is specified" ) ,
303
303
},
304
304
305
305
{
You can’t perform that action at this time.
0 commit comments