Skip to content

Commit

Permalink
Fix dashboards export test (#17768) (#18372)
Browse files Browse the repository at this point in the history
Test is checking an error message from Kibana that has changed.
(cherry picked from commit 8c9391c)

Co-authored-by: Jaime Soriano Pastor <jsorianopastor@gmail.com>
  • Loading branch information
kvch and jsoriano committed May 8, 2020
1 parent 5a5a335 commit fb361a7
Showing 1 changed file with 8 additions and 5 deletions.
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

0 comments on commit fb361a7

Please sign in to comment.