Skip to content

Commit b5f038b

Browse files
authored
chore(deps-dev): bump cucumber to 6.0.5 (#1075)
1 parent 030a901 commit b5f038b

File tree

18 files changed

+146
-112
lines changed

18 files changed

+146
-112
lines changed

features/autoscaling/step_definitions/autoscaling.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Before({ tags: "@autoscaling" }, function(scenario, callback) {
66
callback();
77
});
88

9-
Given(/^I create a launch configuration with name "([^"]*)"$/, function(
9+
Given("I create a launch configuration with name {string}", function(
1010
name,
1111
callback
1212
) {

features/cloudformation/step_definitions/cloudformation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Before({ tags: "@cloudformation" }, function(scenario, callback) {
66
callback();
77
});
88

9-
Given(/^I create a CloudFormation stack with name prefix "([^"]*)"$/, function(
9+
Given("I create a CloudFormation stack with name prefix {string}", function(
1010
prefix,
1111
callback
1212
) {

features/cloudfront/step_definitions/cloudfront.js

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -58,22 +58,22 @@ Before({ tags: "@cloudfront" }, function(scenario, callback) {
5858
callback();
5959
});
6060

61-
Given(
62-
/^I create a CloudFront distribution with name prefix "([^"]*)"$/,
63-
function(prefix, callback) {
64-
this.cfName = this.uniqueName(prefix);
65-
this.cfCreateParams.CallerReference = this.cfName;
66-
this.cfCreateParams.Origins.Items[0].Id =
67-
this.cfName === "" ? "origin" : "InvalidOrigin";
68-
this.request(
69-
null,
70-
"createDistribution",
71-
{ DistributionConfig: this.cfCreateParams },
72-
callback,
73-
false
74-
);
75-
}
76-
);
61+
Given("I create a CloudFront distribution with name prefix {string}", function(
62+
prefix,
63+
callback
64+
) {
65+
this.cfName = this.uniqueName(prefix);
66+
this.cfCreateParams.CallerReference = this.cfName;
67+
this.cfCreateParams.Origins.Items[0].Id =
68+
this.cfName === "" ? "origin" : "InvalidOrigin";
69+
this.request(
70+
null,
71+
"createDistribution",
72+
{ DistributionConfig: this.cfCreateParams },
73+
callback,
74+
false
75+
);
76+
});
7777

7878
Given(/^I list CloudFront distributions$/, function(callback) {
7979
this.request(null, "listDistributions", {}, callback);

features/cloudsearch/step_definitions/cloudsearch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Before({ tags: "@cloudsearch" }, function(scenario, callback) {
66
callback();
77
});
88

9-
Given(/^I create a domain with name prefix "([^"]*)"$/, function(
9+
Given("I create a domain with name prefix {string}", function(
1010
prefix,
1111
callback
1212
) {

features/cloudwatch/step_definitions/cloudwatch.js

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ Before({ tags: "@cloudwatch" }, function(scenario, callback) {
66
callback();
77
});
88

9-
Given(/^I create a CloudWatch alarm with (prefix|name) "([^"]*)"$/, function(
10-
prefix,
9+
Given("I create a CloudWatch alarm with prefix {string}", function(
1110
name,
1211
callback
1312
) {
@@ -23,19 +22,36 @@ Given(/^I create a CloudWatch alarm with (prefix|name) "([^"]*)"$/, function(
2322
Threshold: 50.0
2423
};
2524

26-
if (prefix === "prefix") {
27-
this.cloudWatchAlarm.AlarmName += "-" + timestamp;
28-
}
25+
this.cloudWatchAlarm.AlarmName += "-" + timestamp;
2926

3027
this.request(
3128
null,
3229
"putMetricAlarm",
3330
this.cloudWatchAlarm,
3431
callback,
35-
prefix === "name" ? false : undefined
32+
undefined
3633
);
3734
});
3835

36+
Given("I create a CloudWatch alarm with name {string}", function(
37+
name,
38+
callback
39+
) {
40+
const timestamp = new Date().getTime();
41+
this.cloudWatchAlarm = {
42+
AlarmName: name,
43+
MetricName: "aws-sdk-js-metric-" + timestamp,
44+
Namespace: "aws-sdk-js-namespace" + timestamp,
45+
ComparisonOperator: "GreaterThanThreshold",
46+
EvaluationPeriods: 5,
47+
Period: 60,
48+
Statistic: "Average",
49+
Threshold: 50.0
50+
};
51+
52+
this.request(null, "putMetricAlarm", this.cloudWatchAlarm, callback, false);
53+
});
54+
3955
Given(/^I list the CloudWatch alarms$/, function(callback) {
4056
const params = {
4157
MetricName: this.cloudWatchAlarm.MetricName,

features/cloudwatchlogs/step_definitions/cloudwatchlogs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Before({ tags: "@cloudwatchlogs" }, function(scenario, callback) {
66
callback();
77
});
88

9-
Given(/^I create a CloudWatch logGroup with prefix "([^"]*)"$/, function(
9+
Given("I create a CloudWatch logGroup with prefix {string}", function(
1010
prefix,
1111
callback
1212
) {

features/cognitoidentity/step_definitions/cognitoidentity.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Before({ tags: "@cognitoidentity" }, function(scenario, callback) {
66
callback();
77
});
88

9-
Given(/^I create a Cognito identity pool with prefix "([^"]*)"$/, function(
9+
Given("I create a Cognito identity pool with prefix {string}", function(
1010
prefix,
1111
callback
1212
) {

features/datapipeline/step_definitions/datapipeline.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Before({ tags: "@datapipeline" }, function(scenario, callback) {
66
callback();
77
});
88

9-
Given(/^I create a Data Pipeline with name prefix "([^"]*)"$/, function(
9+
Given("I create a Data Pipeline with name prefix {string}", function(
1010
prefix,
1111
callback
1212
) {

features/ec2/step_definitions/ec2.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,7 @@ Then(/^the EC2 endpoint for "([^"]*)" should be "([^"]*)"$/, function(
6060
callback();
6161
});
6262

63-
Given(/^I describe the EC2 instance "([^"]*)"$/, function(
64-
instanceId,
65-
callback
66-
) {
63+
Given("I describe the EC2 instance {string}", function(instanceId, callback) {
6764
this.request(
6865
null,
6966
"describeInstances",

features/elasticache/step_definitions/elasticache.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Before({ tags: "@elasticache" }, function(scenario, callback) {
66
callback();
77
});
88

9-
Given(/^I create a cache parameter group with name prefix "([^"]*)"$/, function(
9+
Given("I create a cache parameter group with name prefix {string}", function(
1010
prefix,
1111
callback
1212
) {

features/elasticbeanstalk/step_definitions/elasticbeanstalk.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Before({ tags: "@elasticbeanstalk" }, function(scenario, callback) {
99
});
1010

1111
Given(
12-
/^I create an Elastic Beanstalk application with name prefix "([^"]*)"$/,
12+
"I create an Elastic Beanstalk application with name prefix {string}",
1313
function(prefix, callback) {
1414
this.appName = this.uniqueName(prefix);
1515
const params = { ApplicationName: this.appName };
@@ -18,7 +18,7 @@ Given(
1818
);
1919

2020
Given(
21-
/^I create an Elastic Beanstalk application version with label "([^"]*)"$/,
21+
"I create an Elastic Beanstalk application version with label {string}",
2222
function(label, callback) {
2323
this.appVersion = label;
2424
const params = {

features/elastictranscoder/step_definitions/elastictranscoder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Before({ tags: "@elastictranscoder" }, function(scenario, callback) {
1313
});
1414

1515
Given(
16-
/^I create an Elastic Transcoder pipeline with name prefix "([^"]*)"$/,
16+
"I create an Elastic Transcoder pipeline with name prefix {string}",
1717
function(prefix, callback) {
1818
this.pipelineName = this.uniqueName(prefix);
1919
const params = {

features/rds/step_definitions/rds.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Before({ tags: "@rds" }, function(scenario, callback) {
77
callback();
88
});
99

10-
Given(/^I create a RDS security group with prefix name "([^"]*)"$/, function(
10+
Given("I create a RDS security group with prefix name {string}", function(
1111
prefix,
1212
callback
1313
) {

features/redshift/step_definitions/redshift.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Before({ tags: "@redshift" }, function(scenario, callback) {
77
});
88

99
Given(
10-
/^I create a Redshift cluster parameter group with prefix name "([^"]*)"$/,
10+
"I create a Redshift cluster parameter group with prefix name {string}",
1111
function(prefix, callback) {
1212
this.parameterGroupName = this.uniqueName(prefix);
1313
const params = {

features/s3/objects.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ Feature: Working with Objects in S3
149149

150150
@error
151151
Scenario: Error handling
152-
Given I put "data" to the invalid key ""
152+
Given I put "data" to the key ""
153153
Then the error message should be:
154154
"""
155155
Empty value provided for input HTTP label: Key.

features/s3/step_definitions/objects.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,7 @@ function getSignedUrl(client, command, params, callback) {
3333
});
3434
}
3535

36-
When(/^I put "([^"]*)" to the(?: invalid)? key "([^"]*)"$/, function(
37-
data,
38-
key,
39-
next
40-
) {
36+
When("I put {string} to the key {string}", function(data, key, next) {
4137
const params = {
4238
Bucket: this.sharedBucket,
4339
Key: key,
@@ -97,7 +93,7 @@ When(
9793
}
9894
);
9995

100-
Then(/^the object "([^"]*)" should contain "([^"]*)"$/, function(
96+
Then("the object {string} should contain {string}", function(
10197
key,
10298
contents,
10399
next

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"@types/fs-extra": "^8.0.1",
3939
"@types/jest": "^25.1.4",
4040
"codecov": "^3.4.0",
41-
"cucumber": "5.1.0",
41+
"cucumber": "^6.0.5",
4242
"fs-extra": "^8.1.0",
4343
"generate-changelog": "^1.7.1",
4444
"husky": "^4.2.3",

0 commit comments

Comments
 (0)