Changes between Version 22 and Version 23 of Network driver development HOWTO

Show
Ignore:
Timestamp:
05/21/10 12:04:14 (9 years ago)
Author:
ibaldin (IP: 152.54.9.131)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Network driver development HOWTO

    v22 v23  
    105105=== Task tests === 
    106106 
    107 Once 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. 
     107Once 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. 
    108108 
    109109{{{ 
    110110  ant -f test.xml -D<property name>=<property value> <target name> 
    111111}}} 
     112 
     113'''NOTE:''' by default ant/tests.properties has emulation and test.mode properties set to '''true''' which means drivers will not execute actual tasks on real hardware (this depends on the implementation, you should look at the code of Cisco 6509 and EX3200 drivers and the use of IDevice.enableEmulation() and IDevice.isEmulationEnabled() methods).