mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-08 14:26:16 +01:00
test_obtainMailServerSSL
This commit is contained in:
@@ -86,6 +86,22 @@ class TestManageSSL(TestCase):
|
||||
import os
|
||||
self.assertEqual(os.path.islink(path), True)
|
||||
|
||||
def test_obtainMailServerSSL(self):
|
||||
## Issue SSL
|
||||
|
||||
data_ret = {'virtualHost': 'cyberpanel.xyz'}
|
||||
|
||||
response = self.MakeRequest('manageSSL/obtainMailServerSSL', data_ret)
|
||||
|
||||
self.assertEqual(response['status'], 1)
|
||||
|
||||
## Verify SSL
|
||||
|
||||
path = '/etc/postfix/key.pem'
|
||||
|
||||
import os
|
||||
self.assertEqual(os.path.islink(path), True)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user