remove unused test

This commit is contained in:
Muayyad alsadi 2022-03-08 10:47:16 +03:00
parent a735aa5b96
commit 3b7bf81051
2 changed files with 3 additions and 20 deletions

View File

@ -1,20 +0,0 @@
import pytest
from podman_compose import parse_short_mount
@pytest.fixture
def multi_propagation_mount_str():
return "/foo/bar:/baz:U,Z"
def test_parse_short_mount_multi_propagation(multi_propagation_mount_str):
expected = {
"type": "bind",
"source": "/foo/bar",
"target": "/baz",
"bind": {
"propagation": "U,Z",
},
}
assert parse_short_mount(multi_propagation_mount_str, "/") == expected

View File

@ -4,6 +4,7 @@ services:
image: busybox image: busybox
command: ["/bin/busybox", "httpd", "-f", "-h", "/var/www/html", "-p", "8000"] command: ["/bin/busybox", "httpd", "-f", "-h", "/var/www/html", "-p", "8000"]
working_dir: /var/www/html working_dir: /var/www/html
restart: always
volumes: volumes:
- /var/www/html - /var/www/html
tmpfs: tmpfs:
@ -12,6 +13,7 @@ services:
web1: web1:
image: busybox image: busybox
command: ["/bin/busybox", "httpd", "-f", "-h", "/var/www/html", "-p", "8001"] command: ["/bin/busybox", "httpd", "-f", "-h", "/var/www/html", "-p", "8001"]
restart: unless-stopped
working_dir: /var/www/html working_dir: /var/www/html
volumes: volumes:
- myvol1:/var/www/html:ro,z - myvol1:/var/www/html:ro,z
@ -32,6 +34,7 @@ services:
- data3:/var/www/html_data3 - data3:/var/www/html_data3
volumes: volumes:
myvol1:
myvol2: myvol2:
labels: labels:
mylabel: myval mylabel: myval