File tree Expand file tree Collapse file tree 2 files changed +36
-4
lines changed
Expand file tree Collapse file tree 2 files changed +36
-4
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ # SPDX-License-Identifier: GPL-2.0
2+ import os
3+ import unittest
4+
5+ from tests .integration .test_podman_compose import podman_compose_path
6+ from tests .integration .test_podman_compose import test_path
7+ from tests .integration .test_utils import RunSubprocessMixin
8+
9+
10+ def compose_yaml_path ():
11+ return os .path .join (os .path .join (test_path (), "deps" ), "docker-compose.yaml" )
12+
13+
14+ class TestComposeDeps (unittest .TestCase , RunSubprocessMixin ):
15+ def test_deps (self ):
16+ try :
17+ output , error = self .run_subprocess_assert_returncode ([
18+ podman_compose_path (),
19+ "-f" ,
20+ compose_yaml_path (),
21+ "run" ,
22+ "--rm" ,
23+ "sleep" ,
24+ "/bin/sh" ,
25+ "-c" ,
26+ "wget -O - http://web:8000/hosts" ,
27+ ])
28+ self .assertIn (b"HTTP request sent, awaiting response... 200 OK" , output )
29+ self .assertIn (b"deps_web_1" , output )
30+ finally :
31+ self .run_subprocess_assert_returncode ([
32+ podman_compose_path (),
33+ "-f" ,
34+ compose_yaml_path (),
35+ "down" ,
36+ ])
You can’t perform that action at this time.
0 commit comments