Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Forward path mapping rules to backend process #11

Merged
merged 4 commits into from
Oct 10, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix linter errors
Signed-off-by: Alex Gerveshi <15710060+agerveshi@users.noreply.github.com>
agerveshi committed Oct 9, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit afc746dee7b56ccc777ad6d07a04a53a2256ed4a
4 changes: 3 additions & 1 deletion src/openjd/adaptor_runtime/_background/frontend_runner.py
Original file line number Diff line number Diff line change
@@ -57,7 +57,9 @@ def __init__(
signal.signal(signal.SIGINT, self._sigint_handler)
signal.signal(signal.SIGTERM, self._sigint_handler)

def init(self, adaptor_module: ModuleType, init_data: dict = {}, path_mapping_data: dict = {}) -> None:
def init(
self, adaptor_module: ModuleType, init_data: dict = {}, path_mapping_data: dict = {}
) -> None:
"""
Creates the backend process then sends a heartbeat request to verify that it has started
successfully.
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.

from __future__ import annotations

import http.client as http_client
import json
import re
@@ -80,7 +82,7 @@ def test_initializes_backend_process(
adaptor_module.__package__ = "package"
conn_file_path = "/path"
init_data = {"init": "data"}
path_mapping_data = {}
path_mapping_data: dict = {}
runner = FrontendRunner(conn_file_path)

# WHEN