Skip to content

Commit

Permalink
Remove redundant slash
Browse files Browse the repository at this point in the history
  • Loading branch information
lvoloshyn-sekoia committed Dec 1, 2023
1 parent 5b6cd16 commit 247041c
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 33 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Thread to push logs at regular interval

## [1.8.3] - 2023-12-01

## Fixed

- Remove redundant slash in URL path

## [1.8.2] - 2023-11-28

## Changed
Expand Down
56 changes: 28 additions & 28 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "sekoia-automation-sdk"

version = "1.8.2"
version = "1.8.3"
description = "SDK to create Sekoia.io playbook modules"
license = "MIT"
readme = "README.md"
Expand Down
2 changes: 1 addition & 1 deletion sekoia_automation/aio/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ async def push_data_to_intakes(
list[str]:
"""
self._last_events_time = datetime.utcnow()
batch_api = urljoin(self.configuration.intake_server, "/batch")
batch_api = urljoin(self.configuration.intake_server, "batch")

self.log(f"Push {len(events)} events to intakes")

Expand Down
6 changes: 3 additions & 3 deletions tests/aio/test_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ async def test_async_connector_push_single_event(

single_event_id = faker.uuid4()

request_url = urljoin(async_connector.configuration.intake_server, "/batch")
request_url = urljoin(async_connector.configuration.intake_server, "batch")

with aioresponses() as mocked_responses:
mocked_responses.post(
Expand Down Expand Up @@ -154,7 +154,7 @@ async def test_async_connector_push_multiple_events(

single_event_id = faker.uuid4()

request_url = urljoin(async_connector.configuration.intake_server, "/batch")
request_url = urljoin(async_connector.configuration.intake_server, "batch")

with aioresponses() as mocked_responses, patch(
"sekoia_automation.connector.CHUNK_BYTES_MAX_SIZE", 128
Expand Down Expand Up @@ -198,7 +198,7 @@ async def test_async_connector_raise_error(
stop=stop_after_attempt(1),
)

request_url = urljoin(async_connector.configuration.intake_server, "/batch")
request_url = urljoin(async_connector.configuration.intake_server, "batch")

with aioresponses() as mocked_responses, patch(
"sekoia_automation.connector.CHUNK_BYTES_MAX_SIZE", 128
Expand Down

0 comments on commit 247041c

Please sign in to comment.