# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
# THE POSSIBILITY OF SUCH DAMAGE.
+from UserDict import UserDict
from cts.CTStests import *
###################################################################
AllTestClasses.append(RestartOnebyOne)
+class ConfigContainer(UserDict):
+ def __init__ (self, name):
+ self.name = name
+ UserDict.__init__(self)
+
def CoroTestList(cm, audits):
result = []
configs = []
bound_test.Audits = audits
result.append(bound_test)
- default = {}
+ default = ConfigContainer('default')
default['logging/function_name'] = 'off'
default['logging/logfile_priority'] = 'info'
default['logging/syslog_priority'] = 'info'
default['uidgid/gid'] = '0'
configs.append(default)
- a = {}
+ a = ConfigContainer('none_10000')
a['compatibility'] = 'none'
a['totem/token'] = 10000
configs.append(a)
- b = {}
+ b = ConfigContainer('whitetank_10000')
b['compatibility'] = 'whitetank'
b['totem/token'] = 10000
configs.append(b)
- c = {}
+ c = ConfigContainer('sec_nss')
c['totem/secauth'] = 'on'
c['totem/crypto_accept'] = 'new'
c['totem/crypto_type'] = 'nss'
configs.append(c)
- d = {}
+ d = ConfigContainer('sec_sober')
d['totem/secauth'] = 'on'
d['totem/crypto_type'] = 'sober'
configs.append(d)
- e = {}
+ e = ConfigContainer('threads_4')
e['totem/threads'] = 4
configs.append(e)
#configs.append(f)
if not cm.Env["RrpBindAddr"] is None:
- g = {}
+ g = ConfigContainer('rrp_passive')
g['totem/rrp_mode'] = 'passive'
g['totem/interface[2]/ringnumber'] = '1'
g['totem/interface[2]/bindnetaddr'] = cm.Env["RrpBindAddr"]
g['totem/interface[2]/mcastport'] = '5405'
configs.append(g)
- h = {}
+ h = ConfigContainer('rrp_active')
h['totem/rrp_mode'] = 'active'
h['totem/interface[2]/ringnumber'] = '1'
h['totem/interface[2]/bindnetaddr'] = cm.Env["RrpBindAddr"]
bound_test = testclass(cm)
if bound_test.is_applicable():
bound_test.Audits = audits
- for c in cfg:
+ for c in cfg.keys():
bound_test.config[c] = cfg[c]
- bound_test.name = bound_test.name + '_' + str(num)
+ bound_test.name = bound_test.name + '_' + cfg.name
result.append(bound_test)
num = num + 1