\r\n

51Degrees Pipeline Python  4.4

51Degrees Pipeline for Python

tests.test_usage.UsageTests Class Reference

Detailed Description

The Tests.

Inheritance diagram for tests.test_usage.UsageTests:

[legend]

Collaboration diagram for tests.test_usage.UsageTests:

[legend]

Public Member Functions

def  setUpClass (cls)
def  setUp (self)
def  tearDownClass (cls)
def  startReceiver (cls)
def  stopReceiver (cls)
def  waitForUsageThreads (self) def  test_data_received (self)
Check that data is received from the share usage element. More...
def  test_data_correct (self)
Check that the data received from the share usage element is correct. More...
def  test_includes_header (self)
Check that the data received from the share usage element contains the headers which were in the evidence. More...
def  test_client_ip (self)
Check that the data received from the share usage element includes the client IP from the evidence. More...
def  test_two_events_first (self)
Check that a single event is not sent when the requested package size is 2. More...
def  test_two_events_second (self)
Check that a single event is not sent when the requested package size is 2. More...
def  test_ignore_headers (self)
Check that the share usage element respects the headerBlacklist. More...
def  test_queue_cleared (self) def  test_session_and_sequence (self)
Check that session and sequence values are included. More...
def  test_invalid_char (self)
Check that invalid characters are escaped correctly. More...
def  test_truncated_value (self)
Check that long values are truncated correctly. More...
def  test_send_more_than_once (self)
Check that the queue of data is correctly reset, and used for the next set of requests. More...
def  test_low_percentage (self)
Check that small portion sharing is done correctly. More...
def  test_includes_header (self)
Check that XML characters are escaped correctly. More...
def  test_zzz_timeout (self)

Public Attributes

 receiver

Member Function Documentation

◆ setUp()

def tests.test_usage.UsageTests.setUp (   self )

◆ setUpClass()

def tests.test_usage.UsageTests.setUpClass (   cls )

◆ startReceiver()

def tests.test_usage.UsageTests.startReceiver (   cls )

◆ stopReceiver()

def tests.test_usage.UsageTests.stopReceiver (   cls )

◆ tearDownClass()

def tests.test_usage.UsageTests.tearDownClass (   cls )

◆ test_client_ip()

def tests.test_usage.UsageTests.test_client_ip (   self )

Check that the data received from the share usage element includes the client IP from the evidence.

◆ test_data_correct()

def tests.test_usage.UsageTests.test_data_correct (   self )

Check that the data received from the share usage element is correct.

◆ test_data_received()

def tests.test_usage.UsageTests.test_data_received (   self )

Check that data is received from the share usage element.

◆ test_ignore_headers()

def tests.test_usage.UsageTests.test_ignore_headers (   self )

Check that the share usage element respects the headerBlacklist.

When header names are added to the list, values for them should not be included in the data shared.

◆ test_includes_header() [1/2]

def tests.test_usage.UsageTests.test_includes_header (   self )

Check that the data received from the share usage element contains the headers which were in the evidence.

◆ test_includes_header() [2/2]

def tests.test_usage.UsageTests.test_includes_header (   self )

Check that XML characters are escaped correctly.

◆ test_invalid_char()

def tests.test_usage.UsageTests.test_invalid_char (   self )

Check that invalid characters are escaped correctly.

◆ test_low_percentage()

def tests.test_usage.UsageTests.test_low_percentage (   self )

Check that small portion sharing is done correctly.

◆ test_queue_cleared()

def tests.test_usage.UsageTests.test_queue_cleared (   self )

◆ test_send_more_than_once()

def tests.test_usage.UsageTests.test_send_more_than_once (   self )

Check that the queue of data is correctly reset, and used for the next set of requests.

◆ test_session_and_sequence()

def tests.test_usage.UsageTests.test_session_and_sequence (   self )

Check that session and sequence values are included.

◆ test_truncated_value()

def tests.test_usage.UsageTests.test_truncated_value (   self )

Check that long values are truncated correctly.

◆ test_two_events_first()

def tests.test_usage.UsageTests.test_two_events_first (   self )

Check that a single event is not sent when the requested package size is 2.

◆ test_two_events_second()

def tests.test_usage.UsageTests.test_two_events_second (   self )

Check that a single event is not sent when the requested package size is 2.

◆ test_zzz_timeout()

def tests.test_usage.UsageTests.test_zzz_timeout (   self )

◆ waitForUsageThreads()

def tests.test_usage.UsageTests.waitForUsageThreads (   self )

Member Data Documentation

◆ receiver

tests.test_usage.UsageTests.receiver
On This Page