X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=yardstick%2Fcommon%2Fconstants.py;h=3f5c37456bed75cccb195d5e75b42c4dc58352be;hb=0aade5b529d2115513d5984b66dd37c347e086d3;hp=153bd4bf4f5bf7d8084eb2bb0c3cf2b5916fff00;hpb=9c3db265f442b7db607cb929adf6c89c952add97;p=yardstick.git diff --git a/yardstick/common/constants.py b/yardstick/common/constants.py index 153bd4bf4..3f5c37456 100644 --- a/yardstick/common/constants.py +++ b/yardstick/common/constants.py @@ -145,6 +145,21 @@ BASE_URL = 'http://localhost:5000' ENV_ACTION_API = BASE_URL + '/yardstick/env/action' ASYNC_TASK_API = BASE_URL + '/yardstick/asynctask' +API_ERRORS = { + 'UploadOpenrcError': { + 'message': "Upload openrc ERROR!", + 'status': API_ERROR, + }, + 'UpdateOpenrcError': { + 'message': "Update openrc ERROR!", + 'status': API_ERROR, + }, + 'ApiServerError': { + 'message': "An unkown exception happened to Api Server!", + 'status': API_ERROR, + }, +} + # flags IS_EXISTING = 'is_existing' IS_PUBLIC = 'is_public'