From 5568cbd0bfa70bced5a37c3c9ea3289d73983988 Mon Sep 17 00:00:00 2001 From: Aleksei Chetaev Date: Fri, 17 Feb 2023 16:20:00 +0100 Subject: [PATCH] Add new common erros templates Signed-off-by: Aleksei Chetaev --- pyproject.toml | 4 ++-- src/frostfs_testlib/__init__.py | 2 +- src/frostfs_testlib/resources/common.py | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 646b002..5354e41 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "frostfs-testlib" -version = "1.3.0" +version = "1.3.1" description = "Building blocks and utilities to facilitate development of automated tests for FrostFS system" readme = "README.md" authors = [{ name = "NSPCC", email = "info@nspcc.ru" }] @@ -50,7 +50,7 @@ line-length = 100 target-version = ["py310"] [tool.bumpver] -current_version = "1.3.0" +current_version = "1.3.1" version_pattern = "MAJOR.MINOR.PATCH" commit_message = "Bump version {old_version} -> {new_version}" commit = true diff --git a/src/frostfs_testlib/__init__.py b/src/frostfs_testlib/__init__.py index 67bc602..9c73af2 100644 --- a/src/frostfs_testlib/__init__.py +++ b/src/frostfs_testlib/__init__.py @@ -1 +1 @@ -__version__ = "1.3.0" +__version__ = "1.3.1" diff --git a/src/frostfs_testlib/resources/common.py b/src/frostfs_testlib/resources/common.py index 44f8c77..7744c0c 100644 --- a/src/frostfs_testlib/resources/common.py +++ b/src/frostfs_testlib/resources/common.py @@ -21,6 +21,7 @@ OBJECT_NOT_FOUND = "code = 2049.*message = object not found" OBJECT_ALREADY_REMOVED = "code = 2052.*message = object already removed" SESSION_NOT_FOUND = "code = 4096.*message = session token not found" OUT_OF_RANGE = "code = 2053.*message = out of range" +EXPIRED_SESSION_TOKEN = "code = 4097.*message = expired session token" # TODO: Due to https://github.com/nspcc-dev/neofs-node/issues/2092 we have to check only codes until fixed # OBJECT_IS_LOCKED = "code = 2050.*message = object is locked" # LOCK_NON_REGULAR_OBJECT = "code = 2051.*message = ..." will be available once 2092 is fixed