Skip to content
This repository has been archived by the owner on Jan 12, 2025. It is now read-only.

Commit

Permalink
test: added apk installer tests
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbraun89 authored Sep 5, 2023
1 parent 24977df commit 2d38274
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions tests/installers/apk/test_apk_installer.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import pytest
from helpers import execute_current_python_in_container


@pytest.mark.parametrize(
"packages,test_command,image,excpected_result,docker_platform",
[
(
"bash",
"which bash",
"alpine",
0,
"linux/amd64",
)
],
)
def test_apk_install(
packages: str,
test_command,
image: str,
excpected_result: int,
docker_platform: str,
) -> None:
full_test_command = f"sudo PYTHONPATH=$PYTHONPATH python3 -m nanolayer install apk {packages} && {test_command}"

assert excpected_result == execute_current_python_in_container(
test_command=full_test_command,
image=image,
docker_platform=docker_platform,
)

0 comments on commit 2d38274

Please sign in to comment.