929 Commits

Author SHA1 Message Date
Philipp Muens
fb33a1412f Update naming of CLI test parameter 2016-05-20 19:35:31 +02:00
Philipp Muens
7f95047a5c Add CLI switch for tests
This switch enables a way to attach additional functionality to the serverless
instance when running tests.
2016-05-20 19:09:12 +02:00
Philipp Muens
93a23ccd9e Refactor tests and fix linting errors
Integration test now reads from the console instead of the file system.
2016-05-20 17:17:42 +02:00
Philipp Muens
37c1861ded Moving test files to new structure 2016-05-20 16:30:35 +02:00
Philipp Muens
bd711ac726 Add serverless binary fix for integration test
Fix the path to the binary so that builds on external machines (such as travis-ci)
won't break.
2016-05-20 16:28:17 +02:00
Philipp Muens
30ee6d1592 Add basic CLI integration
Additionally unit and integration tests for the CLI are added.
2016-05-20 16:28:17 +02:00
Eslam A. Hefnawy
abbc1fa6fd removed the nested/duplicated tests folder 2016-05-20 13:48:03 +02:00
Eslam A. Hefnawy
11065914f1 final linting check 2016-05-20 13:45:45 +02:00
Eslam A. Hefnawy
e5104fc0ea fixed merging conflicts 2016-05-20 13:41:06 +02:00
Eslam A. Hefnawy
9665c54e0d cleaned the codebase and fixed tons of linting issues 2016-05-20 13:33:54 +02:00
Florian Motlik
3b5f2756f3 Merge pull request #1139 from serverless/function-event
added functions and events to Service and tested it
2016-05-20 09:08:58 +02:00
Eslam A. Hefnawy
590fc4dee0 Utils: shortId is now consistent 2016-05-20 08:43:41 +02:00
Eslam A. Hefnawy
b84b3b12b4 fixed shortId test 2016-05-20 08:29:03 +02:00
Eslam A. Hefnawy
bed5b7993f fixed test case name 2016-05-19 21:16:14 +02:00
Eslam A. Hefnawy
e759fe1761 added functions and events to Service and tested it 2016-05-19 21:13:50 +02:00
Eslam A. Hefnawy
6fc76e7fcb commented in tests in all.js 2016-05-19 15:58:51 +02:00
Eslam A. Hefnawy
61ddfc0b55 getVersion test now checks a regex 2016-05-19 15:50:24 +02:00
Eslam A. Hefnawy
6435d39eff fixed conflicts in all.js 2016-05-19 15:19:26 +02:00
Eslam A. Hefnawy
5276b69a31 removed after block 2016-05-19 14:58:32 +02:00
Eslam A. Hefnawy
8b6b1b26b6 added tests for populating with custom syntax 2016-05-19 14:56:37 +02:00
Eslam A. Hefnawy
017fdae0c6 updated and increased test coverage for Utils 2016-05-19 12:24:46 +02:00
Philipp Muens
478e4b97a6 Fix PluginManager issues regarding PR feedback 2016-05-19 09:43:05 +02:00
Philipp Muens
47b3ab27ff Change name of serverless instance to be more explicit 2016-05-18 19:52:26 +02:00
Philipp Muens
ce2c889661 Update naming of "before" and "after" hooks
Update the naming so that it matches the new naming pattern.
"before" and "after" are always prepended so that we don't run into
problems when a function already includes a "before" or "after".
2016-05-18 16:21:12 +02:00
Eslam A. Hefnawy
d9198e1820 some cleanup 2016-05-18 15:59:19 +02:00
Philipp Muens
9b490492a4 Refactor code to match PR comments 2016-05-18 15:34:09 +02:00
Eslam A. Hefnawy
90ca69c1f9 added comment to Service.load() method 2016-05-18 15:02:43 +02:00
Eslam A. Hefnawy
cc6aed7c2f added getVersion test 2016-05-18 14:51:28 +02:00
Eslam A. Hefnawy
2c4b45b18b small fixes for YamlParser tests 2016-05-18 14:31:58 +02:00
Eslam A. Hefnawy
3443efc468 wrap expect throw inside a function 2016-05-18 14:19:32 +02:00
Eslam A. Hefnawy
d5b407f75b added Config class tests 2016-05-18 13:42:58 +02:00
Eslam A. Hefnawy
712e60b621 finished Service class tests 2016-05-18 13:27:59 +02:00
Philipp Muens
23d6c5e6c2 Add tests for not available command 2016-05-18 12:17:20 +02:00
Philipp Muens
6cce90aa76 Rearrange runCommand tests
So that they match the order they are printed on the command line.
2016-05-18 12:00:35 +02:00
Philipp Muens
50eff224a0 Enhance tests to cover runCommand functionality correctly 2016-05-18 11:56:43 +02:00
Philipp Muens
f74f565859 Add intelligent "before" and "after" hook keywording
The PluginManager will run the correct hook even if the capitalization is
wrong ("foo:beforeBar" will be executed as well as "foo:beforebar"). This
way users don't have to deal with the correct capitalization of function names
issue.
2016-05-18 11:10:18 +02:00
Philipp Muens
a3afcd51ab Add support to load service plugins 2016-05-18 10:17:51 +02:00
Philipp Muens
4e2fb39c81 Rename PluginManagement to PluginManager 2016-05-18 10:01:38 +02:00
Philipp Muens
57f7e20d85 Add Promise support for return value of hook functions 2016-05-18 09:32:41 +02:00
Eslam A. Hefnawy
1fdcaf4763 implemented more Service methods and tests and updated populate function 2016-05-17 20:25:22 +02:00
Philipp Muens
7401ab2de7 Add PluginManagement class
Add basic functionality for the PluginManagement class.
Refs #1118 and #1116.
2016-05-17 20:08:24 +02:00
Eslam A. Hefnawy
c7054784a2 basic service and config working 2016-05-17 17:53:27 +02:00
Philipp Muens
7d033e580a Fix Serverless class tests 2016-05-17 08:43:55 +02:00
Eslam A. Hefnawy
0338119a46 further cleaning of new plugin system 2016-05-17 08:43:55 +02:00
Eslam A. Hefnawy
8f6364b250 basic new plugin system 2016-05-17 08:43:55 +02:00
Philipp Muens
e39f186932 Refactor Utils tests and split them up to be independent units 2016-05-14 15:20:23 +02:00
Philipp Muens
2e5736f5b6 Refactor YamlParser class 2016-05-14 10:19:31 +02:00
Philipp Muens
9c3de2afef Refactor Utils class tests and add YamlParser class 2016-05-14 09:39:44 +02:00
Eslam A. Hefnawy
f1de12e780 removed comment 2016-05-13 18:55:41 +07:00
Eslam A. Hefnawy
674404aef9 added yaml parser 2016-05-13 16:55:34 +07:00