Skip to content

Commit a4a31fd

Browse files
author
horike37
committed
Merge branch 'master' of github.com:serverless-operations/serverless-apigateway-service-proxy
2 parents f371099 + 791db20 commit a4a31fd

27 files changed

+19257
-29801
lines changed

.github/workflows/pull_request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
2525
- run: npm install
2626
- run: npm run lint
27-
- run: npm run test -- --coverageDirectory coverage/unit_tests
27+
- run: npm run coverage
2828
- run: npm run integration-test -- --coverageDirectory coverage/integration_tests
2929
env:
3030
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}

.github/workflows/push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
${{ runner.os }}-node-
2121
- run: npm install
2222
- run: npm run lint
23-
- run: npm run test -- --coverageDirectory coverage/unit_tests
23+
- run: npm run coverage
2424
- name: integration-test
2525
if: ${{ github.actor != 'dependabot[bot]' }}
2626
run: npm run integration-test -- --coverageDirectory coverage/integration_tests

__tests__/integration/eventbridge/multiple-integrations/service/serverless.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,4 @@ resources:
6464
YourBus:
6565
Type: AWS::Events::EventBus
6666
Properties:
67-
Name: YourEventBus-${self:provider.stage}-multi
67+
Name: YourEventBus-${sls:stage}-multi

__tests__/integration/eventbridge/single-integration/service/serverless.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ resources:
2323
YourBus:
2424
Type: AWS::Events::EventBus
2525
Properties:
26-
Name: YourEventBus-${self:provider.stage}-single
26+
Name: YourEventBus-${sls:stage}-single

lib/apiGateway/methods.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict'
22

33
const chai = require('chai')
4-
const Serverless = require('serverless/lib/Serverless')
4+
const Serverless = require('serverless/lib/serverless')
55
const AwsProvider = require('serverless/lib/plugins/aws/provider')
66
const ServerlessApigatewayServiceProxy = require('./../index')
77

@@ -13,7 +13,7 @@ describe('#getAllServiceProxies()', () => {
1313
let serverlessApigatewayServiceProxy
1414

1515
beforeEach(() => {
16-
serverless = new Serverless()
16+
serverless = new Serverless({ commands: [], options: {} })
1717
serverless.servicePath = true
1818
serverless.service.service = 'apigw-service-proxy'
1919
const options = {

lib/apiGateway/validate.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict'
22

33
const chai = require('chai')
4-
const Serverless = require('serverless/lib/Serverless')
4+
const Serverless = require('serverless/lib/serverless')
55
const AwsProvider = require('serverless/lib/plugins/aws/provider')
66
const ServerlessApigatewayServiceProxy = require('./../index')
77

@@ -13,7 +13,7 @@ describe('#validateServiceProxies()', () => {
1313
let serverlessApigatewayServiceProxy
1414

1515
beforeEach(() => {
16-
serverless = new Serverless()
16+
serverless = new Serverless({ commands: [], options: {} })
1717
serverless.servicePath = true
1818
serverless.service.service = 'apigw-service-proxy'
1919
const options = {

lib/index.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const chalk = require('chalk')
33
const sinon = require('sinon')
44
const chai = require('chai')
55
const BbPromise = require('bluebird')
6-
const Serverless = require('serverless/lib/Serverless')
6+
const Serverless = require('serverless/lib/serverless')
77
const AwsProvider = require('serverless/lib/plugins/aws/provider')
88
const ServerlessApigatewayServiceProxy = require('./index')
99

@@ -17,7 +17,7 @@ describe('#index()', () => {
1717
let serverlessApigatewayServiceProxy
1818

1919
beforeEach(() => {
20-
serverless = new Serverless()
20+
serverless = new Serverless({ commands: [], options: {} })
2121
serverless.servicePath = true
2222
serverless.service.service = 'apigw-service-proxy'
2323
const options = {

lib/package/dynamodb/compileIamRoleToDynamodb.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict'
22

3-
const Serverless = require('serverless/lib/Serverless')
3+
const Serverless = require('serverless/lib/serverless')
44
const AwsProvider = require('serverless/lib/plugins/aws/provider')
55
const ServerlessApigatewayServiceProxy = require('./../../index')
66

@@ -11,7 +11,7 @@ describe('#compileIamRoleToDynamodb()', () => {
1111
let serverlessApigatewayServiceProxy
1212

1313
beforeEach(() => {
14-
serverless = new Serverless()
14+
serverless = new Serverless({ commands: [], options: {} })
1515
serverless.servicePath = true
1616
serverless.service.service = 'apigw-service-proxy'
1717
const options = {

lib/package/dynamodb/compileMethodsToDynamodb.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict'
22

33
const _ = require('lodash')
4-
const Serverless = require('serverless/lib/Serverless')
4+
const Serverless = require('serverless/lib/serverless')
55
const AwsProvider = require('serverless/lib/plugins/aws/provider')
66
const ServerlessApigatewayServiceProxy = require('./../../index')
77

@@ -71,7 +71,7 @@ describe('#compileMethodsToDynamodb()', () => {
7171
let serverlessApigatewayServiceProxy
7272

7373
beforeEach(() => {
74-
serverless = new Serverless()
74+
serverless = new Serverless({ commands: [], options: {} })
7575
serverless.servicePath = true
7676
serverless.service.service = 'apigw-service-proxy'
7777
const options = {

lib/package/eventbridge/compileEventBridgeServiceProxy.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const sinon = require('sinon')
22
const chai = require('chai')
3-
const Serverless = require('serverless/lib/Serverless')
3+
const Serverless = require('serverless/lib/serverless')
44
const AwsProvider = require('serverless/lib/plugins/aws/provider')
55
const ServerlessApigatewayServiceProxy = require('../../index')
66

@@ -13,7 +13,7 @@ describe('#compileEventBridgeServiceProxy', () => {
1313
let serverlessApigatewayServiceProxy
1414

1515
beforeEach(() => {
16-
serverless = new Serverless()
16+
serverless = new Serverless({ commands: [], options: {} })
1717
serverless.servicePath = true
1818
serverless.service.service = 'apigw-service-proxy'
1919
const options = {

0 commit comments

Comments
 (0)