This is an archive of the ONOS 1.5 wiki. For the current ONOS wiki, look here.

Proposed SAMPstarterTemplate2

Note: add standard license and author header in all TestON case files:

"""
Created on 26-Oct-2012
author: John Doe (joe@anemail.org)

TestON is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
( at your option ) any later version.
TestON is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with TestON. If not, see <http://www.gnu.org/licenses/>.
"""
CASEStepDetailsPass/Fail CriteriaStatus
11 Single-node ONOS startup  
 1set cell definition with minimum APPS i.e. drivers  
 2using stc setup to install onos and check summary status (retry check summary until pass)  
  Some sort of "sanity" check, TBD (No warnings/exceptions, ...)  
 3set mn switches to connect with onos and check topology  
 4configuring apps from .param json string (make sure it is an app with configuration parameters)  
     
     
12 single-node onos forwarding app test  
 1configuring fwd apps from .param json string with parameter configured; check if configuration successful  
 2run pingall to check connectivity  
 3check onos log for warning, error, exceptions  
     
31 scale up onos to 3 nodes  
 1shutdown and clean onos cell  
 2configure cell definition to 3 nodes with minimum APPS, i.e. driver  
 3using stc setup to install onos as cluster and check summary status (retry summary until pass)  
 4set mn switches to connect with onos, balance master and check topology  
 5configuring apps from .param json string (make sure it is an app with configuration parameters)  
 6check onos log for warning, error, exceptions  
     
32    
 1configuring fwd apps from .param json string with parameter configured; check if configuration successful  
 2run pingall to check connectivity  
 3check onos log for warning, error, exceptions  
     
900 Shutdown and clean up steps  
 1   
     
     

Sample tests are for new users to get to know how to use and author a test plan. Test name/class should be "SAMP*", for example, a starting template sample is "SAMPstartTemplate".

  • No labels