From ee03e9975582b4cd97af6c2a2e0ca36a5d8bea82 Mon Sep 17 00:00:00 2001 From: Abhijeet Kasurde Date: Fri, 2 Aug 2024 08:20:16 -0700 Subject: [PATCH] Misc Typo fixes Signed-off-by: Abhijeet Kasurde --- extensions/eda/plugins/event_filter/insert_hosts_to_meta.py | 2 +- extensions/eda/plugins/event_source/aws_cloudtrail.py | 2 +- extensions/eda/plugins/event_source/aws_sqs_queue.py | 2 +- extensions/eda/plugins/event_source/generic.py | 2 +- .../integration/event_source_url_check/test_url_check_source.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/extensions/eda/plugins/event_filter/insert_hosts_to_meta.py b/extensions/eda/plugins/event_filter/insert_hosts_to_meta.py index b90a3301..49aa03c0 100644 --- a/extensions/eda/plugins/event_filter/insert_hosts_to_meta.py +++ b/extensions/eda/plugins/event_filter/insert_hosts_to_meta.py @@ -9,7 +9,7 @@ host_path: The json path inside the event data to find hosts. Do nothing if the key is not present or does exist in event path_separator: The separator to interpret host_path. Default to "." - host_separator: The separator to interpet host string. + host_separator: The separator to interpret host string. host_path can point to a string or a list. If it is a single string but contains multiple hosts, use this parameter to delimits the hosts. Treat the vale as a single host if the diff --git a/extensions/eda/plugins/event_source/aws_cloudtrail.py b/extensions/eda/plugins/event_source/aws_cloudtrail.py index 5d5e34a8..c09e716b 100644 --- a/extensions/eda/plugins/event_source/aws_cloudtrail.py +++ b/extensions/eda/plugins/event_source/aws_cloudtrail.py @@ -12,7 +12,7 @@ delay_seconds: The number of seconds to wait between polling (default 10sec) lookup_attributes: The optional list of lookup attributes. - lookup attribute are dictionnary with an AttributeKey (string), + lookup attribute are dictionary with an AttributeKey (string), which specifies an attribute on which to filter the events returned and an AttributeValue (string) which specifies a value for the specified AttributeKey diff --git a/extensions/eda/plugins/event_source/aws_sqs_queue.py b/extensions/eda/plugins/event_source/aws_sqs_queue.py index 7dd3afb5..7ee5ba95 100644 --- a/extensions/eda/plugins/event_source/aws_sqs_queue.py +++ b/extensions/eda/plugins/event_source/aws_sqs_queue.py @@ -56,7 +56,7 @@ async def main(queue: asyncio.Queue, args: dict[str, Any]) -> None: queue_url = response["QueueUrl"] while True: - # This loop wont spin really fast as there is + # This loop won't spin really fast as there is # essentially a sleep in the receive_message call response = await client.receive_message( QueueUrl=queue_url, diff --git a/extensions/eda/plugins/event_source/generic.py b/extensions/eda/plugins/event_source/generic.py index f97510c9..0f98ee55 100644 --- a/extensions/eda/plugins/event_source/generic.py +++ b/extensions/eda/plugins/event_source/generic.py @@ -25,7 +25,7 @@ should be repeated. Default 0 repeat_count int Number of times each individual event in the playload should be repeated. Default 1 -blob_size int An arbitray blob of blob_size bytes to be inserted +blob_size int An arbitrary blob of blob_size bytes to be inserted into every event payload. Default is 0 don't create a blob final_payload dict After all the events have been sent we send the optional diff --git a/tests/integration/event_source_url_check/test_url_check_source.py b/tests/integration/event_source_url_check/test_url_check_source.py index 6c3a8302..d304299c 100644 --- a/tests/integration/event_source_url_check/test_url_check_source.py +++ b/tests/integration/event_source_url_check/test_url_check_source.py @@ -35,7 +35,7 @@ def init_webserver(): "endpoint, expected_resp_data", [ pytest.param("", "Endpoint available", id="valid_endpoint"), - pytest.param("nonexistant", "Endpoint unavailable", id="invalid_endpoint"), + pytest.param("nonexistent", "Endpoint unavailable", id="invalid_endpoint"), ], ) def test_url_check_source_sanity(