drexler
5e425a7f84
test: update covering tests
2019-09-11 07:49:19 -04:00
Daniel Schep
e2e9a77c46
alternative approach to creds fail fast taht includes metadata check
2019-07-22 14:59:49 -04:00
Mariusz Nowak
4944f471b1
Prettify
2019-06-26 12:43:01 +02:00
Daniel Schep
c0a48b1ef7
remove use of Object.entries & String.includes & Array.includes
2019-01-16 07:32:07 -05:00
Daniel Schep
de67fa5f58
Convert logging to return a promise so that #5349 no longer causes #5497
2018-11-19 11:08:15 -05:00
aofry
4873ebf1c3
add aws logs check if start time not given then only bring the last 10 minutes.
...
If tail is given with no start time then start 10 sec in the past.
2018-05-17 16:07:41 +03:00
Erik Erikson
ca5ba8daac
Remove unused parameters in platform.js (and deal with consequences)
...
Add explicit use of options where they were defined.
2017-12-12 11:59:08 -08:00
Frank Schmid
81c896bc12
Removed reintroduction of stage+region in request. Added options.
...
Delete bucket was still using them
Hopefully all :)
Further test fixes.
.... worked too long yesterday
Fixed Variable tests
Remove not used parameters from request() and add options with warning
2017-12-11 12:33:35 +01:00
Dan Root
add4951a4b
Better handling for AWS Lambda logging lines.
...
Refactor duplicated log line formatting from invoke and logs plugins
into utils/formatLambdaLogEvent.js and add tests.
Make log line formatter understand default python logging module output
from Lambda functions.
Add payload output testing to invoke plugin.
Fixes #1796 and #3594
2017-05-19 12:42:02 -07:00
Doug Moscrop
1012c351b7
add sinon-bluebird to make promises in tests a bit cleaner
2017-02-08 12:59:18 -05:00
Erik Erikson
6cc5d1364a
Merge branch 'master' into logical-ids-missed-details
2016-11-22 13:26:28 -08:00
Philipp Muens
8aad2372eb
Refactor test structure
...
So that all tests follow the *.test.js pattern and globs are used to find test files.
2016-11-22 12:49:26 +01:00
Erik Erikson
749204d962
Logical IDs Centralization Missed Details
...
A few places where names had been hard coded were missed in #2679 . This pull request attempts to get the rest of these (although I fear a few more exist).
The hard coding of the logical ids for the role and policy were removed from the json files defining those values.
Additionally, the path and name of the default role and policy were extrapolated as were log group and api gateway names.
The new role path, role name, and policy name values were used to amend the static role and policy.
Commentary in the centralization file was re-added.
Tests were updated
No function or documentation changes occurred by these changes
2016-11-15 17:22:59 -08:00
Nik Graf
704e1b0f95
fix tests and remove debugging statements
2016-10-20 19:46:12 +02:00
Nik Graf
0e722ba879
parse datestring as UTC since AWS uses UTC internally
2016-10-20 19:45:56 +02:00
Nik Graf
fb9847e885
add debug statements
2016-10-20 18:46:12 +02:00
Nik Graf
4835e6ef52
fix remove bucket tests
2016-10-20 16:08:03 +02:00
Nik Graf
af9d058910
fix tests for logs
2016-10-20 15:52:17 +02:00
Philipp Muens
c273abec68
Move AwsProvider plugin into aws directory
2016-10-19 08:32:06 +02:00
Philipp Muens
c7b7472a48
Update provider properties in plugins
2016-10-19 08:32:06 +02:00
Philipp Muens
df7692ac80
Introduce AwsProvider plugin
2016-10-19 08:32:06 +02:00
Philipp Muens
a7a04eb6f6
Closes #2292 - Remove outdated README.md files
2016-10-11 20:21:27 -07:00
Nick Chisiu
16aa6581ab
fix #1854 - update npm devDependencies packages ( #1879 )
...
* fix #1854 - added latest version of eslint-config-airbnb-base package
* fix #1854 - added latest npm shrinkwrap scheme
* fix #1854 - added latest npm coveralls package
* fix #1854 - added latest npm eslint package
* fix #1854 - added latest npm eslint-config-airbnb package
* fix #1854 - added latest npm eslint-plugin-import package
* fix #1854 - added latest npm eslint-plugin-jsx-a11y package
* fix #1854 - added latest npm eslint-plugin-react package
* fix #1854 - fixed estlint new-parens errors for integration test
* fix #1854 - fixed estlint new-parens errors for yaml parsers tests
* fix #1854 - fixed estlint max-len errors for util tests
* fix #1854 - disabled no-extraneous-dependencies on eslintrc for NodeJS 4 incapability on this feature
* fix #1854 - fixed eslint new-parens errors for Service tests
* fix #1854 - fixed eslint new-parens errors for Serverless tests
* fix #1854 - fixed eslint new-parens errors for plugin manager tests
* fix #1854 - fixed eslint new-parens errors for plugin tracking tests
* fix #1854 - fixed eslint new-parens errors for plugin package zipService lib
* fix #1854 - fixed eslint new-parens errors for plugin package zipService tests
* fix #1854 - fixed eslint trailing spaces errors for plugin package zipService lib
* fix #1854 - fixed eslint new-parens errors for plugin package cleanup tests
* fix #1854 - fixed eslint new-parens errors for plugin create tests
* fix #1854 - fixed eslint dot same line expectation error on plugin aws logs index
* fix #1854 - fixed eslint operator assignment error on plugin aws logs index
* fix #1854 - fixed eslint dot location error on plugin aws invoke tests
* fix #1854 - fixed eslint new-parens error on plugin aws invoke tests
* fix #1854 - fixed eslint new-parens error on plugin aws deployFunction tests
* fix #1854 - fixed eslint new-parens error on plugin aws deploy uploadDeploymentPackage tests
* fix #1854 - fixed eslint new-parens error on plugin aws deploy updateStack tests
* fix #1854 - fixed eslint new-parens error on plugin aws deploy createStack tests
* fix #1854 - fixed eslint new-parens error on plugin aws deploy apiGateway lib deployment
* fix #1854 - fixed eslint unary typeof whitespace req error on Serverless Service class
* fix #1854 - fixed eslint unary typeof whitespace req error on Serverless Service class ( second fix )
* fix #1854 - fixed eslint no-lonely-if req error on Serverless Service class
* fix #1854 - disabled react/require-extension on eslintrc because it's deprecated
* fix #1854 - AwsCompileApigEvents #constructor() should resolve if no functions are given:
Error: Resolution method is overspecified. Specify a callback *or* return a Promise; not both.
* fix #1854 - createStack #postCreate() should resolve:
Error: Resolution method is overspecified. Specify a callback *or* return a Promise; not both.
* fix #1854 - emptyS3Bucket #deleteObjects() should resolve if objectsInBucket is empty:
Error: Resolution method is overspecified. Specify a callback *or* return a Promise; not both.
* fix #1854 - AwsInvoke #extendedValidate() should resolve if path is not given:
Error: Resolution method is overspecified. Specify a callback *or* return a Promise; not both.
* fix #1854 - #cleanup() should resolve if the .serverless directory is not present:
Error: Resolution method is overspecified. Specify a callback *or* return a Promise; not both.
* fix #1854 -#validate() should resolve if servicePath is given:
Error: Resolution method is overspecified. Specify a callback *or* return a Promise; not both.
* fix #1854 - Service #load() should resolve if no servicePath is found:
Error: Resolution method is overspecified. Specify a callback *or* return a Promise; not both.
* fix #1854 - added latest mocha package
* fix #1854 - added latest sinon npm package
* fix #1854 - serverless/lib/plugins/aws/deploy/tests/createStack.js 136:48 error Missing semicolon semi
* fix #1854 - serverless/lib/plugins/package/tests/cleanup.js 35:7 error Missing semicolon semi
* fix #1854 - serverless/lib/plugins/package/tests/validate.js 22:49 error Missing semicolon semi
* fix #1854 - added latest npm shrinkwrap
* fix #1854 - fixed no-extra-boolean-cast eslint error on aws deploy apiGateway methods
* fix #1854 - fixed new-parens eslint error on serverless tests for Service class
2016-08-18 11:51:09 +02:00
Philipp Muens
a0f7bb20d1
Add tests to increase test coverage
2016-08-08 08:27:26 +02:00
Eslam A. Hefnawy
f9b8f3d447
updated invoke and log and fixed tests
2016-08-04 22:24:58 +09:00
Eslam A. Hefnawy
b61a8af935
increased precision for logging tailing option
2016-07-29 22:16:16 +09:00
Eslam A. Hefnawy
d3e0bce4fc
logging docs enhancements and updates to startTime option
2016-07-29 20:40:54 +09:00
Eslam A. Hefnawy
98ec45ce7e
added tests and docs for logging plugin
2016-07-29 20:40:54 +09:00
Eslam A. Hefnawy
effae1db1d
added logs plugin
2016-07-29 20:40:54 +09:00