Changes between Version 19 and Version 20 of Network driver development HOWTO

Show
Ignore:
Timestamp:
05/21/10 11:57:42 (9 years ago)
Author:
ibaldin (IP: 152.54.9.131)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Network driver development HOWTO

    v19 v20  
    9191 
    9292=== Unit tests === 
    93 Developers are strongly encouraged to implement unit tests under handlers/network/src/test/java in the package orca.handlers.network. See existing tests for inspiration. Test procedures are described in this document below.  
     93Developers are strongly encouraged to implement unit tests under handlers/network/src/test/java in the package orca.handlers.network. See existing tests for inspiration.  
    9494 
    9595=== Task tests === 
     96 
     97Once unit tests work and tasks and associated meta-information is defined, you can test your driver by invoking the test handler. You should update handlers/network/ant/tests.properties file to add necessary property definitions (like vlan tags, device IP addresses or DNS names although they can be passed as command-line parameters to ant as well. You should create a handlers/network/ant/user.tests.properties file where you can re-declare login properties (usernames and passwords). There properties are declared in handlers/network/ant/tests.properties file, however they have empty values. This is done because ant/tests.properties file is under Subversion control and you should avoid checking in live passwords and logins (and other credentials) into subversion. Any properties declared in ant/user.tests.properties take precedence of properties declared in ant/tests.properties, however the ant/user.tests.properties file is NOT and should NEVER be checked into subversion. 
     98 
     99{{{ 
     100  ant -f test.xml -D<property name>=<property value> <target name> 
     101}}}