Skip to content

Commit

Permalink
fix up specs before release to be consistent with new sts workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
gojko committed Jan 8, 2020
1 parent 5e07926 commit 44162a9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions spec/create-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ describe('create', () => {

let workingdir, testRunName, iam, lambda, s3, newObjects, config, logs, apiGatewayPromise, sns;
const defaultRuntime = 'nodejs12.x',
supportedRuntimes = ['nodejs12.x', 'nodejs10.x', 'nodejs8.10'],
supportedRuntimes = ['nodejs12.x', 'nodejs10.x'],
createFromDir = function (dir, logger) {
if (!fs.existsSync(workingdir)) {
fs.mkdirSync(workingdir);
Expand Down Expand Up @@ -1220,7 +1220,7 @@ describe('create', () => {
'lambda.createFunction', 'lambda.setupRequestListeners', 'lambda.updateAlias', 'lambda.createAlias'
]);
expect(logger.getApiCallLogForService('iam', true)).toEqual(['iam.createRole', 'iam.putRolePolicy']);
expect(logger.getApiCallLogForService('sts', true)).toEqual(['sts.getCallerIdentity']);
expect(logger.getApiCallLogForService('sts', true)).toEqual(['sts.getCallerIdentity', 'sts.setupRequestListeners', 'sts.optInRegionalEndpoint']);
expect(logger.getApiCallLogForService('apigateway', true)).toEqual([
'apigateway.createRestApi',
'apigateway.setupRequestListeners',
Expand Down
2 changes: 1 addition & 1 deletion spec/set-version-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ describe('setVersion', () => {
'loading config', 'updating configuration', 'updating versions'
]);
expect(logger.getApiCallLogForService('lambda', true)).toEqual(['lambda.getFunctionConfiguration', 'lambda.setupRequestListeners', 'lambda.publishVersion', 'lambda.updateAlias', 'lambda.createAlias']);
expect(logger.getApiCallLogForService('sts', true)).toEqual(['sts.getCallerIdentity']);
expect(logger.getApiCallLogForService('sts', true)).toEqual(['sts.getCallerIdentity', 'sts.setupRequestListeners', 'sts.optInRegionalEndpoint']);
expect(logger.getApiCallLogForService('apigateway', true)).toEqual([
'apigateway.createDeployment',
'apigateway.setupRequestListeners',
Expand Down
2 changes: 1 addition & 1 deletion spec/update-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ describe('update', () => {
'lambda.getFunctionConfiguration', 'lambda.setupRequestListeners', 'lambda.updateFunctionCode', 'lambda.updateAlias', 'lambda.createAlias'
]);
expect(logger.getApiCallLogForService('iam', true)).toEqual([]);
expect(logger.getApiCallLogForService('sts', true)).toEqual(['sts.getCallerIdentity']);
expect(logger.getApiCallLogForService('sts', true)).toEqual(['sts.getCallerIdentity', 'sts.setupRequestListeners', 'sts.optInRegionalEndpoint']);
expect(logger.getApiCallLogForService('apigateway', true)).toEqual([
'apigateway.getRestApi',
'apigateway.setupRequestListeners',
Expand Down

0 comments on commit 44162a9

Please sign in to comment.