Add parameter S3_GATE_PUB_KEY.

This enables us to test s3 gateway in real environment, not just in devenv.
This commit is contained in:
Vladimir Domnich 2022-07-07 10:16:01 +04:00
parent 7e9e5e88ec
commit 0daa262fdb
2 changed files with 3 additions and 3 deletions

View file

@ -12,7 +12,7 @@ from robot.api import logger
from robot.api.deco import keyword
from cli_helpers import _run_with_passwd, log_command_execution
from common import GATE_PUB_KEY, NEOFS_ENDPOINT, S3_GATE
from common import S3_GATE_PUB_KEY, NEOFS_ENDPOINT, S3_GATE
##########################################################
# Disabling warnings on self-signed certificate which the
@ -38,7 +38,7 @@ def init_s3_credentials(wallet, s3_bearer_rules_file: str = None):
s3_bearer_rules = s3_bearer_rules_file or 'robot/resources/files/s3_bearer_rules.json'
cmd = (
f'{NEOFS_EXEC} --debug --with-log --timeout {CREDENTIALS_CREATE_TIMEOUT} '
f'issue-secret --wallet {wallet} --gate-public-key={GATE_PUB_KEY} '
f'issue-secret --wallet {wallet} --gate-public-key={S3_GATE_PUB_KEY} '
f'--peer {NEOFS_ENDPOINT} --container-friendly-name {bucket} '
f'--bearer-rules {s3_bearer_rules}'
)

View file

@ -31,7 +31,7 @@ NEOFS_CONTRACT = os.getenv("NEOFS_IR_CONTRACTS_NEOFS")
ASSETS_DIR = os.getenv("ASSETS_DIR", "TemporaryDir/")
MORPH_MAGIC = os.getenv("MORPH_MAGIC")
GATE_PUB_KEY = '0313b1ac3a8076e155a7e797b24f0b650cccad5941ea59d7cfd51a024a8b2a06bf'
S3_GATE_PUB_KEY = os.getenv("S3_GATE_PUB_KEY", '0313b1ac3a8076e155a7e797b24f0b650cccad5941ea59d7cfd51a024a8b2a06bf')
DEVENV_SERVICES_PATH = f"{os.getenv('DEVENV_PATH')}/services"