Open Kilda Java Documentation
org.openkilda.topo.TestUtils Class Reference

Static Public Member Functions

static void validateTopos (ITopology expected, ITopology actual)
 
static String createMininetTopoFromFile (URL url)
 
static ITopology translateTopoEngTopo (ITopology expected) throws InterruptedException
 
static ITopology checkAndGetTopo (long expectedSwitches, long expectedLinks) throws InterruptedException
 
static void clearEverything () throws InterruptedException, IOException
 
static void clearEverything (String endpoint) throws InterruptedException, IOException
 
static void testTheTopo (URL url)
 
static void main (String[] args)
 

Detailed Description

Created by carmine on 2/27/17.

Definition at line 40 of file TestUtils.java.

Member Function Documentation

◆ checkAndGetTopo()

static ITopology org.openkilda.topo.TestUtils.checkAndGetTopo ( long  expectedSwitches,
long  expectedLinks 
) throws InterruptedException
static

Queries for the Topology from the TE, counting switches and links, until they match the expected counts or it times out.

Parameters
expectedSwitches
expectedLinks
Returns
the topology as of the last query
Exceptions
InterruptedException

Definition at line 132 of file TestUtils.java.

◆ clearEverything() [1/2]

static void org.openkilda.topo.TestUtils.clearEverything ( ) throws InterruptedException, IOException
static

Default behavior - hit localhost

Definition at line 178 of file TestUtils.java.

◆ clearEverything() [2/2]

static void org.openkilda.topo.TestUtils.clearEverything ( String  endpoint) throws InterruptedException, IOException
static
Parameters
endpointthe kilda endpoint to clear

Definition at line 185 of file TestUtils.java.

◆ createMininetTopoFromFile()

static String org.openkilda.topo.TestUtils.createMininetTopoFromFile ( URL  url)
static

Definition at line 91 of file TestUtils.java.

◆ main()

static void org.openkilda.topo.TestUtils.main ( String []  args)
static

Definition at line 227 of file TestUtils.java.

◆ testTheTopo()

static void org.openkilda.topo.TestUtils.testTheTopo ( URL  url)
static

The composite test .. going from a resources/topologies/* file to Kilda and back

Definition at line 215 of file TestUtils.java.

◆ translateTopoEngTopo()

static ITopology org.openkilda.topo.TestUtils.translateTopoEngTopo ( ITopology  expected) throws InterruptedException
static

Get the topology from the Topology Engine, compare against the expected (switch/link count) until it matches or times out.

Definition at line 116 of file TestUtils.java.

◆ validateTopos()

static void org.openkilda.topo.TestUtils.validateTopos ( ITopology  expected,
ITopology  actual 
)
static

Definition at line 42 of file TestUtils.java.


The documentation for this class was generated from the following file: