Include passed test results in the JSON output from the regression tests.

This commit is contained in:
Navnath Gadakh
2017-04-12 13:11:53 +01:00
committed by Dave Page
parent 7dd9efd811
commit 62716c4193
8 changed files with 123 additions and 45 deletions

View File

@@ -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):

View File

@@ -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):

View File

@@ -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):

View File

@@ -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):

View File

@@ -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'],