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

Redid the integration tests using serverless-offline #288

Closed

Conversation

palfrey
Copy link
Contributor

@palfrey palfrey commented Sep 7, 2023

As part of looking at #280, I couldn't figure out how to get the integration tests running without actually deploying things to AWS. This PR redoes them with serverless-offline.

test/integration/test.js Outdated Show resolved Hide resolved
@@ -139,7 +158,8 @@ runtimes.forEach(runtime => {
.expect('Content-Type', /json/);
});

it('root', () => {
// FIXME: Broken currently https://github.com/dougmoscrop/serverless-http/issues/270
it.skip('root', () => {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

See #270

package.json Outdated
@@ -18,7 +18,7 @@
"pretest": "tsc --strict --skipLibCheck --noEmit test/typecheck.ts",
"test": "nyc mocha",
"posttest": "eslint lib test",
"test:integration": "mocha test/integration/test.js",
"test:integration": "mocha test/integration/test.js --exit",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure what's hanging around given the process kills, but doesn't work without this.

@palfrey palfrey marked this pull request as ready for review September 7, 2023 09:02
@dougmoscrop
Copy link
Owner

Interesting, I'm a fan of using the actual AWS service in case there's drift between serverless-offline, but I also see the value in being able to use it - do you think we could support both? npm run integration:offline, npm run integration:aws etc?

@palfrey
Copy link
Contributor Author

palfrey commented Sep 7, 2023

Interesting, I'm a fan of using the actual AWS service in case there's drift between serverless-offline, but I also see the value in being able to use it - do you think we could support both? npm run integration:offline, npm run integration:aws etc?

Added. I've also plugged the offline integration into the new Github actions work.

@dougmoscrop
Copy link
Owner

@palfrey do you mind rebasing?

@palfrey
Copy link
Contributor Author

palfrey commented Sep 21, 2023

This all got merged as part of #286

@palfrey palfrey closed this Sep 21, 2023
@palfrey palfrey deleted the offline-integration-tests branch September 21, 2023 16:57
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