Changes between Version 4 and Version 5 of Neuca-handler-testing

Show
Ignore:
Timestamp:
01/13/11 17:59:13 (8 years ago)
Author:
ibaldin (IP: 152.54.9.21)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Neuca-handler-testing

    v4 v5  
    66 * Read [wiki:Handler-Testing notes on generic handler testing] 
    77 
    8 == Testing NEuca from tools/cmdline == 
     8== Testing NEuca standalone handler from tools/cmdline == 
     9 
     10From tools cmdline, after you prepare handlers for testing: 
     11 * To test 'join': 
     12{{{ 
     13# ant test.handler -Dtarget=join -Demulation=false -Dhandler=handlers/ec2/handler.xml -Dec2.keys=/absolute/path/to/ec2/keys/directory -Dec2.site.properties=/absolute/path/to/ec2.site.properties/file -Dunit.vlan.tag=200 -Dconfig.ssh.key="string containing public key of the user, there is one in tools/cmdline/keys/test-key.pub " 
     14}}} 
     15 * You should be able to login to the instance at the reported ip/port combination using tools/cmdline/keys/test-key: 
     16{{{ 
     17# ssh -i keys/test-key -p port root@ip 
     18}}} 
     19 * To test 'leave': 
     20{{{ 
     21# ant test.handler -Dtarget=leave -Demulation=false -Dhandler=handlers/ec2/handler.xml -Dec2.keys=/absolute/path/to/ec2/keys/directory -Dec2.site.properties=/absolute/path/to/ec2.site.properties/file -Dunit.ec2.instance=<instance id reported in the join step above> 
     22}}} 
     23== Testing complete full lease cycle with broker/site/SM ==  
    924 
    1025You can use a test config file - tools/cmdline/tests/euca.xml  to test the NEuca handler without deploying webapp. The steps are the following.