NIH | National Cancer Institute | NCI Wiki  

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Lauch GAARDS-UI and login using shared COPPA Grid Test account
    Code Block
    titleLaunch GAARDS-UI (ant security)
    steve-matyass-macbook-pro-2:cagrid smatyas$ pwd
    /Users/smatyas/dev/cagrid/caGrid
    steve-matyass-macbook-pro-2:caGrid smatyas$ ant security
    ...
    
    1. Click Login button and specify the following:
      Code Block
      titleCOPPA Grid Test Account on Training Grid
      Credential Provider: Training
      Organization: Training
      Username: coppagridtest
      Password: Coppa#12345
      
  2. Ensure your build-po/install.properties and build-po/upgrade.properties files contain the correct values, namely the following:
    Code Block
    pogrid.grid.secure.cert.location=${user.home}/.cagrid/certificates/${pogrid.grid.external.secure.host}-cert.pem
    pogrid.grid.secure.key.location=${user.home}/.cagrid/certificates/${pogrid.grid.external.secure.host}-key.pem
    pogrid.grid.external.secure.host=${env.HOSTNAME}
    
    Here is what my HOSTNAME environment variable is set to:
    Code Block
    steve-matyass-macbook-pro-2:~ smatyas$ echo $HOSTNAME
    steve-matyass-macbook-pro-2.local
    steve-matyass-macbook-pro-2:~ smatyas$
    
  3. Ensure that your GLOBUS_LOCATION environment variable is set
    Code Block
    steve-matyass-macbook-pro-2:~ smatyas$ echo $GLOBUS_LOCATION
    /Users/smatyas/dev/cagrid/ws-core-4.0.3
    
  4. Build your local dev instances
    Code Block
    titlePO
    steve-matyass-macbook-pro-2:build-po smatyas$ pwd
    /Users/smatyas/dev/projects/coppa/code/build-po
    steve-matyass-macbook-pro-2:build-po smatyas$ ant deploy:local:install
    ...
    
    Code Block
    titlePA
    steve-matyass-macbook-pro-2:build-pa smatyas$ pwd
    /Users/smatyas/dev/projects/coppa/code/build-pa
    steve-matyass-macbook-pro-2:build-pa smatyas$ ant deploy:local:install
    ...
    
  5. After you receive a BUILD SUCCESSFUL, you'll need to wait for all JBoss server instances to start fully.
  6. Now that the servers have stared fully, you're ready to test the secure services
    Code Block
    titlePO
    steve-matyass-macbook-pro-2:build-po smatyas$ cd ../po-grid/
    steve-matyass-macbook-pro-2:po-grid smatyas$ pwd
    /Users/smatyas/dev/projects/coppa/code/po-grid
    steve-matyass-macbook-pro-2:po-grid smatyas$ ant runPersonClient
    ...
    
    In PO, you may pass-in runtime paramters to test the clients. An example of such parameter is -getId. In addition, you may choose to run any number of methods within the grid client classes. You do this using the -runMethods parameter. Sample run command might be:
    Code Block
    titlePO
    
    christophe-ludets-macbook-pro:po-grid ludetc$ ant runPatientClient -Dargs="-getId 888"
    christophe-ludets-macbook-pro:po-grid ludetc$ ant runPatientClient -Dargs="-getId 888 -runMethods testGetById,testUpdate"
    
    Code Block
    titlePA
    steve-matyass-macbook-pro-2:build-pa smatyas$ cd ../pa-grid/
    steve-matyass-macbook-pro-2:pa-grid smatyas$ pwd
    /Users/smatyas/dev/projects/coppa/code/pa-grid
    steve-matyass-macbook-pro-2:pa-grid smatyas$ ant runStudyProtocolClient
    ...
    
  7. Congratulations!

...