summaryrefslogtreecommitdiffhomepage
path: root/test/test_go_isolation_rootfs.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_go_isolation_rootfs.py')
-rw-r--r--test/test_go_isolation_rootfs.py22
1 files changed, 8 insertions, 14 deletions
diff --git a/test/test_go_isolation_rootfs.py b/test/test_go_isolation_rootfs.py
index b4d73ec8..aa07b80d 100644
--- a/test/test_go_isolation_rootfs.py
+++ b/test/test_go_isolation_rootfs.py
@@ -1,26 +1,20 @@
-import os
-
import pytest
from unit.applications.lang.go import TestApplicationGo
+prerequisites = {
+ 'modules': {'go': 'all'},
+ 'features': {'isolation': True},
+ 'privileged_user': True,
+}
-class TestGoIsolationRootfs(TestApplicationGo):
- prerequisites = {'modules': {'go': 'all'}}
+class TestGoIsolationRootfs(TestApplicationGo):
@pytest.fixture(autouse=True)
def setup_method_fixture(self, skip_alert):
skip_alert(r'\[unit\] close\(\d+\) failed: Bad file descriptor')
- def test_go_isolation_rootfs_chroot(self, is_su, temp_dir):
- if not is_su:
- pytest.skip('requires root')
-
- if os.uname().sysname == 'Darwin':
- pytest.skip('chroot tests not supported on OSX')
-
- isolation = {
- 'rootfs': temp_dir,
- }
+ def test_go_isolation_rootfs_chroot(self, temp_dir):
+ isolation = {'rootfs': temp_dir}
self.load('ns_inspect', isolation=isolation)