Write tests to cover all VOMS attributes exposed by NGINX VOMS module
This extends work done in #1 (closed), and is related to #4 (closed). This includes correctness checks on the information returned in NGINX variables.
This extends work done in #1 (closed), and is related to #4 (closed). This includes correctness checks on the information returned in NGINX variables.
Leverage the latest voms-clients to generate ACs with time validity constraints: https://ci.cloud.cnaf.infn.it/view/voms/job/pkg.voms/job/release_dec_17/lastSuccessfulBuild/artifact/repo/centos6/voms-clients3-3.3.1-0.el6.centos.noarch.rpm
The following variables are supported:
voms.fake.notAfter
, end time for the proxy, expressed as ISO timestamp, e.g. 2017-01-01T00:00:00
voms.fake.notBefore
, start time for the proxy, expressed as ISO timestampvoms.fake.gas
, comma separated list of key=value pairs, e.g. nickname=papisilviobelluscone
Example usage:
VOMS_CLIENTS_JAVA_OPTIONS="-Dvoms.fake=true -Dvoms.fake.notAfter=2017-01-01T00:00:00 \
-Dvoms.fake.notBefore=2016-01-01T00:00:00" \
voms-proxy-init -voms test.vo
A preliminary test-case has been written and run to verify valid VOMS attributes.
The same test has been performed using curl requests once Nginx web server was run with the proper configuration file.
Do we need a folder for nginx configuration files?
curl
requests can be made manually, this could be a possible solution for testing the tests. Using proxy pass
in the *.conf
files, only http
requests are needed.
I add the test-ca-2 files as discussed to add verify signature tests.
closed