Skip to content
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.

Commit

Permalink
Don't test permissions of headless browser files
Browse files Browse the repository at this point in the history
Kibana installs headless browsers at run time. We can't control the
permissions of these files at build time, so we should not make
assertions about those permissions.

This patch excludes new files that were added by elastic/kibana#21788.

Fixes #99
  • Loading branch information
jarpy committed Sep 17, 2018
1 parent 3b6afcc commit c1de1a6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ def exclude_browser_files(files):
can have unexpected ownership, group or mode.
'''
# REF: https://github.com/elastic/kibana/blob/fe4609647dd2a7a7fedfb23d63f5886a24eacbe1/x-pack/plugins/reporting/server/browsers/install.js#L41 # noqa
return [f for f in files if not f.startswith('/usr/share/kibana/data/phantomjs-')]
files = [f for f in files if not f.startswith('/usr/share/kibana/data/phantomjs-')]
files = [f for f in files if not f.startswith('/usr/share/kibana/data/headless_shell-')]
return files


def test_kibana_is_the_correct_version(kibana):
Expand Down

0 comments on commit c1de1a6

Please sign in to comment.