Changes between Version 3 and Version 4 of Handler-Testing

Show
Ignore:
Timestamp:
03/05/10 11:50:52 (9 years ago)
Author:
anirban (IP: 152.54.6.35)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Handler-Testing

    v3 v4  
    2121}}} 
    2222== Testing handlers with NA components == 
     230. Let $ORCA_HOME be the root of your orca source tree. Edit build.properties in the appropriate handler directory to reflect the correct IP address of the node agent and the substrate locations. For example, look at the build.properties for BEN gec7 demo handler in $ORCA_HOME/controllers/ben/resources/handlers/controllers/ben/gec7 . master.service.location needs to contain the correct IP address for the node agent machine. 
     24 
     251. Build ORCA 
     26{{{ 
     27$ mvn install 
     28}}} 
     29 
     302. Prepare handlers for execution in tools/cmdline. Note that because this command attempts to start ORCA instance, you must have mysql with valid schema and dataset running on the localhost. Note that ORCA deployment tree is created under tools/cmdline (including all plugins and handlers, and that is where they are executed from). 
     31{{{ 
     32$ cd tools/cmdline 
     33$ ant test.handler.prepare 
     34}}} 
     35This will create the handlers/ tree and packages/ tree inside tools/cmdline 
     36 
     373. Make sure that the node agent (NA) is up and running. The NA actually controls the substrate. Also, the drivers need to be installed there. See documentation on how to set up node agents and install drivers on them - https://geni-orca.renci.org/trac/wiki/DeployNodeAgent . Make sure that the 'ant drivers.install' step goes smoothly. That should verify whether the security setup is correct so that you can talk to the node agent. 
     38 
     394. As a part of the node agent setup process, a runtime/ directory would be created inside tools/config. This directory contains keys etc. required to talk to node agent. This runtime/ directory needs to be sym-linked under tools/cmdline.  
     40{{{ 
     41$ cd $ORCA_HOME/tools/cmdline 
     42$ ln -s $ORCA_HOME/tools/config/runtime runtime 
     43}}} 
     44 
     456. Disable emulation in $ORCA_HOME/tools/cmdline/config/container.properties so that actual substrates are touched. Make emulation=false in container.properties. 
     46 
     477. Go to tools/cmdline directory. 
     48{{{ 
     49$ cd $ORCA_HOME/tools/cmdline 
     50}}} 
     51 
     528. Test handler  
     53{{{ 
     54$ ant test.handler -Dtarget=<join|leave> -Demulation=false -Dhandler=<path to handler xml file in tools/cmdline subtree> -Dactor.id=admin -Dorca.home=. -Dsecure.communication=true <-DsomeProperty=any other optional properties> 
     55}}} 
     56Example command to test the ben gec7 demo handler : 
     57{{{ 
     58$ ant test.handler -Dhandler=handlers/controllers/ben/gec7/ben.xml -Dtarget=join -Demulation=false -Dactor.id=admin -Dorca.home=. -Dsecure.communication=true 
     59}}}