Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update acceptance test runtime from node8 to node10 #432

Merged
merged 3 commits into from Dec 4, 2019

Conversation

ceilfors
Copy link
Collaborator

@ceilfors ceilfors commented Dec 3, 2019

This PR also create the required apikey parameter automatically

The parameter is being created in acceptance.spec.js because CloudFormation does not support SecretString creation, obviously due to security reason.
In our case, as this is not really a secret, it is safe for us to have the plain text secret in our test.

This closes #418

The parameter is being created in acceptance.spec.js because CloudFormation does not support SecretString creation, obviously due to security reason.
In our case, as this is not really a secret, it is safe for us to have the plain text secret in our test.

This closes #418
"deploy:8": "AWS_REGION=eu-west-1 NODE_RUNTIME=nodejs8.10 NODE_VERSION=node8 sls deploy",
"remove": "npm run remove:8",
"remove:8": "AWS_REGION=eu-west-1 NODE_RUNTIME=nodejs8.10 NODE_VERSION=node8 sls remove"
"test": "npm run test:10",
Copy link
Contributor

@hugosenari hugosenari Dec 4, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe, now we could use version as number (ie: 10) NODE_MAJOR=10

runtime: nodejs${env:NODE_MAJOR, '10' }.x
stage: node${env:NODE_MAJOR, '10' }
{
  "test": "jest /acceptance-test",
  "test:10": "NODE_MAJOR=10 npm test",
  "deploy": "sls deploy",
  "deploy:10": "NODE_MAJOR=10 npm run deploy",
  "remove": "sls remove",
  "remove:10": "NODE_MAJOR=10 npm run remove"
}

We need set default value to SERVERLESS_STAGE.

@hugosenari
Copy link
Contributor

Add some discussion, maybe for other PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants