FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
node-solid-server/docker-image/test/test_volumes.py at main · nodeSolidServer/node-solid-server · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
nodeSolidServer
/
node-solid-server
Public
Notifications
You must be signed in to change notification settings
Fork
308
Star
1.8k
Code
Issues
300
Pull requests
40
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
node-solid-server
/
docker-image
/
test
/
test_volumes.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
55 lines (44 loc) · 1.37 KB
Breadcrumbs
node-solid-server
/
docker-image
/
test
/
test_volumes.py
Copy path
File metadata and controls
55 lines (44 loc) · 1.37 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import
docker
import
pytest
from
test
.
wait_for_container
import
wait_for_container
testinfra_hosts
=
[
'docker://test_container'
]
@
pytest
.
fixture
(
scope
=
"module"
,
autouse
=
True
)
def
solid_server
(
client
,
image
):
container
=
client
.
containers
.
run
(
image
.
id
,
name
=
"solid_server"
,
detach
=
True
,
tty
=
True
)
wait_for_container
(
container
)
yield
container
container
.
remove
(
force
=
True
)
@
pytest
.
fixture
(
scope
=
"module"
,
autouse
=
True
)
def
container
(
client
,
solid_server
):
container
=
client
.
containers
.
run
(
'alpine'
,
name
=
"test_container"
,
detach
=
True
,
tty
=
True
,
volumes_from
=
solid_server
.
id
)
yield
container
container
.
remove
(
force
=
True
)
def
test_solid_data_dir_is_mounted
(
host
):
solid_data
=
host
.
file
(
"/opt/solid/data/"
)
assert
solid_data
.
exists
assert
solid_data
.
is_directory
assert
solid_data
.
uid
==
1000
assert
solid_data
.
gid
==
1000
def
test_solid_db_dir_is_mounted
(
host
):
solid_db
=
host
.
file
(
"/opt/solid/.db/"
)
assert
solid_db
.
exists
assert
solid_db
.
is_directory
assert
solid_db
.
uid
==
1000
assert
solid_db
.
gid
==
1000
def
test_solid_config_dir_is_mounted
(
host
):
solid_config
=
host
.
file
(
"/opt/solid/config/"
)
assert
solid_config
.
exists
assert
solid_config
.
is_directory
assert
solid_config
.
uid
==
1000
assert
solid_config
.
gid
==
1000
Back
|
FazBrowse Home
|
New Git URL