Skip to content

Commit 4b31c1c

Browse files
take care of review issues
1 parent f6c6ef8 commit 4b31c1c

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

tests/test_scenario/fault_injector_client.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,7 @@ def _make_request(
5050
url = f"{self.base_url}{path}"
5151
headers = {"Content-Type": "application/json"} if data else {}
5252

53-
request_data = None
54-
if data:
55-
request_data = json.dumps(data).encode("utf-8")
56-
print(f"JSON payload being sent: {request_data.decode('utf-8')}")
53+
request_data = json.dumps(data).encode("utf-8") if data else None
5754

5855
request = urllib.request.Request(
5956
url, method=method, data=request_data, headers=headers
@@ -75,7 +72,6 @@ def list_actions(self) -> Dict[str, Any]:
7572
def trigger_action(self, action_request: ActionRequest) -> Dict[str, Any]:
7673
"""Trigger a new action"""
7774
request_data = action_request.to_dict()
78-
print(f"Sending HTTP request data: {request_data}")
7975
return self._make_request("POST", "/action", request_data)
8076

8177
def get_action_status(self, action_id: str) -> Dict[str, Any]:
@@ -93,8 +89,6 @@ def execute_rladmin_command(
9389
if bdb_id:
9490
command_string = f"rladmin -b {bdb_id} {command}"
9591

96-
print(f"Sending rladmin command: {command_string}")
97-
9892
headers = {"Content-Type": "text/plain"}
9993

10094
request = urllib.request.Request(

0 commit comments

Comments
 (0)