Set the right permissions for signing_dir in tests

This partially fixes a bug with permissions warnings being logged
during the tests.

Change-Id: Ia399a52a49a0ca9d6b74ea90147beea42a36b24d
Partial-Bug: #1219480
This commit is contained in:
Matt Fischer
2014-03-02 20:22:26 -07:00
parent 3a6d47c154
commit 528a070752

View File

@@ -1070,7 +1070,7 @@ class CertDownloadMiddlewareTest(BaseAuthTokenMiddlewareTest,
self.base_dir = tempfile.mkdtemp() self.base_dir = tempfile.mkdtemp()
self.addCleanup(shutil.rmtree, self.base_dir) self.addCleanup(shutil.rmtree, self.base_dir)
self.cert_dir = os.path.join(self.base_dir, 'certs') self.cert_dir = os.path.join(self.base_dir, 'certs')
os.mkdir(self.cert_dir) os.makedirs(self.cert_dir, stat.S_IRWXU)
conf = { conf = {
'signing_dir': self.cert_dir, 'signing_dir': self.cert_dir,
} }