allow test_hec_event_writer to be executed more than once per splunk instance
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- python
- Domain
- testing-qa
Research direction
Start with tests/integration/test_hec_event_writer.py, especially the SPL at line 63, and reproduce the test twice against the same Splunk instance. Check how test_start_timestamp and test_end_timestamp can distinguish events from the current run; done means a repeated execution returns only the current test event and keeps the assertion at one result.
Written by the indexing model from the issue text.
Description
If solnlib integration tests are called second time locally with use of the same splunk instance, error like below will be raised.
`
assert len(search_results) == 1
E assert 2 == 1
E + where 2 = len([{'_bkt': 'main15806ABEBD-E78E-4B8A-B1B0-5DC0ADD73AB5', '_cd': '15:210', '_indextime': '1691056507', '_raw': '[{"tes...me": "test_hec_event_writes_with_non_utf_8", "field_a": "Üü_Öö_Ää_some_text", "field_b": "some_text_Üü_Öö_Ää"}]', ...}])
If [the SPL](https://github.com/splunk/addonfactory-solutions-library-python/blob/d7b36323d0070d6f04195d78e282cd7fa0494b28/tests/integration/test_hec_event_writer.py#L63) is extended by condition like | where _time>{test_start_timestamp} AND _time<{test_end_timestamp}`
- Dominant language
- Python
- Stars
- 18
- Forks
- 10
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from splunk/addonfactory-solutions-library-python
-
bug
Difficulty 5/5 Over a week Newbie friendliness 30/100
-
splunk/addonfactory-solutions-library-python#420 · 4 comments · 1 assignee ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
splunk/addonfactory-solutions-library-python#334 · 6 comments ·
-
bug
splunk/addonfactory-solutions-library-python#311 · 2 comments · 1 assignee ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 48/100
All issues in splunk/addonfactory-solutions-library-python
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
stephrobert/dsoxlab#238 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
sublimehq/package_control#1780 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
nwg-piotr/nwg-displays#145 ·