The ceilometer.tests.functional.api.v2.test_post_samples_scenarios Module

Test listing raw events.

class ceilometer.tests.functional.api.v2.test_post_samples_scenarios.TestPostSamples(*args, **kwds)[source]

Bases: ceilometer.tests.functional.api.v2.FunctionalTest

fake_notifier_sample(ctxt, event_type, payload)[source]
setUp(*args, **kwargs)[source]
tearDown()[source]
test_invalid_counter_type(*args, **kwargs)[source]
test_messsage_id_provided(*args, **kwargs)[source]

Do not accept sample with message_id.

test_missing_mandatory_fields(*args, **kwargs)[source]

Do not accept posting samples with missing mandatory fields.

test_missing_project_user_id(*args, **kwargs)[source]

Ensure missing project & user IDs are defaulted appropriately.

test_multiple_project_id_and_admin(*args, **kwargs)[source]

Allow admin is allowed to set multiple project_id.

test_multiple_samples(*args, **kwargs)[source]

Send multiple samples.

The usecase here is to reduce the chatter and send the counters at a slower cadence.

test_multiple_samples_multiple_sources(*args, **kwargs)[source]

Test posting with special conditions.

Do accept a single post with some multiples sources with some of them null.

test_nested_metadata(*args, **kwargs)[source]
test_one(*args, **kwargs)[source]
test_wrong_project_id(*args, **kwargs)[source]

Do not accept cross posting samples to different projects.