summaryrefslogtreecommitdiffhomepage
path: root/test/test_go_isolation.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_go_isolation.py')
-rw-r--r--test/test_go_isolation.py14
1 files changed, 6 insertions, 8 deletions
diff --git a/test/test_go_isolation.py b/test/test_go_isolation.py
index e8fa26c6..e02ef1cf 100644
--- a/test/test_go_isolation.py
+++ b/test/test_go_isolation.py
@@ -3,10 +3,12 @@ import os
import pwd
import pytest
+
from unit.applications.lang.go import TestApplicationGo
from unit.option import option
from unit.utils import getns
+
class TestGoIsolation(TestApplicationGo):
prerequisites = {'modules': {'go': 'any'}, 'features': ['isolation']}
@@ -279,7 +281,7 @@ class TestGoIsolation(TestApplicationGo):
isolation['namespaces'] = {
'mount': True,
'credential': True,
- 'pid': True
+ 'pid': True,
}
self.load('ns_inspect', isolation=isolation)
@@ -337,12 +339,10 @@ class TestGoIsolation(TestApplicationGo):
isolation['namespaces'] = {
'mount': True,
'credential': True,
- 'pid': True
+ 'pid': True,
}
- isolation['automount'] = {
- 'tmpfs': False
- }
+ isolation['automount'] = {'tmpfs': False}
self.load('ns_inspect', isolation=isolation)
@@ -352,9 +352,7 @@ class TestGoIsolation(TestApplicationGo):
"/ /tmp" not in obj['Mounts'] and "tmpfs" not in obj['Mounts']
), 'app has no /tmp mounted'
- isolation['automount'] = {
- 'tmpfs': True
- }
+ isolation['automount'] = {'tmpfs': True}
self.load('ns_inspect', isolation=isolation)