Added MSQL test cases for Sequences and cover missing ACL RE-SQL test cases.

This commit is contained in:
Aditya Toshniwal
2019-08-29 14:15:34 +05:30
committed by Akshay Joshi
parent fc4bef56a0
commit d6da1cf25c
28 changed files with 452 additions and 103 deletions

View File

@@ -210,6 +210,8 @@ class ReverseEngineeredSQLTestCases(BaseTestGenerator):
print_msg = print_msg + "... FAIL"
print(print_msg)
continue
else:
print(scenario['name'] + " (MSQL) ... ok")
if 'type' in scenario and scenario['type'] == 'create':
# Get the url and create the specific node.
@@ -329,7 +331,15 @@ class ReverseEngineeredSQLTestCases(BaseTestGenerator):
msql_url = self.get_url(scenario['msql_endpoint'],
object_id)
params = urllib.parse.urlencode(scenario['data'])
# As msql data is passed as URL params, dict, list types data has to
# be converted to string using json.dumps before passing it to
# urlencode
msql_data = {
key: json.dumps(val)
if isinstance(val, dict) or isinstance(val, list) else val
for key, val in scenario['data'].items()}
params = urllib.parse.urlencode(msql_data)
params = params.replace('False', 'false').replace('True', 'true')
url = msql_url + "?%s" % params
response = self.tester.get(url,