5351 Commits

Author SHA1 Message Date
Mariusz Nowak
155eb6c6f2
Fix lint issue 2019-05-14 14:52:03 +02:00
Mariusz Nowak
e666c7f267
Ensure test doesn't depend on env state 2019-05-14 14:45:15 +02:00
Mariusz Nowak
b13239d9b9
Ensure no side effects 2019-05-14 14:39:19 +02:00
Mariusz Nowak
7a76563904
Cleanup process.env handling 2019-05-14 14:24:49 +02:00
Mariusz Nowak
4268dba3be
Ensure no side effects 2019-05-14 14:20:32 +02:00
Mariusz Nowak
0326d19722
Ensure no side effects 2019-05-14 13:47:32 +02:00
exoego
9864b79f56 Merge remote-tracking branch 'upstream/master' into authorizer-claims 2019-05-14 20:46:59 +09:00
Mariusz Nowak
8c9e11d996
Ensure no side effects 2019-05-14 13:37:25 +02:00
Mariusz Nowak
8562bdc2b6
Fix assertion 2019-05-14 12:57:01 +02:00
Mariusz Nowak
5e85ce9b27
Fix restoration of serverless env 2019-05-14 12:56:25 +02:00
Mariusz Nowak
1ce8c21d85
Improve mock setup 2019-05-14 12:54:26 +02:00
Mariusz Nowak
73ea7fd9e0
Improve setTimeout stub
Making it sync breaks bluebird internals
(e.g. detection of unhandled rejections).

With this patch we make sure it's quick enough but still async
2019-05-14 11:45:54 +02:00
Mariusz Nowak
a545414102
Improve tests reliabilty
In real world state does not equal serverless
2019-05-14 09:07:38 +02:00
Philipp Muens
da633da0b9 Update tests to use state rather than serverless object 2019-05-14 08:56:22 +02:00
Philipp Muens
8840da7ae6 Fix typos in error message 2019-05-14 08:51:58 +02:00
Philipp Muens
3d67440261 Reference state rather than serverless object 2019-05-14 08:39:37 +02:00
Mariusz Nowak
94d86c36cd Improve test title 2019-05-14 08:32:38 +02:00
Mariusz Nowak
6675c0e93b Relax REST API validation 2019-05-14 08:32:38 +02:00
Mariusz Nowak
beb8b1ee92 Support custom API name in resolution 2019-05-14 08:30:40 +02:00
Mariusz Nowak
b16e37698b Improve error message 2019-05-14 08:23:06 +02:00
Mariusz Nowak
c8a4a8ba30 Ignore hack when REST API id could not be resolved
Assuming no custom APIGateway settings are applied
2019-05-14 08:23:06 +02:00
Mariusz Nowak
dc60d248b5 Ensure valid restAPIid in tests 2019-05-14 08:23:06 +02:00
Mariusz Nowak
4ab0833fcb Accept custom restApiId only if in directo form 2019-05-14 08:23:06 +02:00
Mariusz Nowak
98ef25bce1 Load hack only if meant to be invoked 2019-05-14 08:23:06 +02:00
Mariusz Nowak
cfa523d91f
Rely on stub(...).callsFake (Upgrade to sinon v2) 2019-05-13 20:43:22 +02:00
Philipp Muens
64ad392c6a Rely on state when updating stage config 2019-05-13 15:58:05 +02:00
Philipp Muens
606e82d85b Fix validation after API Gateway deployment 2019-05-13 15:11:25 +02:00
Mariusz Nowak
c58935009c
Merge pull request #6119 from serverless/test-colors
Support color output in tests
2019-05-13 10:58:49 +02:00
beary
0e0f4eb664 Solve the problem of principal format in China region 2019-05-13 12:58:20 +08:00
Tanner Barlow
cc371f32db Updated tests, docs & template README 2019-05-10 10:27:05 -07:00
Tanner Barlow
9249348a94 Updated template for multiple Azure Functions 2019-05-10 10:05:16 -07:00
exoego
9b4ec28a1e Throw error only if authorizer has non-empty claims 2019-05-11 02:02:55 +09:00
Mariusz Nowak
edc3138ed6
Support color output in tests 2019-05-10 17:18:45 +02:00
Philipp Muens
c6e699a2e9
Merge pull request #6106 from tbarlow12/update-azure-template
Update Azure Functions Template
2019-05-10 13:49:13 +02:00
Mariusz Nowak
8faf6b68d3
Test resolution of restApiId with beyond 500 API's 2019-05-10 12:41:52 +02:00
Mariusz Nowak
097abff794
Test custom restApiId resolution 2019-05-10 12:39:01 +02:00
Mariusz Nowak
bafdbf2877
Reduce configuration redundancy 2019-05-10 12:35:33 +02:00
Mariusz Nowak
4f7a8af742
Ensure tests isolation 2019-05-10 12:24:50 +02:00
Mariusz Nowak
fa8e189d64
Fix restApiId resolution when more than 500 API's 2019-05-10 11:25:14 +02:00
Mariusz Nowak
56c315374e
Fix custom restApiId resolution 2019-05-10 10:46:04 +02:00
Tanner Barlow
d4f9b76280 Remove only from test 2019-05-09 13:08:40 -07:00
Tanner Barlow
1d327e9903 Update docs to include info on function.json 2019-05-09 13:05:10 -07:00
Tanner Barlow
66a02bb356 Update location 2019-05-09 13:00:54 -07:00
Daniel Schep
55cb3d597b fix use of cors: true
validate fails when called a second time with `cors: true` and I dont see
why it has to be called again. the service config doesnt change during a deploy
and its already saved on `this.validated`.
2019-05-09 15:38:45 -04:00
Tanner Barlow
ffd332871e Remove core tools from dev dependencies and add to docs as one-time install 2019-05-09 10:22:02 -07:00
Tanner Barlow
e9b59d4297 Lint fixes 2019-05-09 10:00:02 -07:00
Tanner Barlow
02b8625a79 Remove only from test 2019-05-09 09:47:03 -07:00
Tanner Barlow
16f8a6d9bb Update docs and package.json for local running 2019-05-09 09:37:27 -07:00
Tanner Barlow
28b70f6b66 Updated unit test to reflect new structure 2019-05-09 09:09:30 -07:00
Tanner Barlow
c1f767ad98 Replicate VS Code extension generated template 2019-05-09 07:40:22 -07:00