UT: Fix island_api_client.send_log() calls in test_http_island_api_client.py

This commit is contained in:
Shreya Malviya 2022-09-28 17:09:51 +05:30 committed by Mike Salvatore
parent 539f4e1c82
commit 8e3918cebe
1 changed files with 3 additions and 3 deletions

View File

@ -37,7 +37,7 @@ AGENT_REGISTRATION = AgentRegistrationData(
TIMESTAMP = 123456789
ISLAND_URI = f"https://{SERVER}/api?action=is-up"
ISLAND_SEND_LOG_URI = f"https://{SERVER}/api/log"
ISLAND_SEND_LOG_URI = f"https://{SERVER}/api/agent-logs/{AGENT_ID}"
ISLAND_GET_PBA_FILE_URI = f"https://{SERVER}/api/pba/download/{PBA_FILE}"
ISLAND_GET_AGENT_BINARY_URI = f"https://{SERVER}/api/agent-binaries/{WINDOWS}"
ISLAND_SEND_EVENTS_URI = f"https://{SERVER}/api/agent-events"
@ -120,7 +120,7 @@ def test_island_api_client__send_log(island_api_client, actual_error, expected_e
with pytest.raises(expected_error):
m.post(ISLAND_SEND_LOG_URI, exc=actual_error)
island_api_client.send_log(log_contents="some_data")
island_api_client.send_log(agent_id=AGENT_ID, log_contents="some_data")
@pytest.mark.parametrize(
@ -137,7 +137,7 @@ def test_island_api_client_send_log__status_code(island_api_client, status_code,
with pytest.raises(expected_error):
m.post(ISLAND_SEND_LOG_URI, status_code=status_code)
island_api_client.send_log(log_contents="some_data")
island_api_client.send_log(agent_id=AGENT_ID, log_contents="some_data")
@pytest.mark.parametrize(