Detailed Description
The Tests.
Inheritance diagram for tests.test_usage.UsageTests:
Collaboration diagram for tests.test_usage.UsageTests:
Public Member Functions | |
| setUpClass (cls) | |
| setUp (self) | |
| tearDownClass (cls) | |
| startReceiver (cls) | |
| stopReceiver (cls) | |
| waitForUsageThreads (self) | |
| test_data_received (self) | |
| Check that data is received from the share usage element. | |
| test_data_correct (self) | |
| Check that the data received from the share usage element is correct. | |
| test_includes_header (self) | |
| Check that the data received from the share usage element contains the headers which were in the evidence. | |
| test_client_ip (self) | |
| Check that the data received from the share usage element includes the client IP from the evidence. | |
| test_two_events_first (self) | |
| Check that a single event is not sent when the requested package size is 2. | |
| test_two_events_second (self) | |
| Check that a single event is not sent when the requested package size is 2. | |
| test_ignore_headers (self) | |
| Check that the share usage element respects the headerBlacklist. | |
| test_queue_cleared (self) | |
| test_session_and_sequence (self) | |
| Check that session and sequence values are included. | |
| test_invalid_char (self) | |
| Check that invalid characters are escaped correctly. | |
| test_truncated_value (self) | |
| Check that long values are truncated correctly. | |
| test_send_more_than_once (self) | |
| Check that the queue of data is correctly reset, and used for the next set of requests. | |
| test_low_percentage (self) | |
| Check that small portion sharing is done correctly. | |
| test_includes_header (self) | |
| Check that XML characters are escaped correctly. | |
| test_zzz_timeout (self) | |
Public Attributes | |
| receiver = ReceiverThread(app) | |
Member Function Documentation
◆ setUp()
| tests.test_usage.UsageTests.setUp | ( | self | ) |
◆ setUpClass()
| tests.test_usage.UsageTests.setUpClass | ( | cls | ) |
◆ startReceiver()
| tests.test_usage.UsageTests.startReceiver | ( | cls | ) |
◆ stopReceiver()
| tests.test_usage.UsageTests.stopReceiver | ( | cls | ) |
◆ tearDownClass()
| tests.test_usage.UsageTests.tearDownClass | ( | cls | ) |
◆ test_client_ip()
| 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()
| tests.test_usage.UsageTests.test_data_correct | ( | self | ) |
Check that the data received from the share usage element is correct.
◆ test_data_received()
| tests.test_usage.UsageTests.test_data_received | ( | self | ) |
Check that data is received from the share usage element.
◆ test_ignore_headers()
| 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]
| tests.test_usage.UsageTests.test_includes_header | ( | self | ) |
Check that XML characters are escaped correctly.
◆ test_includes_header() [2/2]
| 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_invalid_char()
| tests.test_usage.UsageTests.test_invalid_char | ( | self | ) |
Check that invalid characters are escaped correctly.
◆ test_low_percentage()
| tests.test_usage.UsageTests.test_low_percentage | ( | self | ) |
Check that small portion sharing is done correctly.
◆ test_queue_cleared()
| tests.test_usage.UsageTests.test_queue_cleared | ( | self | ) |
◆ test_send_more_than_once()
| 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()
| tests.test_usage.UsageTests.test_session_and_sequence | ( | self | ) |
Check that session and sequence values are included.
◆ test_truncated_value()
| tests.test_usage.UsageTests.test_truncated_value | ( | self | ) |
Check that long values are truncated correctly.
◆ test_two_events_first()
| 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()
| 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()
| tests.test_usage.UsageTests.test_zzz_timeout | ( | self | ) |
◆ waitForUsageThreads()
| tests.test_usage.UsageTests.waitForUsageThreads | ( | self | ) |
Member Data Documentation
◆ receiver
| tests.test_usage.UsageTests.receiver = ReceiverThread(app) |
