ngx_http_voms_module Testing
Description
Setup and files to test the ngx_http_voms_module are contained in the t
folder. The Openresty data-driven testsuite has been adopted for testing.
Test fixture setup
Proxy certificates are in the certs
folder (see README.md for further details), while trust-anchors (e.g. igi-test-ca.pem) are contained in trust-anchors
.
Nginx server certificate and key are nginx_voms_example.cert.pem and nginx_voms_example_key.pem, respectively, and they are contained in certs
.
To perform correctly the VOMS AC validation, a *.lsc or *.pem file is needed, see VOMS client 3.3.0 User Guide for further details. The voms.example.lsc can be found in vomsdir/test.vo
.
Running Tests
To run the tests made available in t
just type
prove -v
from t
' s parent directory.
Using the docker image provided to exploit Openresty in the Storm2 project (see README.md for further details):
cp -r t /tmp
cd /tmp
prove -v
A copy of the t
folder is needed since the prove
command creates a directory servroot
in t
.