示例#1
0
 def setUp(self):
     immombin.saImmOmInitialize()
     immom.adminowner_initialize('TestAdmin')
     self.cleanup()
     attrs = [('TestClassId', 'SANAMET', [ 'CONFIG', 'RDN' ], [])]
     immom.createclass('TestClass', 'CONFIG', attrs)
示例#2
0
 def setUp(self):
     immombin.saImmOmInitialize()
示例#3
0
 def test0020_Initialize(self):
     self.assertRaises(immom.AisException, immombin.saImmOmInitialize)
     immombin.saImmOmFinalize()
     self.assertRaises(immom.AisException, immombin.saImmOmFinalize)
     immombin.saImmOmInitialize()
示例#4
0
        "SA_AIS_ERR_QUEUE_NOT_AVAILABLE",
        "SA_AIS_ERR_BAD_FLAGS",
        "SA_AIS_ERR_TOO_BIG",
        "SA_AIS_ERR_NO_SECTIONS",
        "SA_AIS_ERR_NO_OP",
        "SA_AIS_ERR_REPAIR_PENDING",
        "SA_AIS_ERR_NO_BINDINGS",
        "SA_AIS_ERR_UNAVAILABLE"


"""
import sys
import immombin
from immombin import AisException

immombin.saImmOmInitialize()

_flagdict = {
    'MULTI_VALUE':0x00000001,
    'RDN':0x00000002,
    'CONFIG':0x00000100,
    'WRITABLE':0x00000200,
    'INITIALIZED':0x00000400,
    'RUNTIME':0x00010000,
    'PERSISTENT':0x00020000,
    'CACHED':0x00040000,
    }

def _flag_list(flags):
    l = []
    for k in _flagdict.keys():
示例#5
0
        "SA_AIS_ERR_QUEUE_NOT_AVAILABLE",
        "SA_AIS_ERR_BAD_FLAGS",
        "SA_AIS_ERR_TOO_BIG",
        "SA_AIS_ERR_NO_SECTIONS",
        "SA_AIS_ERR_NO_OP",
        "SA_AIS_ERR_REPAIR_PENDING",
        "SA_AIS_ERR_NO_BINDINGS",
        "SA_AIS_ERR_UNAVAILABLE"
  

"""
import sys
import immombin
from immombin import AisException

immombin.saImmOmInitialize()

_flagdict = {
    'MULTI_VALUE':0x00000001,
    'RDN':0x00000002,
    'CONFIG':0x00000100,
    'WRITABLE':0x00000200,
    'INITIALIZED':0x00000400,
    'RUNTIME':0x00010000,
    'PERSISTENT':0x00020000,
    'CACHED':0x00040000,
    }

def _flag_list(flags):
    l = []
    for k in _flagdict.keys():
 def setUp(self):
     immombin.saImmOmInitialize()
     immom.adminowner_initialize('TestAdmin')
     self.cleanup()
     attrs = [('TestClassId', 'SANAMET', ['CONFIG', 'RDN'], [])]
     immom.createclass('TestClass', 'CONFIG', attrs)
 def test0020_Initialize(self):
     self.assertRaises(immom.AisException, immombin.saImmOmInitialize)
     immombin.saImmOmFinalize()
     self.assertRaises(immom.AisException, immombin.saImmOmFinalize)
     immombin.saImmOmInitialize()
 def setUp(self):
     immombin.saImmOmInitialize()