test(qa): verify native Kingbase restore migration and fusion workflows
This commit is contained in:
1 parent
ba5dc7a6af
commit
6e73d34561
23 files changed
+1103
-31
No files matched your search
@@ -34,6 +34,10 @@ class QaToolsTest(unittest.TestCase):
|
||||
with self.assertRaises(ValueError):
|
||||
qa.environment({})
|
||||
|
||||
def test_druid_timeout_units_cannot_be_overridden_by_jdbc_url_seconds(self):
|
||||
url = 'jdbc:kingbase8://192.168.139.218:4321/' + qa.DATABASE + '?connectTimeout=5&socketTimeout=15&characterEncoding=utf8'
|
||||
self.assertEqual('jdbc:kingbase8://192.168.139.218:4321/' + qa.DATABASE + '?characterEncoding=utf8', qa.druid_url(url))
|
||||
|
||||
def test_unsafe_inherited_overrides_removed(self):
|
||||
with patch.dict(os.environ, {'SPRING_APPLICATION_JSON': '{"danger":true}', 'IOT_MQTT_ENABLED': 'true', 'JAVA_TOOL_OPTIONS': '-Dunsafe=true'}):
|
||||
env = qa.environment({'FUSION_QA_APP_PASSWORD': 'synthetic'})
|
||||
@@ -91,7 +95,7 @@ class QaToolsTest(unittest.TestCase):
|
||||
|
||||
def test_stop_accepts_python_wrapper_only_with_task_identity(self):
|
||||
with tempfile.TemporaryDirectory() as directory, patch.object(qa, 'RUNTIME', Path(directory)), \
|
||||
patch.object(qa.subprocess, 'run') as run, patch.object(qa.os, 'kill') as kill:
|
||||
patch.object(qa.subprocess, 'run') as run, patch.object(qa.os, 'kill') as kill, patch.object(qa, 'wait_for_exit'):
|
||||
script = str(qa.ROOT / 'scripts/qa/serve_frontend.py')
|
||||
command = ['/usr/local/bin/python3', script, '--port', '18088']
|
||||
(Path(directory)/'frontend.json').write_text(json.dumps({'pid':123,'command':command,'started':'same-birth-time'}))
|
||||
|
||||
Reference in new issue
Block a user