mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Test suite improvements:
- Test framework support API testing with multiple server for this we need to modify test_config.json(for user it’s test_config.json.in) and test_advanced_config.json(for user it’s test_advanced_config.json.in). Server details of PG and PPAS are included in both .in files. - Removed the logic of logging in the test client on each test scenario(As per Khushboo's comment in previous email). We need this logic in test cases under ‘browser/tests/’ as for test scenarios like change password and invalid login test cases as test client should be logged out first. So, as per this the code is slightly modified in ‘browser/tests/’.
This commit is contained in:
committed by
Dave Page
parent
b6e8d195dc
commit
5c3c543d2e
@@ -12,4 +12,4 @@ from pgadmin.utils.route import BaseTestGenerator
|
||||
|
||||
class SGGenerateTestCase(BaseTestGenerator):
|
||||
def runTest(self):
|
||||
return
|
||||
return
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
import json
|
||||
|
||||
from pgadmin.utils.route import BaseTestGenerator
|
||||
from regression import test_utils as utils
|
||||
from regression.test_setup import config_data
|
||||
|
||||
|
||||
@@ -24,14 +23,6 @@ class SgNodeTestCase(BaseTestGenerator):
|
||||
('Check Server Group Node', dict(url='/browser/server-group/obj/'))
|
||||
]
|
||||
|
||||
def setUp(self):
|
||||
"""
|
||||
This function login the test account before running the logout
|
||||
test case
|
||||
"""
|
||||
|
||||
utils.login_tester_account(self.tester)
|
||||
|
||||
def runTest(self):
|
||||
"""This function will check available server groups."""
|
||||
|
||||
@@ -41,8 +32,3 @@ class SgNodeTestCase(BaseTestGenerator):
|
||||
self.assertTrue(response.status_code, 200)
|
||||
response_data = json.loads(response.data.decode('utf8'))
|
||||
self.assertTrue(response_data['id'], server_group_id)
|
||||
|
||||
def tearDown(self):
|
||||
"""This function logout the test account """
|
||||
|
||||
utils.logout_tester_account(self.tester)
|
||||
|
||||
Reference in New Issue
Block a user