This module hosts all the unit and integration test for this repo. Command examples given below are meant to be executed from project root.
To run all tests
$ ./gradlew tests:test
This requires the OpenWhisk system to be setup and running locally.
To just run the unit tests
$ ansible-playbook -i ansible/environments/local ansible/properties.yml
$ ./gradlew tests:testUnit
To just run system basic test against an existing running setup you can pass on the server details and auth via system properties
$ ./gradlew :tests:testSystemBasic -Dwhisk.auth="23bc46b1-71f6-4ed5-8c54-816aa4f8c502:123zO3xZCLrMN6v2BKK1dXYFpXlPkccOFqm12CdAsMgRU4VrNZ9lyGVCGuMDGIwP" -Dwhisk.server=https://localhost -Dopenwhisk.home=`pwd`
Here
whisk.auth
- Auth key for a test user account. For a setup using default credentials it can beguest
key. (envWHISK_AUTH
)whisk.server
- Edge Host Url of the OpenWhisk setup. (envWHISK_SERVER
)opnewhisk.home
- Base directory of your OpenWhisk source tree. (envOPENWHISK_HOME
)
If required you can relax the SSL check by passing -Dwhisk.ssl.relax=true
. All these properties can also be provided via env variables.