2022-11-30 08:26:38 +00:00
|
|
|
import pytest
|
2023-05-15 09:59:33 +00:00
|
|
|
from frostfs_testlib.storage.dataclasses.wallet import WalletFactory, WalletInfo
|
2022-11-30 08:26:38 +00:00
|
|
|
|
|
|
|
|
|
|
|
@pytest.fixture(scope="module")
|
2023-05-15 09:59:33 +00:00
|
|
|
def owner_wallet(wallet_factory: WalletFactory) -> WalletInfo:
|
2022-11-30 08:26:38 +00:00
|
|
|
"""
|
|
|
|
Returns wallet which owns containers and objects
|
|
|
|
"""
|
|
|
|
return wallet_factory.create_wallet()
|
|
|
|
|
|
|
|
|
|
|
|
@pytest.fixture(scope="module")
|
2023-05-15 09:59:33 +00:00
|
|
|
def user_wallet(wallet_factory: WalletFactory) -> WalletInfo:
|
2022-11-30 08:26:38 +00:00
|
|
|
"""
|
|
|
|
Returns wallet which will use objects from owner via static session
|
|
|
|
"""
|
|
|
|
return wallet_factory.create_wallet()
|
|
|
|
|
|
|
|
|
|
|
|
@pytest.fixture(scope="module")
|
2023-05-15 09:59:33 +00:00
|
|
|
def stranger_wallet(wallet_factory: WalletFactory) -> WalletInfo:
|
2022-11-30 08:26:38 +00:00
|
|
|
"""
|
|
|
|
Returns stranger wallet which should fail to obtain data
|
|
|
|
"""
|
|
|
|
return wallet_factory.create_wallet()
|