[#308] Fix unique user names
Some checks failed
DCO check / Commits Check (pull_request) Has been cancelled
Some checks failed
DCO check / Commits Check (pull_request) Has been cancelled
Signed-off-by: Kirill Sosnovskikh <k.sosnovskikh@yadro.com>
This commit is contained in:
parent
6442a52abd
commit
64bc778116
2 changed files with 3 additions and 3 deletions
|
@ -42,7 +42,7 @@ FIXTURE_OBJECT_LIFETIME = 10
|
||||||
@pytest.fixture(scope="module")
|
@pytest.fixture(scope="module")
|
||||||
def user_wallet(credentials_provider: CredentialsProvider, cluster: Cluster) -> WalletInfo:
|
def user_wallet(credentials_provider: CredentialsProvider, cluster: Cluster) -> WalletInfo:
|
||||||
with reporter.step("Create user wallet with container"):
|
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])
|
return credentials_provider.GRPC.provide(user, cluster.cluster_nodes[0])
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -14,12 +14,12 @@ def owner_wallet(default_wallet: WalletInfo) -> WalletInfo:
|
||||||
@pytest.fixture(scope="module")
|
@pytest.fixture(scope="module")
|
||||||
def user_wallet(credentials_provider: CredentialsProvider, cluster: Cluster) -> WalletInfo:
|
def user_wallet(credentials_provider: CredentialsProvider, cluster: Cluster) -> WalletInfo:
|
||||||
with reporter.step("Create user wallet which will use objects from owner via static session"):
|
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])
|
return credentials_provider.GRPC.provide(user, cluster.cluster_nodes[0])
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(scope="module")
|
@pytest.fixture(scope="module")
|
||||||
def stranger_wallet(credentials_provider: CredentialsProvider, cluster: Cluster) -> WalletInfo:
|
def stranger_wallet(credentials_provider: CredentialsProvider, cluster: Cluster) -> WalletInfo:
|
||||||
with reporter.step("Create stranger user wallet which should fail to obtain data"):
|
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])
|
return credentials_provider.GRPC.provide(user, cluster.cluster_nodes[0])
|
||||||
|
|
Loading…
Reference in a new issue