l.s.w.t.t.TestErrorReportingUtility(TestCase) : class documentation

Part of lp.services.webapp.tests.test_errorlog View In Hierarchy

No class docstring
Method setUp Undocumented
Method test_configure Test ErrorReportingUtility.setConfigSection().
Method test_multiple_raises_in_request An OOPS links to the previous OOPS in the request, if any.
Method test_raising_with_request Test ErrorReportingUtility.raising() with a request
Method test_raising_with_xmlrpc_request Undocumented
Method test_raising_non_utf8_request_param_key_bug_896959 Undocumented
Method test_raising_with_webservice_request Undocumented
Method test_raising_for_script Test ErrorReportingUtility.raising with a ScriptRequest.
Method test_raising_with_unprintable_exception Undocumented
Method test_raising_unauthorized_without_request Unauthorized exceptions are logged when there's no request.
Method test_raising_unauthorized_without_principal Unauthorized exceptions are logged when the request has no
Method test_raising_unauthorized_with_unauthenticated_principal Unauthorized exceptions are not logged when the request has an
Method test_raising_unauthorized_with_authenticated_principal Unauthorized exceptions are logged when the request has an
Method test_raising_translation_unavailable Test ErrorReportingUtility.raising() with a TranslationUnavailable
Method test_ignored_exceptions_for_offsite_referer Undocumented
Method test_ignored_exceptions_for_offsite_referer_reported Undocumented
Method test_ignored_exceptions_for_cross_vhost_referer_reported Undocumented
Method test_ignored_exceptions_for_criss_cross_vhost_referer_reported Undocumented
Method test_ignored_exceptions_for_offsite_referer_not_reported Undocumented
Method test_raising_no_referrer_error Test ErrorReportingUtility.raising() with a NoReferrerError
Method test_raising_with_string_as_traceback Undocumented
Method test_oopsMessage oopsMessage pushes and pops the messages.
Method test__makeErrorReport_includes_oops_messages The error report should include the oops messages.
Method test__makeErrorReport_combines_request_and_error_vars The oops messages should be distinct from real request vars.
Method test_filter_session_statement Removes quoted strings if database_id is SQL-session.
Method test_filter_session_statement_noop If database_id is not SQL-session, it's a no-op.
Method test_session_queries_filtered Test that session queries are filtered.

Inherited from TestCase:

Method becomeDbUser Commit, then log into the database as dbuser.
Method __str__ The string representation of a test is its id.
Method useContext Use the supplied context in this test.
Method makeTemporaryDirectory Create a temporary directory, and return its path.
Method installKarmaRecorder Set up and return a KarmaRecorder.
Method assertProvides Assert 'obj' correctly provides 'interface'.
Method assertNotifies Assert that a callable performs a given notification.
Method assertNoNotification Assert that no notifications are generated by the callable.
Method assertSqlAttributeEqualsDate Fail unless the value of the attribute is equal to the date.
Method assertTextMatchesExpressionIgnoreWhitespace Undocumented
Method assertIsInstance Assert that an instance is an instance of assert_class.
Method assertIsNot Assert that expected is not the same object as observed.
Method assertContentEqual Assert that 'iter1' has the same content as 'iter2'.
Method assertRaisesWithContent Check if the given exception is raised with given content.
Method assertBetween Assert that 'variable' is strictly between two boundaries.
Method assertVectorEqual Apply assertEqual to all given pairs in one go.
Method expectedLog Expect a log to be written that matches the regex.
Method pushConfig Push some key-value pairs into a section of the config.
Method attachOopses Undocumented
Method attachLibrarianLog Include the logChunks from fixture in the test details.
Method assertStatementCount Assert that the expected number of SQL statements occurred.
Method useTempDir Use a temporary directory for this test.
Method assertEmailHeadersEqual Assert that two email headers are equal.
Method assertStartsWith Undocumented
Method assertEndsWith Asserts that s ends with suffix.
Method checkPermissions Check if the used_permissions match expected_permissions.
Method assertEmailQueueLength Pop the email queue, assert its length, and return it.
Method _unfoldEmailHeader Unfold a multiline email header.
def setUp(self):
Undocumented
def test_configure(self):
Test ErrorReportingUtility.setConfigSection().
def test_multiple_raises_in_request(self):
An OOPS links to the previous OOPS in the request, if any.
def test_raising_with_request(self):
Test ErrorReportingUtility.raising() with a request
def test_raising_with_xmlrpc_request(self):
Undocumented
def test_raising_non_utf8_request_param_key_bug_896959(self):
Undocumented
def test_raising_with_webservice_request(self):
Undocumented
def test_raising_for_script(self):
Test ErrorReportingUtility.raising with a ScriptRequest.
def test_raising_with_unprintable_exception(self):
Undocumented
def test_raising_unauthorized_without_request(self):
Unauthorized exceptions are logged when there's no request.
def test_raising_unauthorized_without_principal(self):
Unauthorized exceptions are logged when the request has no principal.
def test_raising_unauthorized_with_unauthenticated_principal(self):
Unauthorized exceptions are not logged when the request has an unauthenticated principal.
def test_raising_unauthorized_with_authenticated_principal(self):
Unauthorized exceptions are logged when the request has an authenticated principal.
def test_raising_translation_unavailable(self):
Test ErrorReportingUtility.raising() with a TranslationUnavailable exception.

An OOPS is not recorded when a TranslationUnavailable exception is raised.

def test_ignored_exceptions_for_offsite_referer(self):
Undocumented
def test_ignored_exceptions_for_offsite_referer_reported(self):
Undocumented
def test_ignored_exceptions_for_cross_vhost_referer_reported(self):
Undocumented
def test_ignored_exceptions_for_criss_cross_vhost_referer_reported(self):
Undocumented
def test_ignored_exceptions_for_offsite_referer_not_reported(self):
Undocumented
def test_raising_no_referrer_error(self):
Test ErrorReportingUtility.raising() with a NoReferrerError exception.

An OOPS is not recorded when a NoReferrerError exception is raised.

def test_raising_with_string_as_traceback(self):
Undocumented
def test_oopsMessage(self):
oopsMessage pushes and pops the messages.
def test__makeErrorReport_includes_oops_messages(self):
The error report should include the oops messages.
def test__makeErrorReport_combines_request_and_error_vars(self):
The oops messages should be distinct from real request vars.
def test_filter_session_statement(self):
Removes quoted strings if database_id is SQL-session.
def test_filter_session_statement_noop(self):
If database_id is not SQL-session, it's a no-op.
def test_session_queries_filtered(self):
Test that session queries are filtered.
API Documentation for Launchpad, generated by pydoctor at 2019-07-19 00:00:17.