[#166] Components versions check

Components versions check

Signed-off-by: Mikhail Kadilov m.kadilov@yadro.com
This commit is contained in:
Mikhail Kadilov 2024-01-23 10:17:53 +03:00
parent 663c144709
commit c92ea57fc7
2 changed files with 16 additions and 2 deletions

View file

@ -6,6 +6,20 @@ FROSTFS_CLI_EXEC = os.getenv("FROSTFS_CLI_EXEC", "frostfs-cli")
FROSTFS_AUTHMATE_EXEC = os.getenv("FROSTFS_AUTHMATE_EXEC", "frostfs-s3-authmate")
FROSTFS_ADM_EXEC = os.getenv("FROSTFS_ADM_EXEC", "frostfs-adm")
FROSTFS_HTTP_EXEC = os.getenv("???", "frostfs-http-gw")
FROSTFS_IR_EXEC = os.getenv("???", "frostfs-ir")
FROSTFS_S3_EXEC = os.getenv("???", "frostfs-s3-gw")
FROSTFS_STORAFE_EXEC = os.getenv("???", "frostfs-node")
FROSTFS_TREE_METRICS_EXPORTER_EXEC = os.getenv("???", "frostfs-tree-metrics-exporter")
TO_BE4FE_EXEC = os.getenv("???", "tatlin-object-be4fe")
TO_CM_EXEC = os.getenv("???", "tatlin-object-cm")
TO_IDP_EXEC = os.getenv("???", "tatlin-object-idp")
TO_S3_AUTH = os.getenv("???", "tatlin-object-s3-auth-service")
CYP_ALERT_MANAGER_EXEC = os.getenv("???", "cyp-alert-manager")
CYP_DAC_EXEC = os.getenv("???", "cyp-dac")
CYP_RBAC = os.getenv("???", "cyp-rbac")
# Config for frostfs-adm utility. Optional if tests are running against devenv
FROSTFS_ADM_CONFIG_PATH = os.getenv("FROSTFS_ADM_CONFIG_PATH")

View file

@ -3,7 +3,7 @@ import re
from frostfs_testlib.cli import FrostfsAdm, FrostfsCli
from frostfs_testlib.hosting import Hosting
from frostfs_testlib.resources.cli import FROSTFS_ADM_EXEC, FROSTFS_AUTHMATE_EXEC, FROSTFS_CLI_EXEC, NEOGO_EXECUTABLE
from frostfs_testlib.resources.cli import *
from frostfs_testlib.resources.common import DEFAULT_WALLET_CONFIG
from frostfs_testlib.shell import Shell
@ -13,7 +13,7 @@ logger = logging.getLogger("NeoLogger")
def get_local_binaries_versions(shell: Shell) -> dict[str, str]:
versions = {}
for binary in [NEOGO_EXECUTABLE, FROSTFS_AUTHMATE_EXEC]:
for binary in [NEOGO_EXECUTABLE, FROSTFS_AUTHMATE_EXEC, FROSTFS_HTTP_EXEC, FROSTFS_IR_EXEC, FROSTFS_S3_EXEC, FROSTFS_STORAFE_EXEC, FROSTFS_TREE_METRICS_EXPORTER_EXEC, TO_BE4FE_EXEC, TO_CM_EXEC, TO_IDP_EXEC, TO_S3_AUTH, CYP_ALERT_MANAGER_EXEC, CYP_DAC_EXEC, CYP_RBAC]:
out = shell.exec(f"{binary} --version").stdout
versions[binary] = _parse_version(out)