Skip to content

Commit

Permalink
[Test]: Fix new auth test (#2187)
Browse files Browse the repository at this point in the history
New auth test failed in our internal CI (for some reason ya.make ignored test's depends and `cloud/storage/core/tools/testing/access_service/mock/accessservice-mock` was not found.
I could not reproduce the issue even on the CI vm itself with CI vm's configuration, but just to be safe, there's an ironclad fix.
  • Loading branch information
jkuradobery authored Oct 1, 2024
1 parent e517b66 commit 7dbbbc0
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions cloud/filestore/tests/auth/lib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,18 @@ def __init__(self):
self.folder_id = os.getenv("TEST_FOLDER_ID")
access_service_port = os.getenv("ACCESS_SERVICE_PORT")
access_service_control_port = os.getenv("ACCESS_SERVICE_CONTROL_PORT")
self.access_service = AccessService(
"localhost",
access_service_port,
access_service_control_port,
)
if os.getenv("ACCESS_SERVICE_TYPE") == "new":
self.access_service = NewAccessService(
"localhost",
int(access_service_port),
int(access_service_control_port),
)
else:
self.access_service = AccessService(
"localhost",
access_service_port,
access_service_control_port,
)
client_config = TClientAppConfig()
client_config.ClientConfig.CopyFrom(TClientConfig())
client_config.ClientConfig.RootCertsFile = common.source_path(
Expand Down

0 comments on commit 7dbbbc0

Please sign in to comment.