Skip to content

Commit

Permalink
Added unit test for ANY method type with stage configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Frank Schmid committed Nov 21, 2017
1 parent 7cec90b commit b0f9295
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/stackops/apiGateway.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,17 @@ describe('API Gateway', () => {
}
]
},
functionC: {
handler: 'functionB.handler',
events: [
{
http: {
method: 'ANY',
path: '/funcC'
}
},
]
},
}
};
const expectedMethodSettings = [
Expand All @@ -246,6 +257,11 @@ describe('API Gateway', () => {
HttpMethod: 'UPDATE',
ResourcePath: '/~1funcB~1update'
},
{
LoggingLevel: 'INFO',
HttpMethod: '*',
ResourcePath: '/~1funcC'
},
];

awsAlias.serverless.service = new awsAlias.serverless.classes.Service(awsAlias.serverless, service);
Expand Down

0 comments on commit b0f9295

Please sign in to comment.