The panko.tests.functional.api.v2.test_acl_scenarios Module

The panko.tests.functional.api.v2.test_acl_scenarios Module

Test ACL.

service None

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

TestAPIACL.get_json(path, expect_errors=False, headers=None, q=None, **params)

Sends simulated HTTP GET request to Pecan test app.

Parameters
  • path – url path of target service

  • expect_errors – boolean value whether an error is expected based on request

  • headers – A dictionary of headers to send along with the request

  • extra_environ – A dictionary of environ variables to send along with the request

  • q – list of queries consisting of: field, value, op, and type keys

  • groupby – list of fields to group by

  • status – Expected status code of response

  • override_params – literally encoded query param string

  • params – content for wsgi.input of request

TestAPIACL.setUp()

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

service None

Bases: panko.tests.functional.api.v2.test_acl_scenarios.TestAPIACL

TestAPIEventACL.test_non_admin_get_event_types()
service None

Bases: panko.tests.functional.api.v2.test_acl_scenarios.TestBaseApiEventRBAC

TestApiEventAdminRBAC.tearDown()

Hook method for deconstructing the test fixture after testing it.

TestApiEventAdminRBAC.test_get_event()
TestApiEventAdminRBAC.test_get_event_bad()
TestApiEventAdminRBAC.test_get_events()
TestApiEventAdminRBAC.test_get_events_bad()
service None

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

TestBaseApiEventRBAC.setUp()[source]

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

TestBaseApiEventRBAC.test_get_event()[source]
TestBaseApiEventRBAC.test_get_events()[source]
TestBaseApiEventRBAC.test_get_events_without_project()[source]
TestBaseApiEventRBAC.test_get_events_without_scope()[source]
TestBaseApiEventRBAC.test_get_events_without_user()[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.