| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
"""Test how services can be used in the additional build contexts.""" |
| 5 |
|
| 6 |
import os |
| 7 |
import unittest |
| 8 |
|
| 9 |
from tests.integration.test_utils import RunSubprocessMixin |
| 10 |
from tests.integration.test_utils import podman_compose_path |
| 11 |
from tests.integration.test_utils import test_path |
| 12 |
|
| 13 |
|
| 14 |
def compose_yaml_path() -> str: |
| 15 |
""" "Returns the path to the compose file used for this test module""" |
| 16 |
return os.path.join(test_path(), "additional_contexts_services", "docker-compose.yml") |
| 17 |
|
| 18 |
|
| 19 |
class TestComposeBuildAdditionalContextsServices(unittest.TestCase, RunSubprocessMixin): |
| 20 |
def test_build_additional_contexts_services(self) -> None: |
| 21 |
|
| 22 |
|
| 23 |
self.run_subprocess_assert_returncode([ |
| 24 |
podman_compose_path(), |
| 25 |
"-f", |
| 26 |
compose_yaml_path(), |
| 27 |
"build", |
| 28 |
]) |