Skip to content

Testing Guide

lguohan edited this page Jul 28, 2017 · 50 revisions

Testlab/Testbed

Please find testlab setup instructions here

Minigraph

Minigraph is the only resource/starting point for configuring a SONiC device.

Minigraph is a XML format file. Each SONiC device must have a matching Minigraph file for device configuration and test.

SONiC devices Minigraph files could be saved locally or centralized saved in a remote location.

All local Minigraph files are saved under ansible/minigraph folder. The file name must match your SONiC device name specified in 'lab' inventory file under ansible/ folder

Configuration and Minigraph

Generate Minigraph File Based On Testbed Type

Run Tests

How to Run Test

  • Run all tests from in sonic-mgmt docker.

Tests that you may run to validate SONiC switch features of your platform

  • Test List

  • Command to run tests:

    ansible-playbook -i lab --limit your-dut-name test_sonic.yml --tags your-test-tag1,test-tag-2

  • Example: run fib test

    ansible-playbook -i lab --limit your-dut-name test_sonic.yml --tags fib -e "ptf_host=10.64.246.19 testbed_type=t1"

Here are some test design docs

Clone this wiki locally