forked from TrueCloudLab/frostfs-testlib
[#193] Fix auth provider
Signed-off-by: Andrey Berezin <a.berezin@yadro.com>
This commit is contained in:
parent
b323bcfd0a
commit
0e247c2ff2
1 changed files with 2 additions and 2 deletions
|
@ -22,7 +22,7 @@ class AuthmateS3CredentialsProvider(S3CredentialsProvider):
|
||||||
|
|
||||||
gate_public_keys = [node.service(S3Gate).get_wallet_public_key() for node in cluster_nodes]
|
gate_public_keys = [node.service(S3Gate).get_wallet_public_key() for node in cluster_nodes]
|
||||||
# unique short bucket name
|
# unique short bucket name
|
||||||
bucket = f"bucket_{hex(int(datetime.now().timestamp()*1000000))}"
|
bucket = f"bucket-{hex(int(datetime.now().timestamp()*1000000))}"
|
||||||
|
|
||||||
frostfs_authmate: FrostfsAuthmate = FrostfsAuthmate(shell, FROSTFS_AUTHMATE_EXEC)
|
frostfs_authmate: FrostfsAuthmate = FrostfsAuthmate(shell, FROSTFS_AUTHMATE_EXEC)
|
||||||
issue_secret_output = frostfs_authmate.secret.issue(
|
issue_secret_output = frostfs_authmate.secret.issue(
|
||||||
|
@ -40,7 +40,7 @@ class AuthmateS3CredentialsProvider(S3CredentialsProvider):
|
||||||
)
|
)
|
||||||
cid = str(re.search(r"container_id.*:\s.(?P<container_id>\w*)", issue_secret_output).group("container_id"))
|
cid = str(re.search(r"container_id.*:\s.(?P<container_id>\w*)", issue_secret_output).group("container_id"))
|
||||||
|
|
||||||
containers_list = list_containers(wallet.path, shell, endpoint)
|
containers_list = list_containers(wallet, shell, endpoint)
|
||||||
assert cid in containers_list, f"Expected cid {cid} in {containers_list}"
|
assert cid in containers_list, f"Expected cid {cid} in {containers_list}"
|
||||||
|
|
||||||
user.s3_credentials = S3Credentials(aws_access_key_id, aws_secret_access_key)
|
user.s3_credentials = S3Credentials(aws_access_key_id, aws_secret_access_key)
|
||||||
|
|
Loading…
Reference in a new issue