Development
Test
Unit test
If new functions were added, then an appropriate unit test should be added to sigsci_test.lua This test can be run using the following Makefile target: * test
System test
When developing a new feature, new tests must be added to /scripts/run_nginx.sh These tests can be run using the following Makefile targets: * svc_test - ubuntu-16.04 with nginx-1.10.3 * svc_test_ubu1804 - openresty/nginx-1.17.8 * svc_test_or - openresty/nginx-1.15.8
Module testing
Update the system test in module_testing if needed. For example if there is a new feature supported by the agent, there may be a flag to enable the test. Update module_testing/docker-compose.override.yml with the flag for the mtest target. Notice the flag settings under environment
To review the available settings, see func init() in mtest
OpenResty
Information to install or build OpenResty can be found at openresty