openwhisk-apigateway icon indicating copy to clipboard operation
openwhisk-apigateway copied to clipboard

Need end to end tests

Open taylorking opened this issue 8 years ago • 4 comments

Currently we only have some basic unit tests.

taylorking avatar Jan 19 '17 21:01 taylorking

@ddragosd @mhamann @alexsong93 How are we going to do this? Should I use the existing busted stuff or should I do some kind of thing with container orchestration to spin up a node container and run mocha tests against it? Dealing with complex JSON objects in lua is kind of clunky.

taylorking avatar Jan 20 '17 16:01 taylorking

@taylorking It will probably be the easiest to spin up a container and run end to end tests in there. You can also look at https://github.com/openresty/test-nginx, which is a test framework for OpenResty (See example here: https://github.com/openwhisk/apigateway/blob/develop/api-gateway-config/tests/test_initialization.t). The Busted stuff should be used for doing unit tests for individual functions.

alexsong93 avatar Jan 20 '17 16:01 alexsong93

@taylorking How's the progress looking on this?

alexsong93 avatar Feb 01 '17 18:02 alexsong93

I have made some progress on this, I wanted to get my ICLA in and get some input from @dragosd

taylorking avatar Feb 02 '17 13:02 taylorking