diff --git a/src/load/HISTORY.rst b/src/load/HISTORY.rst index 18c26980fa2..a60ff93643e 100644 --- a/src/load/HISTORY.rst +++ b/src/load/HISTORY.rst @@ -2,9 +2,11 @@ Release History =============== -0.3.4 + +1.0.0 ++++++ * Adding support for "az load test" in AzureUSGovernment cloud. +* Fix '(InvalidRequestBody) Secret "xxxxx" value can't be null' error that occurs when using 'az load test create/update' with a config file that contains secrets. 0.3.3 ++++++ @@ -33,4 +35,4 @@ Release History 0.1.0 ++++++ -* Initial release. \ No newline at end of file +* Initial release. diff --git a/src/load/azext_load/data_plane/utils/utils.py b/src/load/azext_load/data_plane/utils/utils.py index 89a95df9e3d..d7d554f0272 100644 --- a/src/load/azext_load/data_plane/utils/utils.py +++ b/src/load/azext_load/data_plane/utils/utils.py @@ -230,10 +230,8 @@ def parse_secrets(secrets): if not validators._validate_akv_url(value, "secrets"): raise InvalidArgumentValueError(f"Invalid AKV Certificate URL: {value}") secrets_dict[name] = { - name: { - "type": "AKV_SECRET_URI", - "value": value, - } + "type": "AKV_SECRET_URI", + "value": value, } logger.debug("Parsed secrets: %s", secrets_dict) logger.debug("Secrets parsed successfully") @@ -448,6 +446,9 @@ def create_or_update_test_with_config( new_body["passFailCriteria"] = {} for key in body.get("passFailCriteria", {}): + if "passFailCriteria" not in new_body: + new_body["passFailCriteria"] = {} + new_body.get("passFailCriteria", {})[key] = None new_body["passFailCriteria"][key] = None if yaml_test_body.get("passFailCriteria") is not None: new_body["passFailCriteria"] = yaml_test_body.get("passFailCriteria", {}) diff --git a/src/load/setup.py b/src/load/setup.py index c23873799e9..fd8460c2b72 100644 --- a/src/load/setup.py +++ b/src/load/setup.py @@ -10,7 +10,7 @@ # HISTORY.rst entry. -VERSION = '0.3.4' +VERSION = '1.0.0' # The full list of classifiers is available at # https://pypi.python.org/pypi?%3Aaction=list_classifiers