Closed OffensiveBias-08-145 closed 2 years ago
@juanjoDiaz Please let me know if I left out any contribution steps or if there are any test cases you feel need to be added.
It seems that coverage is going down.
Can you check npm run test-with-coverage
and investigate what is not being covered?
It seems that coverage is going down.
Can you check
npm run test-with-coverage
and investigate what is not being covered?
Seems as though L:32
of warmer.js
is uncovered. I tried adding a test for coverage if the roleName
was undefined but it seems to have not resolved the issue.
Any thoughts?
Nice, I just ran into this issue too.
Sorry for the delay. This is almost there.
Just a small issue captured by test coverage. Once you fix it this is good to go.
Optionally set a roleName for the warmers.
Use Case:
Sometimes the default generated Role name exceeds the IAM max name length of 64 characters.
This causes deployments to fail for some users if they do not disable the warmers for deployments.
Example:
Cause:
https://github.com/juanjoDiaz/serverless-plugin-warmup/blob/847b45cc675e8f12ea439b68283417feab562ef9/src/warmer.js#L25-L40
Fix:
Optionally provide warmer RoleName field for two main reasons:
Please let me know if I have missed anything... Thanks!