mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Include passed test results in the JSON output from the regression tests.
This commit is contained in:
committed by
Dave Page
parent
7dd9efd811
commit
62716c4193
@@ -22,6 +22,11 @@ if sys.version_info[0] >= 3:
|
||||
|
||||
|
||||
class TestColumnForeignKeyGetConstraintCols(BaseTestGenerator):
|
||||
scenarios = [
|
||||
("Test foreign key get constraint with no foreign key properties on"
|
||||
" the column", dict())
|
||||
]
|
||||
|
||||
def runTest(self):
|
||||
""" When there are no foreign key properties on the column, it returns an empty result """
|
||||
with test_utils.Database(self.server) as (connection, database_name):
|
||||
|
||||
@@ -22,6 +22,11 @@ if sys.version_info[0] >= 3:
|
||||
|
||||
|
||||
class TestTablesAcl(BaseTestGenerator):
|
||||
scenarios = [
|
||||
("Test query returns the permissions when there are permissions set up"
|
||||
" on the table", dict())
|
||||
]
|
||||
|
||||
def runTest(self):
|
||||
""" This tests that when there are permissions set up on the table, acl query returns the permissions"""
|
||||
with test_utils.Database(self.server) as (connection, database_name):
|
||||
|
||||
@@ -19,7 +19,13 @@ from regression.python_test_utils import test_utils
|
||||
if sys.version_info[0] >= 3:
|
||||
long = int
|
||||
|
||||
|
||||
class TestTablesNode(BaseTestGenerator):
|
||||
scenarios = [
|
||||
("This scenario tests that all applicable sql template versions can "
|
||||
"fetch table names", dict())
|
||||
]
|
||||
|
||||
def runTest(self):
|
||||
""" This tests that all applicable sql template versions can fetch table names """
|
||||
with test_utils.Database(self.server) as (connection, database_name):
|
||||
|
||||
@@ -22,6 +22,11 @@ if sys.version_info[0] >= 3:
|
||||
|
||||
|
||||
class TestTablesProperties(BaseTestGenerator):
|
||||
scenarios = [
|
||||
("This scenario tests that all applicable sql template versions can "
|
||||
"fetch some ddl", dict())
|
||||
]
|
||||
|
||||
def runTest(self):
|
||||
""" This tests that all applicable sql template versions can fetch some ddl """
|
||||
with test_utils.Database(self.server) as (connection, database_name):
|
||||
|
||||
@@ -8,6 +8,10 @@ class TestCheckRecovery(BaseTestGenerator):
|
||||
|
||||
versions_to_test = ["default", "9.0_plus"]
|
||||
|
||||
scenarios = [
|
||||
("Test for check recovery", dict())
|
||||
]
|
||||
|
||||
def runTest(self):
|
||||
|
||||
cursor = test_utils.get_db_connection(self.server['db'],
|
||||
|
||||
Reference in New Issue
Block a user