diff options
Diffstat (limited to 'tests/unittests/config/test_cc_set_passwords.py')
-rw-r--r-- | tests/unittests/config/test_cc_set_passwords.py | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/tests/unittests/config/test_cc_set_passwords.py b/tests/unittests/config/test_cc_set_passwords.py index 0553f781..a375c00b 100644 --- a/tests/unittests/config/test_cc_set_passwords.py +++ b/tests/unittests/config/test_cc_set_passwords.py @@ -565,10 +565,9 @@ class TestSetPasswordsSchema: pytest.raises( SchemaValidationError, match=( - "deprecations: ssh_pwauth: DEPRECATED. Use of" - " non-boolean values for this field is DEPRECATED and" - " will result in an error in a future version of" - " cloud-init." + "Cloud config schema deprecations: ssh_pwauth:" + " Changed in version 22.3. Use of non-boolean" + " values for this field is deprecated." ), ), ), @@ -577,16 +576,17 @@ class TestSetPasswordsSchema: pytest.raises( SchemaValidationError, match=( - "deprecations: ssh_pwauth: DEPRECATED. Use of" - " non-boolean values for this field is DEPRECATED and" - " will result in an error in a future version of" - " cloud-init." + "Cloud config schema deprecations: ssh_pwauth:" + " Changed in version 22.3. Use of non-boolean" + " values for this field is deprecated." ), ), ), ( {"chpasswd": {"list": "blah"}}, - pytest.raises(SchemaValidationError, match="DEPRECATED"), + pytest.raises( + SchemaValidationError, match="Deprecated in version" + ), ), # Valid combinations ( @@ -699,7 +699,9 @@ class TestSetPasswordsSchema: # Test regex ( {"chpasswd": {"list": ["user:pass"]}}, - pytest.raises(SchemaValidationError, match="DEPRECATED"), + pytest.raises( + SchemaValidationError, match="Deprecated in version" + ), ), # Test valid ({"password": "pass"}, does_not_raise()), |