mirror of
https://github.com/containers/podman-compose.git
synced 2024-11-25 17:33:50 +01:00
fix: add include test file, edit the assertion
Signed-off-by: Zhen Liu <lzhen.dev@outlook.com>
This commit is contained in:
parent
1d64f2cf8c
commit
4f73f2b79e
6
tests/include/docker-compose.extend.yaml
Normal file
6
tests/include/docker-compose.extend.yaml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
version: '3.6'
|
||||||
|
|
||||||
|
services:
|
||||||
|
web2:
|
||||||
|
image: nopush/podman-compose-test
|
||||||
|
command: ["dumb-init", "/bin/busybox", "httpd", "-f", "-h", ".", "-p", "8004"]
|
@ -2,3 +2,4 @@ version: '3.6'
|
|||||||
|
|
||||||
include:
|
include:
|
||||||
- docker-compose.base.yaml
|
- docker-compose.base.yaml
|
||||||
|
- docker-compose.extend.yaml
|
||||||
|
@ -48,7 +48,7 @@ class TestPodmanComposeInclude(unittest.TestCase, RunSubprocessMixin):
|
|||||||
|
|
||||||
self.run_subprocess_assert_returncode(command_up)
|
self.run_subprocess_assert_returncode(command_up)
|
||||||
out, _ = self.run_subprocess_assert_returncode(command_check_container)
|
out, _ = self.run_subprocess_assert_returncode(command_check_container)
|
||||||
self.assertEqual(out, b'"localhost/nopush/podman-compose-test:latest"\n')
|
self.assertEqual(out, b'"localhost/nopush/podman-compose-test:latest"\n"localhost/nopush/podman-compose-test:latest"\n')
|
||||||
# Get container ID to remove it
|
# Get container ID to remove it
|
||||||
out, _ = self.run_subprocess_assert_returncode(command_container_id)
|
out, _ = self.run_subprocess_assert_returncode(command_container_id)
|
||||||
self.assertNotEqual(out, b"")
|
self.assertNotEqual(out, b"")
|
||||||
|
Loading…
Reference in New Issue
Block a user