From bc2bddfb22cdb88e081aa3dfe4cd2891761b6784 Mon Sep 17 00:00:00 2001 From: Dylan Starink Date: Thu, 5 Dec 2024 12:10:27 -0800 Subject: [PATCH 1/4] External Integration test working! --- integration-test/test.py | 51 ++++++++++++++++++++++++++++++++++++++++ requirements.txt | 1 + 2 files changed, 52 insertions(+) create mode 100644 integration-test/test.py create mode 100644 requirements.txt diff --git a/integration-test/test.py b/integration-test/test.py new file mode 100644 index 000000000..702fb93ab --- /dev/null +++ b/integration-test/test.py @@ -0,0 +1,51 @@ +from testcontainers.mysql import MySqlContainer +from testcontainers.core.container import DockerContainer +from testcontainers.core.network import Network +import sqlalchemy +from testcontainers.core.waiting_utils import wait_for_logs + +from testcontainers.core.image import DockerImage +import socket +from contextlib import closing +import requests +import time +import docker +import re + +def find_free_port(): + with closing(socket.socket(socket.AF_INET, socket.SOCK_STREAM)) as s: + s.bind(('', 0)) + s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) + return s.getsockname()[1] + + +print("Assuming femr docker container is built with tag femr_femr\n\n") + +# my_sql_port = find_free_port() +client = docker.from_env() + +network_name = "femr_test_network" + str(time.time()) +network = client.networks.create(network_name, driver="bridge") + +sql_container_spec = MySqlContainer('mysql:9.1.0', "femr", "password", "password", "femr_db", 3306)\ + .with_network_aliases("mysql")\ + .with_command("mysqld --log-bin-trust-function-creators=1") + +try: + with sql_container_spec as mysql: + network.connect(mysql._container.id, aliases=["db"]) + + femr_container_spec = DockerContainer("femr_femr", network=network_name)\ + .with_bind_ports("9000", "9000")\ + .with_env("DB_URL", f'jdbc:mysql://db:3306/femr_db?characterEncoding=UTF-8&useSSL=false&allowPublicKeyRetrieval=true')\ + .with_env("DB_USER", 'femr')\ + .with_env("DB_PASS", 'password')\ + .with_env("IS_DOCKER",'true')\ + + + with femr_container_spec as femr_container: + wait_for_logs(femr_container, re.compile(".*Listening for HTTP on.*", flags=re.DOTALL | re.MULTILINE).search) + print("FEMR container is up and running!!!!!!!!!!!!!!!!") + print(requests.get(f"http://{femr_container.get_container_host_ip()}:{femr_container.get_exposed_port(9000)}")) +finally: + network.remove() \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 000000000..08271c2b4 --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +testcontainers==4.8.2 \ No newline at end of file From 098d67d406fdc6d18b4cdfaec502ea66121041b6 Mon Sep 17 00:00:00 2001 From: Dylan Starink Date: Tue, 10 Dec 2024 15:06:01 -0800 Subject: [PATCH 2/4] Integration tests Working on local host! --- integration-test/.gitignore | 176 +++++++++++++++++++++++ integration-test/Dockerfile | 17 +++ integration-test/README.md | 20 +++ integration-test/conftest.py | 80 +++++++++++ integration-test/pyproject.toml | 4 + integration-test/requirements.txt | 2 + integration-test/test.py | 51 ------- integration-test/tests/__init__.py | 0 integration-test/tests/test_something.py | 18 +++ 9 files changed, 317 insertions(+), 51 deletions(-) create mode 100644 integration-test/.gitignore create mode 100644 integration-test/Dockerfile create mode 100644 integration-test/README.md create mode 100644 integration-test/conftest.py create mode 100644 integration-test/pyproject.toml create mode 100644 integration-test/requirements.txt delete mode 100644 integration-test/test.py create mode 100644 integration-test/tests/__init__.py create mode 100644 integration-test/tests/test_something.py diff --git a/integration-test/.gitignore b/integration-test/.gitignore new file mode 100644 index 000000000..ad4a1f17f --- /dev/null +++ b/integration-test/.gitignore @@ -0,0 +1,176 @@ +# Created by https://www.toptal.com/developers/gitignore/api/python +# Edit at https://www.toptal.com/developers/gitignore?templates=python + +### Python ### +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +.Python +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +share/python-wheels/ +*.egg-info/ +.installed.cfg +*.egg +MANIFEST + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.nox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*.cover +*.py,cover +.hypothesis/ +.pytest_cache/ +cover/ + +# Translations +*.mo +*.pot + +# Django stuff: +*.log +local_settings.py +db.sqlite3 +db.sqlite3-journal + +# Flask stuff: +instance/ +.webassets-cache + +# Scrapy stuff: +.scrapy + +# Sphinx documentation +docs/_build/ + +# PyBuilder +.pybuilder/ +target/ + +# Jupyter Notebook +.ipynb_checkpoints + +# IPython +profile_default/ +ipython_config.py + +# pyenv +# For a library or package, you might want to ignore these files since the code is +# intended to run in multiple environments; otherwise, check them in: +# .python-version + +# pipenv +# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. +# However, in case of collaboration, if having platform-specific dependencies or dependencies +# having no cross-platform support, pipenv may install dependencies that don't work, or not +# install all needed dependencies. +#Pipfile.lock + +# poetry +# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control. +# This is especially recommended for binary packages to ensure reproducibility, and is more +# commonly ignored for libraries. +# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control +#poetry.lock + +# pdm +# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control. +#pdm.lock +# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it +# in version control. +# https://pdm.fming.dev/#use-with-ide +.pdm.toml + +# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm +__pypackages__/ + +# Celery stuff +celerybeat-schedule +celerybeat.pid + +# SageMath parsed files +*.sage.py + +# Environments +.env +.venv +env/ +venv/ +ENV/ +env.bak/ +venv.bak/ + +# Spyder project settings +.spyderproject +.spyproject + +# Rope project settings +.ropeproject + +# mkdocs documentation +/site + +# mypy +.mypy_cache/ +.dmypy.json +dmypy.json + +# Pyre type checker +.pyre/ + +# pytype static type analyzer +.pytype/ + +# Cython debug symbols +cython_debug/ + +# PyCharm +# JetBrains specific template is maintained in a separate JetBrains.gitignore that can +# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore +# and can be added to the global gitignore or merged into this file. For a more nuclear +# option (not recommended) you can uncomment the following to ignore the entire idea folder. +#.idea/ + +### Python Patch ### +# Poetry local configuration file - https://python-poetry.org/docs/configuration/#local-configuration +poetry.toml + +# ruff +.ruff_cache/ + +# LSP config files +pyrightconfig.json + +# End of https://www.toptal.com/developers/gitignore/api/python diff --git a/integration-test/Dockerfile b/integration-test/Dockerfile new file mode 100644 index 000000000..01c9e474f --- /dev/null +++ b/integration-test/Dockerfile @@ -0,0 +1,17 @@ +# Use an official Python runtime as a parent image +FROM python:3.9-slim + +# Set the working directory in the container +WORKDIR /app + +# Copy the requirements file into the container +COPY requirements.txt . + +# Install dependencies +RUN pip install --no-cache-dir -r requirements.txt + +# Copy the rest of the application into the container +COPY . . + +# Default command to run tests +CMD ["pytest", "-s"] diff --git a/integration-test/README.md b/integration-test/README.md new file mode 100644 index 000000000..c06db55f8 --- /dev/null +++ b/integration-test/README.md @@ -0,0 +1,20 @@ +# Integration Tests + +## Env Vars + +```bash +docker run -it --rm -v $(pwd):/app -w /app femr-femr pandoc README.md -o README.md +``` + +## Running Tests + +```bash +docker-compose -f docker-compose.test.yml up --build +``` + +## Running Tests with Coverage + +```bash +docker-compose -f docker-compose.test.yml -f docker-compose.coverage.yml up --build +``` + diff --git a/integration-test/conftest.py b/integration-test/conftest.py new file mode 100644 index 000000000..184b5702f --- /dev/null +++ b/integration-test/conftest.py @@ -0,0 +1,80 @@ +from testcontainers.mysql import MySqlContainer +from testcontainers.core.container import DockerContainer +from testcontainers.core.network import Network +from testcontainers.core.waiting_utils import wait_for_logs + +from testcontainers.core.image import DockerImage +import socket +from contextlib import closing +import requests +import time +import docker +import os +import re + + +### Environment Variables + + + + +# def find_free_port(): +# with closing(socket.socket(socket.AF_INET, socket.SOCK_STREAM)) as s: +# s.bind(('', 0)) +# s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) +# return s.getsockname()[1] + + +# # my_sql_port = find_free_port() +client = docker.from_env() + +try: + femr_image = os.getenv("FEMR_IMAGE_NAME", "femr-femr") + + # Verify Image exists + client.images.get(femr_image) +except: + femr_image = None + +assert femr_image is not None, "FEMR image not found, build image to 'femr-femr' or set FEMR_IMAGE_NAME environment variable to the correct image name" + +sql_container_spec = MySqlContainer('mysql:9.1.0', "femr", "password", "password", "femr_db", 3306)\ + .with_network_aliases("mysql")\ + .with_command("mysqld --log-bin-trust-function-creators=1") + + +import pytest + +@pytest.fixture(scope='function', autouse=True) +def run_before_and_after_tests(request): + """Fixture to execute asserts before and after a test is run""" + + network_name = "femr_test_network" + str(time.time()) + network = client.networks.create(network_name, driver="bridge") + + def cleanup(): + network.remove() + + request.addfinalizer(cleanup) + + with sql_container_spec as mysql: + network.connect(mysql._container.id, aliases=["db"]) + + femr_container_spec = DockerContainer(femr_image, network=network_name)\ + .with_bind_ports("9000", "9000")\ + .with_env("DB_URL", f'jdbc:mysql://db:3306/femr_db?characterEncoding=UTF-8&useSSL=false&allowPublicKeyRetrieval=true')\ + .with_env("DB_USER", 'femr')\ + .with_env("DB_PASS", 'password')\ + .with_env("IS_DOCKER",'true')\ + + + with femr_container_spec as femr_container: + wait_for_logs(femr_container, re.compile(".*Listening for HTTP on.*", flags=re.DOTALL | re.MULTILINE).search) + + print("Femr Started") + + femr_address = f"http://{femr_container.get_container_host_ip()}:{femr_container.get_exposed_port(9000)}" + os.environ["FEMR_ADDRESS"] = femr_address + + yield + diff --git a/integration-test/pyproject.toml b/integration-test/pyproject.toml new file mode 100644 index 000000000..1eecb10f4 --- /dev/null +++ b/integration-test/pyproject.toml @@ -0,0 +1,4 @@ +[tool.pytest.ini_options] +addopts = [ + "--import-mode=importlib", +] \ No newline at end of file diff --git a/integration-test/requirements.txt b/integration-test/requirements.txt new file mode 100644 index 000000000..a75d420e7 --- /dev/null +++ b/integration-test/requirements.txt @@ -0,0 +1,2 @@ +testcontainers==4.9.0 +pytest==8.3.4 \ No newline at end of file diff --git a/integration-test/test.py b/integration-test/test.py deleted file mode 100644 index 702fb93ab..000000000 --- a/integration-test/test.py +++ /dev/null @@ -1,51 +0,0 @@ -from testcontainers.mysql import MySqlContainer -from testcontainers.core.container import DockerContainer -from testcontainers.core.network import Network -import sqlalchemy -from testcontainers.core.waiting_utils import wait_for_logs - -from testcontainers.core.image import DockerImage -import socket -from contextlib import closing -import requests -import time -import docker -import re - -def find_free_port(): - with closing(socket.socket(socket.AF_INET, socket.SOCK_STREAM)) as s: - s.bind(('', 0)) - s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) - return s.getsockname()[1] - - -print("Assuming femr docker container is built with tag femr_femr\n\n") - -# my_sql_port = find_free_port() -client = docker.from_env() - -network_name = "femr_test_network" + str(time.time()) -network = client.networks.create(network_name, driver="bridge") - -sql_container_spec = MySqlContainer('mysql:9.1.0', "femr", "password", "password", "femr_db", 3306)\ - .with_network_aliases("mysql")\ - .with_command("mysqld --log-bin-trust-function-creators=1") - -try: - with sql_container_spec as mysql: - network.connect(mysql._container.id, aliases=["db"]) - - femr_container_spec = DockerContainer("femr_femr", network=network_name)\ - .with_bind_ports("9000", "9000")\ - .with_env("DB_URL", f'jdbc:mysql://db:3306/femr_db?characterEncoding=UTF-8&useSSL=false&allowPublicKeyRetrieval=true')\ - .with_env("DB_USER", 'femr')\ - .with_env("DB_PASS", 'password')\ - .with_env("IS_DOCKER",'true')\ - - - with femr_container_spec as femr_container: - wait_for_logs(femr_container, re.compile(".*Listening for HTTP on.*", flags=re.DOTALL | re.MULTILINE).search) - print("FEMR container is up and running!!!!!!!!!!!!!!!!") - print(requests.get(f"http://{femr_container.get_container_host_ip()}:{femr_container.get_exposed_port(9000)}")) -finally: - network.remove() \ No newline at end of file diff --git a/integration-test/tests/__init__.py b/integration-test/tests/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/integration-test/tests/test_something.py b/integration-test/tests/test_something.py new file mode 100644 index 000000000..9c50d16fa --- /dev/null +++ b/integration-test/tests/test_something.py @@ -0,0 +1,18 @@ +import os +import requests + +def test_hello(): + femr_address = os.getenv("FEMR_ADDRESS") + + assert femr_address is not None, "FEMR_ADDRESS environment variable not set" + + response = requests.get(femr_address) + assert response.status_code == 200 + +def test_hello2(): + femr_address = os.getenv("FEMR_ADDRESS") + + assert femr_address is not None, "FEMR_ADDRESS environment variable not set" + + response = requests.get(f"{femr_address}/thispath-doesnotexist") + assert response.status_code == 200 \ No newline at end of file From af519215325a5399cc39957b647c7c24e9ce14d3 Mon Sep 17 00:00:00 2001 From: Dylan Starink Date: Tue, 10 Dec 2024 16:24:01 -0800 Subject: [PATCH 3/4] Setup basic integration tests --- integration-test/Dockerfile | 2 +- integration-test/README.md | 21 +++++---- integration-test/conftest.py | 31 ++++++------ integration-test/requirements.txt | 3 +- .../tests/test_basic_functionality.py | 47 +++++++++++++++++++ integration-test/tests/test_something.py | 18 ------- 6 files changed, 76 insertions(+), 46 deletions(-) create mode 100644 integration-test/tests/test_basic_functionality.py delete mode 100644 integration-test/tests/test_something.py diff --git a/integration-test/Dockerfile b/integration-test/Dockerfile index 01c9e474f..a0dfedeb6 100644 --- a/integration-test/Dockerfile +++ b/integration-test/Dockerfile @@ -14,4 +14,4 @@ RUN pip install --no-cache-dir -r requirements.txt COPY . . # Default command to run tests -CMD ["pytest", "-s"] +CMD ["pytest"] diff --git a/integration-test/README.md b/integration-test/README.md index c06db55f8..5730f2d47 100644 --- a/integration-test/README.md +++ b/integration-test/README.md @@ -1,20 +1,23 @@ # Integration Tests -## Env Vars +Integration tests for fEMR. This project will bring up the entire fEMR stack with docker then run tests against it. -```bash -docker run -it --rm -v $(pwd):/app -w /app femr-femr pandoc README.md -o README.md -``` +Assumes that the femr docker container's name is `femr-femr`, otherwise you will need to re-build it with the new name. + +## Run with Docker -## Running Tests +Ensure that the femr container is built with name `femr-femr`, before running the tests. + +In the `integration-test` directory, run the tests with: ```bash -docker-compose -f docker-compose.test.yml up --build +docker compose up --build ``` -## Running Tests with Coverage +## Build Image + +In the root of the fEMR repository: ```bash -docker-compose -f docker-compose.test.yml -f docker-compose.coverage.yml up --build +docker compose build ``` - diff --git a/integration-test/conftest.py b/integration-test/conftest.py index 184b5702f..d4ef4c50a 100644 --- a/integration-test/conftest.py +++ b/integration-test/conftest.py @@ -1,4 +1,6 @@ from testcontainers.mysql import MySqlContainer +from testcontainers.selenium import BrowserWebDriverContainer +from selenium.webdriver import DesiredCapabilities from testcontainers.core.container import DockerContainer from testcontainers.core.network import Network from testcontainers.core.waiting_utils import wait_for_logs @@ -12,20 +14,6 @@ import os import re - -### Environment Variables - - - - -# def find_free_port(): -# with closing(socket.socket(socket.AF_INET, socket.SOCK_STREAM)) as s: -# s.bind(('', 0)) -# s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) -# return s.getsockname()[1] - - -# # my_sql_port = find_free_port() client = docker.from_env() try: @@ -45,7 +33,7 @@ import pytest -@pytest.fixture(scope='function', autouse=True) +@pytest.fixture(scope='module', autouse=True) def run_before_and_after_tests(request): """Fixture to execute asserts before and after a test is run""" @@ -60,15 +48,18 @@ def cleanup(): with sql_container_spec as mysql: network.connect(mysql._container.id, aliases=["db"]) - femr_container_spec = DockerContainer(femr_image, network=network_name)\ + femr_container_spec = DockerContainer(femr_image)\ .with_bind_ports("9000", "9000")\ .with_env("DB_URL", f'jdbc:mysql://db:3306/femr_db?characterEncoding=UTF-8&useSSL=false&allowPublicKeyRetrieval=true')\ .with_env("DB_USER", 'femr')\ .with_env("DB_PASS", 'password')\ - .with_env("IS_DOCKER",'true')\ + .with_env("IS_DOCKER",'true') + with femr_container_spec as femr_container: + network.connect(femr_container_spec._container.id, aliases=["femr"]) + wait_for_logs(femr_container, re.compile(".*Listening for HTTP on.*", flags=re.DOTALL | re.MULTILINE).search) print("Femr Started") @@ -78,3 +69,9 @@ def cleanup(): yield + +@pytest.fixture(scope='session', autouse=True) +def setup_selenium_container(): + with BrowserWebDriverContainer(DesiredCapabilities.CHROME) as selenium_container: + os.environ["SELENIUM_ADDRESS"] = selenium_container.get_connection_url() + yield \ No newline at end of file diff --git a/integration-test/requirements.txt b/integration-test/requirements.txt index a75d420e7..88d226085 100644 --- a/integration-test/requirements.txt +++ b/integration-test/requirements.txt @@ -1,2 +1,3 @@ testcontainers==4.9.0 -pytest==8.3.4 \ No newline at end of file +pytest==8.3.4 +selenium==4.27.1 \ No newline at end of file diff --git a/integration-test/tests/test_basic_functionality.py b/integration-test/tests/test_basic_functionality.py new file mode 100644 index 000000000..88f41ea11 --- /dev/null +++ b/integration-test/tests/test_basic_functionality.py @@ -0,0 +1,47 @@ +import pytest +import time +import json +from selenium import webdriver +from selenium.webdriver.common.by import By +from selenium.webdriver.common.action_chains import ActionChains +from selenium.webdriver.support import expected_conditions +from selenium.webdriver.support.wait import WebDriverWait +from selenium.webdriver.common.keys import Keys +from selenium.webdriver.common.desired_capabilities import DesiredCapabilities +import os +import requests + + +def test_femr_is_alive(): + femr_address = os.getenv("FEMR_ADDRESS") + + assert femr_address is not None, "FEMR_ADDRESS environment variable not set" + + response = requests.get(femr_address) + assert response.status_code == 200 + +def test_can_login_and_logout_to_admin(): + femr_address = os.getenv("FEMR_ADDRESS") + + assert femr_address is not None, "FEMR_ADDRESS environment variable not set" + + driver_address = os.getenv("SELENIUM_ADDRESS") + + assert driver_address is not None, "SELENIUM_ADDRESS environment variable not set" + + driver = webdriver.Remote(command_executor=driver_address, options=webdriver.ChromeOptions()) + + driver.get(f"{femr_address}/") + + # Test Login + driver.set_window_size(1361, 1157) + driver.find_element(By.NAME, "email").click() + driver.find_element(By.NAME, "email").send_keys("admin") + driver.find_element(By.NAME, "password").send_keys("admin") + driver.find_element(By.CSS_SELECTOR, "input:nth-child(4)").click() + assert "Welcome to fEMR" in driver.find_element(By.ID, "home_index_h2_Welcome").text + + # Test Logout + driver.find_element(By.CSS_SELECTOR, ".glyphicon-log-out").click() + assert driver.find_element(By.CSS_SELECTOR, "h1").text == "Please sign in" + \ No newline at end of file diff --git a/integration-test/tests/test_something.py b/integration-test/tests/test_something.py deleted file mode 100644 index 9c50d16fa..000000000 --- a/integration-test/tests/test_something.py +++ /dev/null @@ -1,18 +0,0 @@ -import os -import requests - -def test_hello(): - femr_address = os.getenv("FEMR_ADDRESS") - - assert femr_address is not None, "FEMR_ADDRESS environment variable not set" - - response = requests.get(femr_address) - assert response.status_code == 200 - -def test_hello2(): - femr_address = os.getenv("FEMR_ADDRESS") - - assert femr_address is not None, "FEMR_ADDRESS environment variable not set" - - response = requests.get(f"{femr_address}/thispath-doesnotexist") - assert response.status_code == 200 \ No newline at end of file From 12d6e7f11127e1f1e8dfb5d595751b59d4030d89 Mon Sep 17 00:00:00 2001 From: Dylan Starink Date: Tue, 10 Dec 2024 16:25:37 -0800 Subject: [PATCH 4/4] Rename integration-test to integration_test --- {integration-test => integration_test}/.gitignore | 0 {integration-test => integration_test}/Dockerfile | 0 {integration-test => integration_test}/README.md | 0 {integration-test => integration_test}/conftest.py | 0 {integration-test => integration_test}/pyproject.toml | 0 {integration-test => integration_test}/requirements.txt | 0 {integration-test => integration_test}/tests/__init__.py | 0 .../tests/test_basic_functionality.py | 0 8 files changed, 0 insertions(+), 0 deletions(-) rename {integration-test => integration_test}/.gitignore (100%) rename {integration-test => integration_test}/Dockerfile (100%) rename {integration-test => integration_test}/README.md (100%) rename {integration-test => integration_test}/conftest.py (100%) rename {integration-test => integration_test}/pyproject.toml (100%) rename {integration-test => integration_test}/requirements.txt (100%) rename {integration-test => integration_test}/tests/__init__.py (100%) rename {integration-test => integration_test}/tests/test_basic_functionality.py (100%) diff --git a/integration-test/.gitignore b/integration_test/.gitignore similarity index 100% rename from integration-test/.gitignore rename to integration_test/.gitignore diff --git a/integration-test/Dockerfile b/integration_test/Dockerfile similarity index 100% rename from integration-test/Dockerfile rename to integration_test/Dockerfile diff --git a/integration-test/README.md b/integration_test/README.md similarity index 100% rename from integration-test/README.md rename to integration_test/README.md diff --git a/integration-test/conftest.py b/integration_test/conftest.py similarity index 100% rename from integration-test/conftest.py rename to integration_test/conftest.py diff --git a/integration-test/pyproject.toml b/integration_test/pyproject.toml similarity index 100% rename from integration-test/pyproject.toml rename to integration_test/pyproject.toml diff --git a/integration-test/requirements.txt b/integration_test/requirements.txt similarity index 100% rename from integration-test/requirements.txt rename to integration_test/requirements.txt diff --git a/integration-test/tests/__init__.py b/integration_test/tests/__init__.py similarity index 100% rename from integration-test/tests/__init__.py rename to integration_test/tests/__init__.py diff --git a/integration-test/tests/test_basic_functionality.py b/integration_test/tests/test_basic_functionality.py similarity index 100% rename from integration-test/tests/test_basic_functionality.py rename to integration_test/tests/test_basic_functionality.py