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

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

Test ACL.

class panko.tests.functional.api.v2.test_acl_scenarios.TestAPIACL(*args, **kwds)[source]

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

get_json(path, expect_errors=False, headers=None, q=None, **params)[source]

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
setUp(**kwargs)[source]

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

class panko.tests.functional.api.v2.test_acl_scenarios.TestAPIEventACL(*args, **kwds)[source]

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

test_non_admin_get_event_types(**kwargs)[source]
class panko.tests.functional.api.v2.test_acl_scenarios.TestApiEventAdminRBAC(*args, **kwds)[source]

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

tearDown()[source]

Hook method for deconstructing the test fixture after testing it.

test_get_event(**kwargs)[source]
test_get_event_bad(**kwargs)[source]
test_get_events(**kwargs)[source]
test_get_events_bad(**kwargs)[source]
class panko.tests.functional.api.v2.test_acl_scenarios.TestBaseApiEventRBAC(*args, **kwds)[source]

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

setUp(**kwargs)[source]

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

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