mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-06 05:15:49 +01:00
test_submitUserCreation
This commit is contained in:
21
api/tests.py
21
api/tests.py
@@ -146,4 +146,25 @@ class TestAPI(TestCase):
|
||||
|
||||
self.assertEqual(suspend, 1)
|
||||
|
||||
def test_submitUserCreation(self):
|
||||
|
||||
## Login
|
||||
|
||||
data_ret = {
|
||||
"adminUser": "admin",
|
||||
"adminPass": "1234567",
|
||||
"firstName": "Usman",
|
||||
"lastName": "Nasir",
|
||||
"email": "usman@cyberpersons.com",
|
||||
"userName": "usman",
|
||||
"password": "helloworld123",
|
||||
"websitesLimit": 50,
|
||||
"selectedACL": "user",
|
||||
"securityLevel": "HIGH",
|
||||
}
|
||||
response = self.MakeRequest('submitUserCreation', data_ret)
|
||||
logging.writeToFile(str(response))
|
||||
|
||||
self.assertEqual(response['status'], 1)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user