Skip to content

Conversation

erezrokah
Copy link
Collaborator

Fixes #17

Per @theburningmonk suggestion in the issue above and here.

Took longer than expected as I added more integrations tests and ran into a stability issue with the tests - they were passing all the time when running with one worker, but failing sometimes with multiple workers.

I believe this is due to the serverless deploy command running from the root directory for all the tests, so the .serverless directory got deleted/overwritten occasionally.

The solution was to set a different working directory for each test using the cwd option of the execSync function.

I searched for a way to change the default .serverless directory but from looking at the framework code it seems hard-coded.

Please let me know if the integration tests explanation makes sense :)

Copy link
Collaborator

@horike37 horike37 left a comment

Choose a reason for hiding this comment

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

@erezrokah
Thank you for this again 👍 Totally agree with @theburningmonk suggestion.

I believe this is due to the serverless deploy command running from the root directory for all the >tests, so the .serverless directory got deleted/overwritten occasionally.

The solution was to set a different working directory for each test using the cwd option of the >execSync function.

Make sense. Yes, the framework core don't have a functionality to change the directory, so using the option would be best way.

@horike37 horike37 merged commit 3a997e4 into serverless-operations:master Aug 17, 2019
@erezrokah erezrokah deleted the fix/limit_permissions branch August 20, 2019 09:53
@horike37
Copy link
Collaborator

🎉 This PR is included in version 1.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

SQS permissions are too broad
2 participants