mirror of
https://github.com/pi-hole/docker-pi-hole.git
synced 2025-12-20 02:18:51 +00:00
Add tests for UID/GID switching
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
This commit is contained in:
11
test/tests/test_general.py
Normal file
11
test/tests/test_general.py
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
import pytest
|
||||||
|
|
||||||
|
@pytest.mark.parametrize("test_args", ['-e "PIHOLE_UID=456"'])
|
||||||
|
def test_pihole_uid_env_var(docker):
|
||||||
|
func = docker.run('id -u pihole')
|
||||||
|
assert "456" in func.stdout
|
||||||
|
|
||||||
|
@pytest.mark.parametrize("test_args", ['-e "PIHOLE_GID=456"'])
|
||||||
|
def test_pihole_gid_env_var(docker):
|
||||||
|
func = docker.run('id -g pihole')
|
||||||
|
assert "456" in func.stdout
|
||||||
Reference in New Issue
Block a user