diff options
Diffstat (limited to 'tests/unittests/config/test_cc_users_groups.py')
-rw-r--r-- | tests/unittests/config/test_cc_users_groups.py | 42 |
1 files changed, 25 insertions, 17 deletions
diff --git a/tests/unittests/config/test_cc_users_groups.py b/tests/unittests/config/test_cc_users_groups.py index 6067f8e9..6a026a87 100644 --- a/tests/unittests/config/test_cc_users_groups.py +++ b/tests/unittests/config/test_cc_users_groups.py @@ -365,9 +365,10 @@ class TestUsersGroupsSchema: pytest.raises( SchemaValidationError, match=( - "users.0.lock-passwd: DEPRECATED." - " Dropped after April 2027. Use ``lock_passwd``." - " Default: ``true``" + "Cloud config schema deprecations: " + "users.0.lock-passwd: Default: ``true`` " + "Deprecated in version 22.3. Use " + "``lock_passwd`` instead." ), ), False, @@ -387,10 +388,14 @@ class TestUsersGroupsSchema: pytest.raises( SchemaValidationError, match=( - "Cloud config schema deprecations: users.0.groups.adm:" - " DEPRECATED. When providing an object for" - " users.groups the ``<group_name>`` keys are the" - " groups to add this user to," + "Cloud config schema deprecations: " + "users.0.groups.adm: When providing an object " + "for users.groups the ``<group_name>`` keys " + "are the groups to add this user to Deprecated" + " in version 23.1., users.0.groups.sudo: When " + "providing an object for users.groups the " + "``<group_name>`` keys are the groups to add " + "this user to Deprecated in version 23.1." ), ), False, @@ -440,10 +445,11 @@ class TestUsersGroupsSchema: pytest.raises( SchemaValidationError, match=( - "deprecations: user.groups.sbuild: DEPRECATED. " - "When providing an object for users.groups the " - "``<group_name>`` keys are the groups to add this " - "user to" + "Cloud config schema deprecations: " + "user.groups.sbuild: When providing an object " + "for users.groups the ``<group_name>`` keys " + "are the groups to add this user to Deprecated" + " in version 23.1." ), ), False, @@ -453,9 +459,10 @@ class TestUsersGroupsSchema: pytest.raises( SchemaValidationError, match=( - "deprecations: user.sudo: DEPRECATED. The value" - " ``false`` will be dropped after April 2027." - " Use ``null`` or no ``sudo`` key instead." + "Cloud config schema deprecations: user.sudo:" + " Changed in version 22.2. The value " + "``false`` is deprecated for this key, use " + "``null`` instead." ), ), False, @@ -470,9 +477,10 @@ class TestUsersGroupsSchema: pytest.raises( SchemaValidationError, match=( - "users.0.uid: DEPRECATED. The use of ``string`` type" - " will be dropped after April 2027. Use an ``integer``" - " instead." + "Cloud config schema deprecations: " + "users.0.uid: Changed in version 22.3. The " + "use of ``string`` type is deprecated. Use " + "an ``integer`` instead." ), ), False, |