diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/test_ruby_isolation.py | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/test/test_ruby_isolation.py b/test/test_ruby_isolation.py index bf934540..79c94ba2 100644 --- a/test/test_ruby_isolation.py +++ b/test/test_ruby_isolation.py @@ -26,7 +26,7 @@ class TestRubyIsolation(TestApplicationRuby): return check if not complete_check else check() - def test_ruby_isolation_rootfs(self, is_su): + def test_ruby_isolation_rootfs_mount_namespace(self, is_su): isolation_features = option.available['features']['isolation'].keys() if 'mnt' not in isolation_features: @@ -55,3 +55,22 @@ class TestRubyIsolation(TestApplicationRuby): ) assert self.get()['status'] == 200, 'status int' + + def test_ruby_isolation_rootfs(self, is_su): + if not is_su: + pytest.skip('requires root') + return + + isolation = {'rootfs': option.test_dir} + + self.load('status_int', isolation=isolation) + + assert 'success' in self.conf( + '"/ruby/status_int/config.ru"', 'applications/status_int/script', + ) + + assert 'success' in self.conf( + '"/ruby/status_int"', 'applications/status_int/working_directory', + ) + + assert self.get()['status'] == 200, 'status int' |