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: 9a0432db-80f6-42b3-aae2-386a3f25be2d, event_0, 2020-05-29T08:30:33.504024, >, <Event: d8563ab1-44cb-4c0e-86ba-e5ea76f711df, event_1, 2020-05-29T08:30:33.504095, >, <Event: 751d3e7f-11b0-49ae-84c7-3af9d8c9833d, event_2, 2020-05-29T08:30:33.504155, >]
i = 2
resource_id = '42e8eed6-dd1b-4a08-8802-6e5c15db7b21'
sample_data = [<name: alpha, volume: 1, resource_id: 42e8eed6-dd1b-4a08-8802-6e5c15db7b21, timestamp: 2020-05-29T08:30:33.503754>, <name: beta, volume: 1, resource_id: 42e8eed6-dd1b-4a08-8802-6e5c15db7b21, timestamp: 2020-05-29T08:30:33.503869>, <name: gamma, volume: 1, resource_id: 42e8eed6-dd1b-4a08-8802-6e5c15db7b21, timestamp: 2020-05-29T08:30:33.503913>]
setUp()[source]

Hook method for setting up the test fixture before exercising it.

test_http_post_empty_data(**keywargs)[source]
test_http_post_events(**keywargs)[source]

Test publisher post.

test_http_post_samples(**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.