From 64bc77811604af32e77459e70031cb4ac8a02739 Mon Sep 17 00:00:00 2001 From: Kirill Sosnovskikh Date: Wed, 9 Oct 2024 20:29:18 +0300 Subject: [PATCH] [#308] Fix unique user names Signed-off-by: Kirill Sosnovskikh --- pytest_tests/testsuites/object/test_object_lock.py | 2 +- pytest_tests/testsuites/session_token/conftest.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pytest_tests/testsuites/object/test_object_lock.py b/pytest_tests/testsuites/object/test_object_lock.py index a6e8c588..d1fc3ebc 100755 --- a/pytest_tests/testsuites/object/test_object_lock.py +++ b/pytest_tests/testsuites/object/test_object_lock.py @@ -42,7 +42,7 @@ FIXTURE_OBJECT_LIFETIME = 10 @pytest.fixture(scope="module") def user_wallet(credentials_provider: CredentialsProvider, cluster: Cluster) -> WalletInfo: with reporter.step("Create user wallet with container"): - user = User(string_utils.unique_name("user_")) + user = User(string_utils.unique_name("user-")) return credentials_provider.GRPC.provide(user, cluster.cluster_nodes[0]) diff --git a/pytest_tests/testsuites/session_token/conftest.py b/pytest_tests/testsuites/session_token/conftest.py index cea75aab..eabd68b0 100644 --- a/pytest_tests/testsuites/session_token/conftest.py +++ b/pytest_tests/testsuites/session_token/conftest.py @@ -14,12 +14,12 @@ def owner_wallet(default_wallet: WalletInfo) -> WalletInfo: @pytest.fixture(scope="module") def user_wallet(credentials_provider: CredentialsProvider, cluster: Cluster) -> WalletInfo: with reporter.step("Create user wallet which will use objects from owner via static session"): - user = User(string_utils.unique_name("user_")) + user = User(string_utils.unique_name("user-")) return credentials_provider.GRPC.provide(user, cluster.cluster_nodes[0]) @pytest.fixture(scope="module") def stranger_wallet(credentials_provider: CredentialsProvider, cluster: Cluster) -> WalletInfo: with reporter.step("Create stranger user wallet which should fail to obtain data"): - user = User(string_utils.unique_name("user_")) + user = User(string_utils.unique_name("user-")) return credentials_provider.GRPC.provide(user, cluster.cluster_nodes[0])