os-loganalyze/os_loganalyze/tests
Clark Boylan 0f40dfd634 Better supports sev checking
Previously we attempted to check supports sev by running re.search
against the full log path of the log file. This meannt that the re that
roughly said: r'/neutron-' could match job logs like this:

  http://logs.openstack.org/17/553617/16/check/neutron-tempest-plugin-dvr-multinode-scenario/42fb158/job-output.txt.gz

Unfortunately that meant that all neutron logs had to support sev and if
they didn't (which job output doesn't) then we'd serve no logs to the
user if they set a log level.

We address this by switching to matching on the basename of the path and
by switching to re.match so that we only match from the beginning of the
re.

Change-Id: Ia428dc7339f06a15c58001e99ca677cb6059186b
2018-04-17 15:33:38 -07:00
..
samples Support the log level "CRITICAL" 2017-10-04 16:51:59 -07:00
__init__.py add the missing init, so tests actually do a thing! 2013-10-11 13:28:24 -04:00
base.py Add support for rfc7233 range headers. 2015-11-11 16:05:06 -08:00
test_filters.py Better supports sev checking 2018-04-17 15:33:38 -07:00
test_os_loganalyze.py fix pep8 errors from cookiecutter 2013-10-11 10:04:09 -04:00
test_views.py Skip whitespace for html view 2015-09-30 23:28:09 +10:00
test_wsgi.py Support the log level "CRITICAL" 2017-10-04 16:51:59 -07:00