Skip to content
Snippets Groups Projects
README.md 1.25 KiB
Newer Older
  • Learn to ignore specific revisions
  • Nicholas Terranova's avatar
    Nicholas Terranova committed
    # ngx\_http\_voms\_module Testing 
    
    Nicholas Terranova's avatar
    Nicholas Terranova committed
    
    ## Description
    
    
    Setup and files to test the *ngx\_http\_voms\_module* are contained in the `t` folder. The [Openresty data-driven testsuite](https://openresty.gitbooks.io/programming-openresty/content/testing/) has been adopted for testing.
    
    Nicholas Terranova's avatar
    Nicholas Terranova committed
    ### Test fixture setup 
    
    Nicholas Terranova's avatar
    Nicholas Terranova committed
    
    
    Proxy certificates are in the `certs` folder (see [README.md](certs/README.md) for further details). Trust-anchors (e.g. igi-test-ca.pem) are contained in the `trust-anchors` folder. Nginx server certificate and key are nginx\_voms\_example.cert.pem and nginx\_voms\_example\_key.pem, respectively, and they are in the `certs` folder.
    
    Nicholas Terranova's avatar
    Nicholas Terranova committed
    
    
    To perform correctly the VOMS AC validation, a \*.lsc or \*.pem file is needed, see [VOMS client 3.3.0 User Guide](http://italiangrid.github.io/voms/documentation/voms-clients-guide/3.0.3/) for further details. The *voms.example.lsc* can be found in `vomsdir/test.vo`.
    
    Nicholas Terranova's avatar
    Nicholas Terranova committed
    
    ### Running Tests
    
    
    To run the tests made available in the `t` folder just type
    
    Nicholas Terranova's avatar
    Nicholas Terranova committed
    
    
    Nicholas Terranova's avatar
    Nicholas Terranova committed
    
    
    Using the docker image provided to exploit Openresty in the Storm2 project (see [README.md](../README.md) for further details):
    
    Nicholas Terranova's avatar
    Nicholas Terranova committed
    
    
        cp -r t /tmp
        cd /tmp
        prove -v
    
    Nicholas Terranova's avatar
    Nicholas Terranova committed
    
    A copy of the `t` folder is needed since the `prove` command creates a directory `servroot` in `t`.