Skip to content

Commit

Permalink
Integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
juditnovak committed Mar 21, 2024
1 parent eb2c72e commit ec3acb1
Show file tree
Hide file tree
Showing 4 changed files with 620 additions and 51 deletions.
3 changes: 3 additions & 0 deletions tests/integration/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env python3
# Copyright 2022 Canonical Ltd.
# See LICENSE file for licensing details.
13 changes: 13 additions & 0 deletions tests/integration/conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import subprocess

import pytest


@pytest.fixture(autouse=True, scope="module")
def opensearch_sysctl_settings():
"""Necessary settings for Opensearch
This should probably rather go to ci.yaml"""
subprocess.run(["sudo", "sysctl", "-w", "vm.swappiness=0"])
subprocess.run(["sudo", "sysctl", "-w", "vm.max_map_count=262144"])
subprocess.run(["sudo", "sysctl", "-w", "net.ipv4.tcp_retries2=5"])
Loading

0 comments on commit ec3acb1

Please sign in to comment.