From 2a5f539d9a830f0ace1a38a707e3dba2b232bc4f Mon Sep 17 00:00:00 2001 From: Luca Beltrame Date: Wed, 25 Nov 2015 14:26:51 +0100 Subject: [PATCH] Add tests for testing gid and uid with the webroot plugin They pass. --- letsencrypt/plugins/webroot_test.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/letsencrypt/plugins/webroot_test.py b/letsencrypt/plugins/webroot_test.py index 3fa7f2994..862921d1d 100644 --- a/letsencrypt/plugins/webroot_test.py +++ b/letsencrypt/plugins/webroot_test.py @@ -81,6 +81,11 @@ class AuthenticatorTest(unittest.TestCase): actual_permissions = stat.S_IMODE(os.stat(self.validation_path).st_mode) self.assertEqual(parent_permissions, actual_permissions) + parent_gid = os.stat(self.path).st_gid + parent_uid = os.stat(self.path).st_uid + + self.assertEqual(os.stat(self.validation_path).st_gid, parent_gid) + self.assertEqual(os.stat(self.validation_path).st_uid, parent_uid) def test_perform_cleanup(self): responses = self.auth.perform([self.achall])