The Assimilation Project  based on Assimilation version 1.1.2.1454953989
cma.tests.cma_test.TestCMABasic Class Reference
Inheritance diagram for cma.tests.cma_test.TestCMABasic:
Collaboration diagram for cma.tests.cma_test.TestCMABasic:

Public Member Functions

def check_discovery (self, drone, expectedjson)
 
def test_startup (self)
 
def check_live_counts (self, expectedlivecount, expectedpartnercount, expectedringmembercount)
 
def test_several_startups (self)
 
def tearDown (self)
 

Static Public Attributes

string OS_DISCOVERY
 
string ULIMIT_DISCOVERY
 

Detailed Description

Definition at line 479 of file cma_test.py.

Member Function Documentation

def cma.tests.cma_test.TestCMABasic.check_discovery (   self,
  drone,
  expectedjson 
)

Definition at line 512 of file cma_test.py.

Referenced by cma.tests.cma_test.TestCMABasic.test_startup().

Here is the caller graph for this function:

def cma.tests.cma_test.TestCMABasic.check_live_counts (   self,
  expectedlivecount,
  expectedpartnercount,
  expectedringmembercount 
)

Definition at line 604 of file cma_test.py.

def cma.tests.cma_test.TestCMABasic.tearDown (   self)

Definition at line 726 of file cma_test.py.

References cma.tests.cma_test.assert_no_dangling_Cclasses().

Here is the call graph for this function:

def cma.tests.cma_test.TestCMABasic.test_several_startups (   self)
A very interesting test: We send a STARTUP message and get back a
SETCONFIG message and then send back a bunch of discovery requests.

Definition at line 626 of file cma_test.py.

References cma.tests.cma_test.assimcli_check(), cma.tests.cma_test.auditalldrones(), cma.tests.cma_test.auditallrings(), cma.tests.cma_test.dronedesignation(), cma.tests.cma_test.droneipaddress(), cma.tests.cma_test.geninitconfig(), and cma.tests.cma_test.hostdiscoveryinfo().

Here is the call graph for this function:

def cma.tests.cma_test.TestCMABasic.test_startup (   self)
A semi-interesting test: We send a STARTUP message and get back a
SETCONFIG message with lots of good stuff in it.
and for good measure, we also send along some discovery packets.

Definition at line 532 of file cma_test.py.

References cma.tests.cma_test.assimcli_check(), cma.tests.cma_test.TestCMABasic.check_discovery(), cma.tests.cma_test.dronedesignation(), cma.tests.cma_test.droneipaddress(), cma.tests.cma_test.geninitconfig(), cma.tests.cma_test.hostdiscoveryinfo(), cma.tests.cma_test.TestCMABasic.OS_DISCOVERY, and cma.tests.cma_test.TestCMABasic.ULIMIT_DISCOVERY.

Here is the call graph for this function:

Field Documentation

string cma.tests.cma_test.TestCMABasic.OS_DISCOVERY
static
Initial value:
1 = '''{
2  "discovertype": "os",
3  "description": "OS information",
4  "host": "drone000001",
5  "instance": "os",
6  "source": "../discovery_agents/os",
7  "data": {
8 "nodename": "drone000001",
9 "operating-system": "GNU/Linux",
10 "machine": "x86_64",
11 "processor": "x86_64",
12 "hardware-platform": "x86_64",
13 "kernel-name": "Linux",
14 "kernel-release": "3.19.0-31-generic",
15 "kernel-version": "#36-Ubuntu SMP Wed Oct 7 15:04:02 UTC 2015",
16 "Distributor ID": "Ubuntu",
17 "Description": "Ubuntu 15.04",
18 "Release": "15.04",
19 "Codename": "vivid"
20  }
21 }'''

Definition at line 480 of file cma_test.py.

Referenced by cma.tests.cma_test.TestCMABasic.test_startup().

string cma.tests.cma_test.TestCMABasic.ULIMIT_DISCOVERY
static
Initial value:
1 = '''{
2  "discovertype": "ulimit",
3  "description": "ulimit values for root",
4  "host": "drone000001",
5  "instance": "ulimit",
6  "source": "../discovery_agents/ulimit",
7  "data": {
8 "hard": {"c":null,"d":null,"f":null,"l":null,"m":null,"n":65536,"p":63557,"s":null,"t":null,"v":null},
9 "soft": {"c":0,"d":null,"f":null,"l":null,"m":null,"n":1024,"p":63557,"s":8192,"t":null,"v":null}
10  }
11 }'''

Definition at line 501 of file cma_test.py.

Referenced by cma.tests.cma_test.TestCMABasic.test_startup().


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