The ceilometer.tests.unit.publisher.test_http Module

The ceilometer.tests.unit.publisher.test_http Module

Tests for ceilometer/publisher/http.py

class ceilometer.tests.unit.publisher.test_http.TestHttpPublisher(*args, **kwds)[source]

Bases: oslotest.base.BaseTestCase

event_data = [<Event: 65ad1a5b-9a74-4ecc-87e2-45adbe4a524c, event_0, 2020-06-08T01:26:11.438826, >, <Event: 55e01968-482c-4b1d-9de3-82e39273ee44, event_1, 2020-06-08T01:26:11.438876, >, <Event: 03e2d379-3e4b-4fec-b128-fc89ac2e4e71, event_2, 2020-06-08T01:26:11.439152, >]
i = 2
resource_id = 'cb54f422-9d3c-4d0f-98a5-0d6544a059bf'
sample_data = [<name: alpha, volume: 1, resource_id: cb54f422-9d3c-4d0f-98a5-0d6544a059bf, timestamp: 2020-06-08T01:26:11.438691>, <name: beta, volume: 1, resource_id: cb54f422-9d3c-4d0f-98a5-0d6544a059bf, timestamp: 2020-06-08T01:26:11.438729>, <name: gamma, volume: 1, resource_id: cb54f422-9d3c-4d0f-98a5-0d6544a059bf, timestamp: 2020-06-08T01:26:11.438743>]
setUp()[source]
test_http_post_empty_data(*args, **keywargs)[source]
test_http_post_events(*args, **keywargs)[source]

Test publisher post.

test_http_post_samples(*args, **keywargs)[source]

Test publisher post.

test_http_publisher_config()[source]

Test publisher config parameters.

test_post_basic_auth()[source]
test_post_batch_event()[source]
test_post_batch_sample()[source]
test_post_client_cert_auth()[source]
test_post_no_batch_event()[source]
test_post_no_batch_sample()[source]
test_post_raw_only()[source]
test_post_verify_ssl_False()[source]
test_post_verify_ssl_True()[source]
test_post_verify_ssl_default()[source]
test_post_verify_ssl_path()[source]
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.