forked from extern/podman-compose
remove unused test
This commit is contained in:
parent
a735aa5b96
commit
3b7bf81051
@ -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
|
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user