Public Member Functions | Public Attributes | Static Public Attributes | Private Member Functions | List of all members
test.testSlave.SlaveTestCase Class Reference

Expects a single test node to be running with name 'test_node' and subscribed to 'test_string'. More...

Inheritance diagram for test.testSlave.SlaveTestCase:
Inheritance graph
[legend]

Public Member Functions

def setUp (self)
 
def testGetPid (self)
 
def testGetPublications (self)
 
def testMisc (self)
 
def testSinkConnectFlow (self)
 
def testSinkKillFlow (self)
 
def testSourceKillFlow (self)
 
def testSourceRequestFlow_Errors (self)
 
def testSourceRequestFlow_Fail (self)
 
def testSourceRequestFlow_TCPROS1 (self)
 
def testSourceRequestFlow_TCPROS2 (self)
 

Public Attributes

 caller_id
 
 node
 
 node_api
 

Static Public Attributes

list sinkTests
 

Private Member Functions

def _sink_KillFlows (self, tests, sinks)
 
def _sink_StartFlows (self, tests, sourceUris, sinks)
 
def _sink_StartNodes (self, tests)
 
def _subTestSourceRequestFlow (self, testName, protocols, testEval)
 

Detailed Description

Expects a single test node to be running with name 'test_node' and subscribed to 'test_string'.

Definition at line 68 of file testSlave.py.

Member Function Documentation

def test.testSlave.SlaveTestCase._sink_KillFlows (   self,
  tests,
  sinks 
)
private
subroutine to kill the flows specified in the tests, purely
using the sink API (i.e. source will still be running)

In the future it would be nice to verify that the flow was
killed, but for now trust what the sink says

Definition at line 281 of file testSlave.py.

def test.testSlave.SlaveTestCase._sink_StartFlows (   self,
  tests,
  sourceUris,
  sinks 
)
private
subroutine to connect the flows specified in the tests, purely
using the sink API.

In the future it would be nice to verify that the flow truly
exists, but for now trust what the sink says

Definition at line 263 of file testSlave.py.

def test.testSlave.SlaveTestCase._sink_StartNodes (   self,
  tests 
)
private
Test subroutine to startup all the nodes specified in the tests

Definition at line 243 of file testSlave.py.

def test.testSlave.SlaveTestCase._subTestSourceRequestFlow (   self,
  testName,
  protocols,
  testEval 
)
private

Definition at line 89 of file testSlave.py.

def test.testSlave.SlaveTestCase.setUp (   self)

Definition at line 70 of file testSlave.py.

def test.testSlave.SlaveTestCase.testGetPid (   self)

Definition at line 78 of file testSlave.py.

def test.testSlave.SlaveTestCase.testGetPublications (   self)

Definition at line 82 of file testSlave.py.

def test.testSlave.SlaveTestCase.testMisc (   self)

Definition at line 320 of file testSlave.py.

def test.testSlave.SlaveTestCase.testSinkConnectFlow (   self)

Definition at line 303 of file testSlave.py.

def test.testSlave.SlaveTestCase.testSinkKillFlow (   self)

Definition at line 310 of file testSlave.py.

def test.testSlave.SlaveTestCase.testSourceKillFlow (   self)

Definition at line 156 of file testSlave.py.

def test.testSlave.SlaveTestCase.testSourceRequestFlow_Errors (   self)

Definition at line 143 of file testSlave.py.

def test.testSlave.SlaveTestCase.testSourceRequestFlow_Fail (   self)

Definition at line 139 of file testSlave.py.

def test.testSlave.SlaveTestCase.testSourceRequestFlow_TCPROS1 (   self)

Definition at line 121 of file testSlave.py.

def test.testSlave.SlaveTestCase.testSourceRequestFlow_TCPROS2 (   self)

Definition at line 130 of file testSlave.py.

Member Data Documentation

test.testSlave.SlaveTestCase.caller_id

Definition at line 73 of file testSlave.py.

test.testSlave.SlaveTestCase.node

Definition at line 76 of file testSlave.py.

test.testSlave.SlaveTestCase.node_api

Definition at line 74 of file testSlave.py.

list test.testSlave.SlaveTestCase.sinkTests
static
Initial value:
1 = [
2  [['testSinkConnectFlow-nodeA','testSinkConnectFlow-nodeB',],
3  ['node', 'testSinkConnectFlow-nodeA.out', 'testSinkConnectFlow-nodeB.in']],
4  [['g1.testSinkConnectFlow-nodeA','g1.testSinkConnectFlow-nodeB',],
5  ['g1.node', 'testSinkConnectFlow-nodeA.out', 'testSinkConnectFlow-nodeB.in']],
6  [['g1.g2.g3.testSinkConnectFlow-nodeA','g1.g2.testSinkConnectFlow-nodeB',],
7  ['g1.g2.node', 'g3.testSinkConnectFlow-nodeA.out', 'testSinkConnectFlow-nodeB.in']],
8  [['g1.g2.testSinkConnectFlow-nodeA','g1.g2.g3.testSinkConnectFlow-nodeB',],
9  ['g1.g2.node', 'testSinkConnectFlow-nodeA.out', 'g3.testSinkConnectFlow-nodeB.in']],
10  #separate subgraphs
11  [['a1.a2.testSinkConnectFlow-nodeA','b1.b2.testSinkConnectFlow-nodeB',],
12  ['node', 'a1.a2.testSinkConnectFlow-nodeA.out', 'b1.b2.testSinkConnectFlow-nodeB.in']],
13  # '.locator' resolution
14  [['c1.node.testSinkConnectFlow-nodeA','c1.node2.testSinkConnectFlow-nodeB',],
15  ['c1.node2', 'node.testSinkConnectFlow-nodeA.out', '.testSinkConnectFlow-nodeB.in']],
16 
17  ]

Definition at line 225 of file testSlave.py.


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


test_rosmaster
Author(s): Ken Conley, Dirk Thomas
autogenerated on Mon Nov 2 2020 03:52:54