From 3b1ddb26c9b02ef9fefe1565f8aea04c51d5561b Mon Sep 17 00:00:00 2001 From: yangdsh Date: Mon, 25 May 2020 19:54:32 +0000 Subject: [PATCH] add concurrency test --- client/driver/fabfile.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/client/driver/fabfile.py b/client/driver/fabfile.py index 2172cf9..0174f47 100644 --- a/client/driver/fabfile.py +++ b/client/driver/fabfile.py @@ -1119,6 +1119,29 @@ def integration_tests(): max_gain = gain elif i > total_n - last_n + 2: assert gain > max_gain / 2.0 + + # ------------------- concurrency test ---------------------- + upload_result(result_dir='./integrationTests/data/', prefix='2__', + upload_code='ottertuneTestTuningDNN') + upload_result(result_dir='./integrationTests/data/', prefix='3__', + upload_code='ottertuneTestTuningDNN') + + upload_result(result_dir='./integrationTests/data/', prefix='2__', + upload_code='ottertuneTestTuningGPR') + upload_result(result_dir='./integrationTests/data/', prefix='3__', + upload_code='ottertuneTestTuningGPR') + + upload_result(result_dir='./integrationTests/data/', prefix='2__', + upload_code='ottertuneTestTuningDDPG') + upload_result(result_dir='./integrationTests/data/', prefix='3__', + upload_code='ottertuneTestTuningDDPG') + + response = get_result(upload_code='ottertuneTestTuningDNN') + assert response['status'] == 'good' + response = get_result(upload_code='ottertuneTestTuningGPR') + assert response['status'] == 'good' + response = get_result(upload_code='ottertuneTestTuningDDPG') + assert response['status'] == 'good' LOG.info("\n\nIntegration Tests: PASSED!!\n")