diff options
Diffstat (limited to 'tests/unittests/sources/azure/test_errors.py')
-rw-r--r-- | tests/unittests/sources/azure/test_errors.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/unittests/sources/azure/test_errors.py b/tests/unittests/sources/azure/test_errors.py index 9211d472..d2213613 100644 --- a/tests/unittests/sources/azure/test_errors.py +++ b/tests/unittests/sources/azure/test_errors.py @@ -105,7 +105,8 @@ def test_reportable_errors( ) data = [ - "PROVISIONING_ERROR: " + quote_csv_value(f"reason={reason}"), + "result=error", + quote_csv_value(f"reason={reason}"), f"agent=Cloud-Init/{version.version_string()}", ] data += [quote_csv_value(f"{k}={v}") for k, v in supporting_data.items()] @@ -115,7 +116,7 @@ def test_reportable_errors( "documentation_url=https://aka.ms/linuxprovisioningerror", ] - assert error.as_description() == "|".join(data) + assert error.as_encoded_report() == "|".join(data) def test_unhandled_exception(): @@ -136,4 +137,4 @@ def test_unhandled_exception(): assert trace.endswith("ValueError: my value error\n") quoted_value = quote_csv_value(f"exception={source_error!r}") - assert f"|{quoted_value}|" in error.as_description() + assert f"|{quoted_value}|" in error.as_encoded_report() |