openwhisk-apigateway
openwhisk-apigateway copied to clipboard
Need end to end tests
Currently we only have some basic unit tests.
@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 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.
@taylorking How's the progress looking on this?
I have made some progress on this, I wanted to get my ICLA in and get some input from @dragosd