Skip to content

Commit 030a901

Browse files
authored
chore(deps-dev): bump cucumber to v5.1.0 (#1074)
1 parent 5120751 commit 030a901

File tree

72 files changed

+2866
-3060
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+2866
-3060
lines changed

features/acm/step_definitions/acm.js

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
1-
var { ACM } = require("../../../clients/client-acm");
2-
var { defineSupportCode } = require("cucumber");
1+
const { ACM } = require("../../../clients/client-acm");
2+
const { Before } = require("cucumber");
33

4-
defineSupportCode(function({ Before, Given, Then, When }) {
5-
Before({ tags: "@acm" }, function(scenario, callback) {
6-
this.service = new ACM({});
7-
callback();
8-
});
9-
10-
// Add step definitions
4+
Before({ tags: "@acm" }, function(scenario, callback) {
5+
this.service = new ACM({});
6+
callback();
117
});
Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
1-
var { APIGateway } = require("../../../clients/client-api-gateway");
2-
var { defineSupportCode } = require("cucumber");
1+
const { APIGateway } = require("../../../clients/client-api-gateway");
2+
const { Before } = require("cucumber");
33

4-
defineSupportCode(function({ Before, Given, Then, When }) {
5-
Before({ tags: "@apigateway" }, function(scenario, callback) {
6-
this.service = new APIGateway({});
7-
callback();
8-
});
9-
10-
// Add step definitions
4+
Before({ tags: "@apigateway" }, function(scenario, callback) {
5+
this.service = new APIGateway({});
6+
callback();
117
});
Lines changed: 31 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,38 @@
1-
var { AutoScaling } = require("../../../clients/client-auto-scaling");
2-
var { defineSupportCode } = require("cucumber");
1+
const { AutoScaling } = require("../../../clients/client-auto-scaling");
2+
const { Before, Given, Then } = require("cucumber");
33

4-
defineSupportCode(function({ Before, Given, Then, When }) {
5-
Before({ tags: "@autoscaling" }, function(scenario, callback) {
6-
this.service = new AutoScaling({ region: "us-east-1" });
7-
callback();
8-
});
4+
Before({ tags: "@autoscaling" }, function(scenario, callback) {
5+
this.service = new AutoScaling({ region: "us-east-1" });
6+
callback();
7+
});
98

10-
Given(/^I create a launch configuration with name "([^"]*)"$/, function(
11-
name,
12-
callback
13-
) {
14-
var params = {
15-
ImageId: "ami-1624987f",
16-
InstanceType: "m1.small",
17-
LaunchConfigurationName: name
18-
};
19-
this.request(null, "createLaunchConfiguration", params, callback, false);
20-
});
9+
Given(/^I create a launch configuration with name "([^"]*)"$/, function(
10+
name,
11+
callback
12+
) {
13+
const params = {
14+
ImageId: "ami-1624987f",
15+
InstanceType: "m1.small",
16+
LaunchConfigurationName: name
17+
};
18+
this.request(null, "createLaunchConfiguration", params, callback, false);
19+
});
2120

22-
Given(/^I describe launch configurations$/, function(callback) {
23-
this.request(null, "describeLaunchConfigurations", {}, callback);
24-
});
21+
Given(/^I describe launch configurations$/, function(callback) {
22+
this.request(null, "describeLaunchConfigurations", {}, callback);
23+
});
2524

26-
Then(/^the list should contain the launch configuration "([^"]*)"$/, function(
27-
name,
28-
callback
29-
) {
30-
this.assert.contains(this.data.LaunchConfigurations, function(
31-
configuration
32-
) {
33-
return configuration.LaunchConfigurationName === name;
34-
});
35-
callback();
25+
Then(/^the list should contain the launch configuration "([^"]*)"$/, function(
26+
name,
27+
callback
28+
) {
29+
this.assert.contains(this.data.LaunchConfigurations, function(configuration) {
30+
return configuration.LaunchConfigurationName === name;
3631
});
32+
callback();
33+
});
3734

38-
Then(/^I delete the launch configuration "([^"]*)"$/, function(
39-
name,
40-
callback
41-
) {
42-
var params = { LaunchConfigurationName: name };
43-
this.request(null, "deleteLaunchConfiguration", params, callback);
44-
});
35+
Then(/^I delete the launch configuration "([^"]*)"$/, function(name, callback) {
36+
const params = { LaunchConfigurationName: name };
37+
this.request(null, "deleteLaunchConfiguration", params, callback);
4538
});
Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,20 @@
1-
var { CloudFormation } = require("../../../clients/client-cloudformation");
2-
var { defineSupportCode } = require("cucumber");
1+
const { CloudFormation } = require("../../../clients/client-cloudformation");
2+
const { Before, Given } = require("cucumber");
33

4-
defineSupportCode(function({ Before, Given, Then, When }) {
5-
Before({ tags: "@cloudformation" }, function(scenario, callback) {
6-
this.service = new CloudFormation({});
7-
callback();
8-
});
4+
Before({ tags: "@cloudformation" }, function(scenario, callback) {
5+
this.service = new CloudFormation({});
6+
callback();
7+
});
98

10-
Given(
11-
/^I create a CloudFormation stack with name prefix "([^"]*)"$/,
12-
function(prefix, callback) {
13-
this.stackName = this.uniqueName(prefix);
14-
this.templateBody = '{"Resources":{"member":{"Type":"AWS::SQS::Queue"}}}';
15-
var params = {
16-
TemplateBody: this.templateBody,
17-
StackName: this.stackName
18-
};
19-
this.request(null, "createStack", params, callback, false);
20-
}
21-
);
9+
Given(/^I create a CloudFormation stack with name prefix "([^"]*)"$/, function(
10+
prefix,
11+
callback
12+
) {
13+
this.stackName = this.uniqueName(prefix);
14+
this.templateBody = '{"Resources":{"member":{"Type":"AWS::SQS::Queue"}}}';
15+
const params = {
16+
TemplateBody: this.templateBody,
17+
StackName: this.stackName
18+
};
19+
this.request(null, "createStack", params, callback, false);
2220
});
Lines changed: 70 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -1,82 +1,80 @@
1-
var { CloudFront } = require("../../../clients/client-cloudfront");
2-
var { defineSupportCode } = require("cucumber");
1+
const { CloudFront } = require("../../../clients/client-cloudfront");
2+
const { Before, Given, Then, When } = require("cucumber");
33

4-
defineSupportCode(function({ Before, Given, Then, When }) {
5-
var createParams = {
6-
CallerReference: "",
7-
Aliases: {
8-
Quantity: 0
9-
},
10-
DefaultRootObject: "",
11-
Origins: {
12-
Items: [
13-
{
14-
Id: "origin",
15-
DomainName: "example.com",
16-
CustomOriginConfig: {
17-
HTTPPort: 80,
18-
HTTPSPort: 443,
19-
OriginProtocolPolicy: "match-viewer"
20-
}
21-
}
22-
],
23-
Quantity: 1
24-
},
25-
DefaultCacheBehavior: {
26-
TargetOriginId: "origin",
27-
ForwardedValues: {
28-
QueryString: false,
29-
Cookies: {
30-
Forward: "all"
4+
const createParams = {
5+
CallerReference: "",
6+
Aliases: {
7+
Quantity: 0
8+
},
9+
DefaultRootObject: "",
10+
Origins: {
11+
Items: [
12+
{
13+
Id: "origin",
14+
DomainName: "example.com",
15+
CustomOriginConfig: {
16+
HTTPPort: 80,
17+
HTTPSPort: 443,
18+
OriginProtocolPolicy: "match-viewer"
3119
}
32-
},
33-
TrustedSigners: {
34-
Items: [],
35-
Enabled: false,
36-
Quantity: 0
37-
},
38-
ViewerProtocolPolicy: "allow-all",
39-
MinTTL: 0
20+
}
21+
],
22+
Quantity: 1
23+
},
24+
DefaultCacheBehavior: {
25+
TargetOriginId: "origin",
26+
ForwardedValues: {
27+
QueryString: false,
28+
Cookies: {
29+
Forward: "all"
30+
}
4031
},
41-
CacheBehaviors: {
32+
TrustedSigners: {
4233
Items: [],
43-
Quantity: 0
44-
},
45-
Comment: "",
46-
Logging: {
4734
Enabled: false,
48-
Bucket: "invalidbucket.s3.amazonaws.com",
49-
Prefix: "prefix",
50-
IncludeCookies: false
35+
Quantity: 0
5136
},
52-
PriceClass: "PriceClass_All",
53-
Enabled: false
54-
};
37+
ViewerProtocolPolicy: "allow-all",
38+
MinTTL: 0
39+
},
40+
CacheBehaviors: {
41+
Items: [],
42+
Quantity: 0
43+
},
44+
Comment: "",
45+
Logging: {
46+
Enabled: false,
47+
Bucket: "invalidbucket.s3.amazonaws.com",
48+
Prefix: "prefix",
49+
IncludeCookies: false
50+
},
51+
PriceClass: "PriceClass_All",
52+
Enabled: false
53+
};
5554

56-
Before({ tags: "@cloudfront" }, function(scenario, callback) {
57-
this.service = new CloudFront({});
58-
this.cfCreateParams = createParams;
59-
callback();
60-
});
55+
Before({ tags: "@cloudfront" }, function(scenario, callback) {
56+
this.service = new CloudFront({});
57+
this.cfCreateParams = createParams;
58+
callback();
59+
});
6160

62-
Given(
63-
/^I create a CloudFront distribution with name prefix "([^"]*)"$/,
64-
function(prefix, callback) {
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-
}
77-
);
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+
);
7877

79-
Given(/^I list CloudFront distributions$/, function(callback) {
80-
this.request(null, "listDistributions", {}, callback);
81-
});
78+
Given(/^I list CloudFront distributions$/, function(callback) {
79+
this.request(null, "listDistributions", {}, callback);
8280
});
Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,21 @@
1-
var { CloudSearch } = require("../../../clients/client-cloudsearch");
2-
var { defineSupportCode } = require("cucumber");
1+
const { CloudSearch } = require("../../../clients/client-cloudsearch");
2+
const { Before, Given } = require("cucumber");
33

4-
defineSupportCode(function({ Before, Given, Then, When }) {
5-
Before({ tags: "@cloudsearch" }, function(scenario, callback) {
6-
this.service = new CloudSearch({});
7-
callback();
8-
});
4+
Before({ tags: "@cloudsearch" }, function(scenario, callback) {
5+
this.service = new CloudSearch({});
6+
callback();
7+
});
98

10-
Given(/^I create a domain with name prefix "([^"]*)"$/, function(
11-
prefix,
12-
callback
13-
) {
14-
this.domainName = this.uniqueName(prefix);
15-
this.request(
16-
null,
17-
"createDomain",
18-
{ DomainName: this.domainName },
19-
callback,
20-
false
21-
);
22-
});
9+
Given(/^I create a domain with name prefix "([^"]*)"$/, function(
10+
prefix,
11+
callback
12+
) {
13+
this.domainName = this.uniqueName(prefix);
14+
this.request(
15+
null,
16+
"createDomain",
17+
{ DomainName: this.domainName },
18+
callback,
19+
false
20+
);
2321
});
Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,21 @@
1-
var { CloudTrail } = require("../../../clients/client-cloudtrail");
2-
var { defineSupportCode } = require("cucumber");
1+
const { CloudTrail } = require("../../../clients/client-cloudtrail");
2+
const { Before, Given } = require("cucumber");
33

4-
defineSupportCode(function({ Before, Given, Then, When }) {
5-
Before({ tags: "@cloudtrail" }, function(scenario, callback) {
6-
this.service = new CloudTrail({});
7-
callback();
8-
});
4+
Before({ tags: "@cloudtrail" }, function(scenario, callback) {
5+
this.service = new CloudTrail({});
6+
callback();
7+
});
98

10-
Given(/^I describe trails$/, function(callback) {
11-
this.request(null, "describeTrails", {}, callback);
12-
});
9+
Given(/^I describe trails$/, function(callback) {
10+
this.request(null, "describeTrails", {}, callback);
11+
});
1312

14-
Given(/^I create a trail with an invalid name$/, function(callback) {
15-
this.request(
16-
null,
17-
"createTrail",
18-
{ Name: "", S3BucketName: "" },
19-
callback,
20-
false
21-
);
22-
});
13+
Given(/^I create a trail with an invalid name$/, function(callback) {
14+
this.request(
15+
null,
16+
"createTrail",
17+
{ Name: "", S3BucketName: "" },
18+
callback,
19+
false
20+
);
2321
});

0 commit comments

Comments
 (0)