Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cherry-pick #17768 to 7.8: Fix dashboards export test #18373

Merged
merged 1 commit into from
May 8, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions libbeat/tests/system/test_dashboard.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
from base import BaseTest
import os
import os.path
import re
import requests
import semver
import subprocess
from nose.plugins.attrib import attr
import unittest

from base import BaseTest
from nose.plugins.attrib import attr
from unittest import SkipTest
import requests
import semver

INTEGRATION_TESTS = os.environ.get('INTEGRATION_TESTS', False)

Expand Down Expand Up @@ -188,7 +190,8 @@ def test_export_dashboard_cmd_export_dashboard_by_id_unknown_id(self):

beat.check_wait(exit_code=1)

assert self.log_contains("error exporting dashboard: Not found") is True
expected_error = re.compile("error exporting dashboard:.*not found", re.IGNORECASE)
assert self.log_contains(expected_error)

@unittest.skipUnless(INTEGRATION_TESTS, "integration test")
@attr('integration')
Expand Down