The Assimilation Project  based on Assimilation version 1.1.7.1474836767
cma.bestpractices Namespace Reference

Data Structures

class  BestPractices
 
class  BestPracticesCMA
 
class  DebugEventObserver
 
class  DummyDrone
 

Variables

 JSON_data
 
 rulefile = None
 
 dummydrone = DummyDrone()
 
 testrules = pyConfigContext(procsys_file.read())
 
 testjsonobj = pyConfigContext(JSON_data)
 
 logger = logging.getLogger('BestPracticesTest')
 
dictionary testconfig = {'allbpdiscoverytypes': ['login_defs', 'pam', 'proc_sys', 'sshd']}
 
 bpobj = BestPractices(testconfig, None, None, logger, False)
 
 ourstats = procsys.evaluate("testdrone", None, testjsonobj, testrules, 'proc_sys')
 
 size = sum([len(ourstats[st]) for st in ourstats.keys() if st != 'score'])
 
 score
 
 tstdiffs
 
 atestrule = testrules['itbp-00001']
 

Variable Documentation

cma.bestpractices.atestrule = testrules['itbp-00001']

Definition at line 557 of file bestpractices.py.

cma.bestpractices.bpobj = BestPractices(testconfig, None, None, logger, False)

Definition at line 528 of file bestpractices.py.

cma.bestpractices.dummydrone = DummyDrone()

Definition at line 517 of file bestpractices.py.

cma.bestpractices.JSON_data

Definition at line 488 of file bestpractices.py.

cma.bestpractices.logger = logging.getLogger('BestPracticesTest')

Definition at line 525 of file bestpractices.py.

cma.bestpractices.ourstats = procsys.evaluate("testdrone", None, testjsonobj, testrules, 'proc_sys')

Definition at line 530 of file bestpractices.py.

string cma.bestpractices.rulefile = None

Definition at line 516 of file bestpractices.py.

cma.bestpractices.score

Definition at line 538 of file bestpractices.py.

cma.bestpractices.size = sum([len(ourstats[st]) for st in ourstats.keys() if st != 'score'])

Definition at line 531 of file bestpractices.py.

Referenced by discovery_new(), and netconfig.Adapter.GetAdaptersAddresses().

dictionary cma.bestpractices.testconfig = {'allbpdiscoverytypes': ['login_defs', 'pam', 'proc_sys', 'sshd']}

Definition at line 527 of file bestpractices.py.

cma.bestpractices.testjsonobj = pyConfigContext(JSON_data)

Definition at line 524 of file bestpractices.py.

cma.bestpractices.testrules = pyConfigContext(procsys_file.read())

Definition at line 523 of file bestpractices.py.

cma.bestpractices.tstdiffs

Definition at line 538 of file bestpractices.py.