add integration test
This commit is contained in:
parent
2fa97149d5
commit
7b0229ad53
|
@ -672,7 +672,7 @@ def wait_pipeline_data_ready(max_time_sec=800, interval_sec=10):
|
||||||
response = requests.get(CONF['upload_url'] + '/test/pipeline/')
|
response = requests.get(CONF['upload_url'] + '/test/pipeline/')
|
||||||
response = response.content
|
response = response.content
|
||||||
LOG.info(response)
|
LOG.info(response)
|
||||||
if 'False' in response:
|
if 'False' in str(response):
|
||||||
time.sleep(interval_sec)
|
time.sleep(interval_sec)
|
||||||
elapsed += interval_sec
|
elapsed += interval_sec
|
||||||
else:
|
else:
|
||||||
|
@ -690,9 +690,8 @@ def integration_tests():
|
||||||
LOG.info('Upload training data to no tuning session')
|
LOG.info('Upload training data to no tuning session')
|
||||||
upload_batch(result_dir='../../integrationTests/data/', upload_code='ottertuneTestNoTuning')
|
upload_batch(result_dir='../../integrationTests/data/', upload_code='ottertuneTestNoTuning')
|
||||||
|
|
||||||
# TO DO: BG ready
|
# wait celery periodic task finishes
|
||||||
response = requests.get(CONF['upload_url'] + '/test/pipeline/')
|
wait_pipeline_data_ready()
|
||||||
LOG.info(response.content)
|
|
||||||
|
|
||||||
# Test DNN
|
# Test DNN
|
||||||
LOG.info('Test DNN (deep neural network)')
|
LOG.info('Test DNN (deep neural network)')
|
||||||
|
|
Loading…
Reference in New Issue