48 lines
1.8 KiB
Python
48 lines
1.8 KiB
Python
import os
|
|
|
|
import yaml
|
|
|
|
CONTAINER_WAIT_INTERVAL = "1m"
|
|
|
|
SIMPLE_OBJECT_SIZE = os.getenv("SIMPLE_OBJECT_SIZE", "1000")
|
|
COMPLEX_OBJECT_CHUNKS_COUNT = os.getenv("COMPLEX_OBJECT_CHUNKS_COUNT", "3")
|
|
COMPLEX_OBJECT_TAIL_SIZE = os.getenv("COMPLEX_OBJECT_TAIL_SIZE", "1000")
|
|
|
|
SERVICE_MAX_STARTUP_TIME = os.getenv("SERVICE_MAX_STARTUP_TIME", "5m")
|
|
|
|
STORAGE_USER_NAME = "frostfs-storage"
|
|
|
|
MORPH_TIMEOUT = os.getenv("MORPH_BLOCK_TIME", "8s")
|
|
MORPH_BLOCK_TIME = os.getenv("MORPH_BLOCK_TIME", "8s")
|
|
FROSTFS_CONTRACT_CACHE_TIMEOUT = os.getenv("FROSTFS_CONTRACT_CACHE_TIMEOUT", "30s")
|
|
|
|
# Time interval that allows a GC pass on storage node (this includes GC sleep interval
|
|
# of 1min plus 15 seconds for GC pass itself)
|
|
STORAGE_GC_TIME = os.getenv("STORAGE_GC_TIME", "75s")
|
|
|
|
GAS_HASH = os.getenv("GAS_HASH", "0xd2a4cff31913016155e38e474a2c06d08be276cf")
|
|
FROSTFS_CONTRACT = os.getenv("FROSTFS_IR_CONTRACTS_FROSTFS")
|
|
|
|
ASSETS_DIR = os.getenv("ASSETS_DIR", "TemporaryDir")
|
|
|
|
# Password of wallet owned by user on behalf of whom we are running tests
|
|
# Default wallet password is empty
|
|
DEFAULT_WALLET_PASS = os.getenv("WALLET_PASS", "")
|
|
|
|
# Artificial delay that we add after object deletion and container creation
|
|
# Delay is added because sometimes immediately after deletion object still appears
|
|
# to be existing (probably because tombstone object takes some time to replicate)
|
|
# TODO: remove this wait
|
|
S3_SYNC_WAIT_TIME = 5
|
|
|
|
# Generate wallet config
|
|
# TODO: we should move all info about wallet configs to fixtures
|
|
DEFAULT_WALLET_CONFIG = os.path.join(os.getcwd(), "wallet_config.yml")
|
|
with open(DEFAULT_WALLET_CONFIG, "w") as file:
|
|
yaml.dump({"password": DEFAULT_WALLET_PASS}, file)
|
|
|
|
# Number of attempts that S3 clients will attempt per each request (1 means single attempt
|
|
# without any retries)
|
|
MAX_REQUEST_ATTEMPTS = 5
|
|
RETRY_MODE = "standard"
|
|
CREDENTIALS_CREATE_TIMEOUT = "1m"
|