SegTest Class Reference
[Available modules]

Inheritance diagram for SegTest:

TestModule TestConfigurationContainer

List of all members.


Detailed Description

TestEnv module SegTest.

This module inserts the possibility to start a temporary security gateway (SEG) with TestEnv. This should help testing networks like IMS which are protected by a security gateway. Currently only pre-shared keyword mode is supported.

SegTest handles a security gateway (ipsec-tools) in a thread.

Therefore you can set some parameters:

Author:
Enrico Hartung <enrico@iptel.org>
Version:
0.1
License:
GPL

Requirements

Definition at line 52 of file SegTest.py.


Public Member Functions

def initTestModule
 Constructor.
def run
 This method ist called after the start of the thread.

Private Member Functions

def __createRacoonConfiguration
def __createSetkeyAddConfiguration
def __createSetkeyDeleteConfiguration
def __cleanup

Private Attributes

 _setkeyArguments
 _racoonArguments
 __racoon
 __setkey

Static Private Attributes

list _racoonArguments = []
list _setkeyArguments = []
string __racoon = ""
string __setkey = ""
string _mode = ""
string __racoonConfTmpl
string __setkeyAddConfTmpl
string __setkeyDeleteConfTmpl
string __pskTmpl

Member Function Documentation

def __createRacoonConfiguration (   self,
  confFileName,
  pskFileName 
) [private]

Definition at line 146 of file SegTest.py.

def __createSetkeyAddConfiguration (   self,
  confFileName 
) [private]

Definition at line 190 of file SegTest.py.

def __createSetkeyDeleteConfiguration (   self,
  confFileName 
) [private]

Definition at line 215 of file SegTest.py.

def __cleanup (   self,
  files 
) [private]

Definition at line 234 of file SegTest.py.

def initTestModule (   self  ) 

Constructor.

Reimplemented from TestModule.

Definition at line 244 of file SegTest.py.

def run (   self  ) 

This method ist called after the start of the thread.

It runs SIPp with the parameters set in the constructor. The SIPp result [<process name>="">, <result code>="">, <timed out="" or="" not>="">] is written into the result list of the test case. If an error occurs (timed out or SIPp returns error code) a log file including the output of the process is written into the working directory. The name of this log file has follwing structure: <test case="" description>="">_<process name>_<unix time stamp>.log

Reimplemented from TestModule.

Definition at line 259 of file SegTest.py.


Member Data Documentation

list _racoonArguments = [] [static, private]

Definition at line 55 of file SegTest.py.

list _setkeyArguments = [] [static, private]

Definition at line 58 of file SegTest.py.

string __racoon = "" [static, private]

Definition at line 61 of file SegTest.py.

string __setkey = "" [static, private]

Definition at line 64 of file SegTest.py.

string _mode = "" [static, private]

Definition at line 67 of file SegTest.py.

string __racoonConfTmpl [static, private]

Definition at line 70 of file SegTest.py.

string __setkeyAddConfTmpl [static, private]

Initial value:

"""
spdadd [#LOCAL_NET#] [#REMOTE_NET#] any -P out ipsec esp/tunnel/[#LOCAL_SEG#]-[#REMOTE_SEG#]/require;
spdadd [#REMOTE_NET#] [#LOCAL_NET#] any -P in ipsec esp/tunnel/[#REMOTE_SEG#]-[#LOCAL_SEG#]/require;
"""

Definition at line 119 of file SegTest.py.

string __setkeyDeleteConfTmpl [static, private]

Initial value:

"""
spddelete [#LOCAL_NET#] [#REMOTE_NET#] any -P out;
spddelete [#REMOTE_NET#] [#LOCAL_NET#] any -P in;
flush;
"""

Definition at line 133 of file SegTest.py.

string __pskTmpl [static, private]

Initial value:

"""
[#REMOTE_SEG#] [#PSK#]
"""

Definition at line 139 of file SegTest.py.

_setkeyArguments [private]

Definition at line 245 of file SegTest.py.

_racoonArguments [private]

Definition at line 246 of file SegTest.py.

__racoon [private]

Definition at line 264 of file SegTest.py.

__setkey [private]

Definition at line 265 of file SegTest.py.


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

Generated on Mon Aug 11 17:28:34 2008 for TestEnv by  doxygen 1.5.5