Skip to content

Commit

Permalink
Merge branch 'master' into generate-package-fields
Browse files Browse the repository at this point in the history
  • Loading branch information
jalvz committed Nov 25, 2020
2 parents 099c3bb + 4727a8b commit 4d29307
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
7 changes: 1 addition & 6 deletions tests/system/apmserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,7 @@
from elasticsearch import Elasticsearch, NotFoundError
import requests

# Add libbeat/tests/system to the import path.
output = subprocess.check_output(["go", "list", "-m", "-f", "{{.Path}} {{.Dir}}", "all"]).decode("utf-8")
beats_line = [line for line in output.splitlines() if line.startswith("github.com/elastic/beats/")][0]
beats_dir = beats_line.split(" ", 2)[1]
sys.path.append(os.path.join(beats_dir, 'libbeat', 'tests', 'system'))

import libbeat_paths
from beat.beat import INTEGRATION_TESTS, TestCase, TimeoutError
from helper import wait_until
from es_helper import cleanup, default_pipelines
Expand Down
9 changes: 9 additions & 0 deletions tests/system/libbeat_paths.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import os.path
import subprocess
import sys

# Add libbeat/tests/system to the import path.
output = subprocess.check_output(["go", "list", "-m", "-f", "{{.Path}} {{.Dir}}", "all"]).decode("utf-8")
beats_line = [line for line in output.splitlines() if line.startswith("github.com/elastic/beats/")][0]
beats_dir = beats_line.split(" ", 2)[1]
sys.path.append(os.path.join(beats_dir, 'libbeat', 'tests', 'system'))
1 change: 1 addition & 0 deletions tests/system/test_tls.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

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

requests.packages.urllib3.disable_warnings(SubjectAltNameWarning)

@integration_test
class TestSecureServerBaseTest(ServerBaseTest):
Expand Down

0 comments on commit 4d29307

Please sign in to comment.