| dovetail run --report | -r <db_url> | Push results to local or official DB |
| | |
+------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------+
-| dovetail run --yard_tag | -y <yardstick_docker_image_tag> | Specify yardstick's docker image tag, default is danube.3.2 |
+| dovetail run --yardstick_tag | -y <yardstick_docker_image_tag> | Specify yardstick's docker image tag |
| | |
+------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------+
-| dovetail run --func_tag | -f <functest_docker_image_tag> | Specify functest's docker image tag, default is cvp.0.5.0 |
+| dovetail run --functest_tag | -f <functest_docker_image_tag> | Specify functest's docker image tag |
| | |
+------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------+
-| dovetail run --bott_tag | -b <bottlenecks_docker_image_tag> | Specify bottlenecks' docker image tag, default is cvp.0.4.0 |
+| dovetail run --bottlenecks_tag | -b <bottlenecks_docker_image_tag> | Specify bottlenecks' docker image tag |
| | |
+------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------+
def validate_input(input_dict, check_dict, logger):
- # for 'func_tag' and 'yard_tag' options
- func_tag = input_dict['func_tag']
- yard_tag = input_dict['yard_tag']
+ func_tag = input_dict['functest_tag']
+ yard_tag = input_dict['yardstick_tag']
# bott_tag = input_dict['bott_tag']
- valid_tag = check_dict['valid_docker_tag']
- if func_tag is not None and func_tag not in valid_tag:
- logger.error("The input option 'func_tag' can't be {}, "
- "valid values are {}.".format(func_tag, valid_tag))
+ valid_functest_tags = check_dict['valid_functest_tags']
+ valid_yardstick_tags = check_dict['valid_yardstick_tags']
+ if func_tag is not None and func_tag not in valid_functest_tags:
+ logger.error("The input option 'functest_tag' can't be '{}', "
+ "valid values are {}.".format(func_tag,
+ valid_functest_tags))
raise SystemExit(1)
- if yard_tag is not None and yard_tag not in valid_tag:
- logger.error("The input option 'yard_tag' can't be {}, "
- "valid values are {}.".format(yard_tag, valid_tag))
+ if yard_tag is not None and yard_tag not in valid_yardstick_tags:
+ logger.error("The input option 'yardstick_tag' can't be '{}', "
+ "valid values are {}.".format(yard_tag,
+ valid_yardstick_tags))
raise SystemExit(1)
# if bott_tag is not None and bott_tag not in valid_tag:
# logger.error("The input option 'bott_tag' can't be {}, "