Skip to content

Commit c16ac8f

Browse files
chore: remove submodules from dockerfile
1 parent 5855d34 commit c16ac8f

File tree

3 files changed

+13
-23
lines changed

3 files changed

+13
-23
lines changed

Dockerfile.splunk

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,3 @@ FROM splunk/splunk:$SPLUNK_VERSION
1818
ARG SPLUNK_APP_ID=TA_UNKNOWN
1919
ARG SPLUNK_APP_PACKAGE=package
2020
COPY ${SPLUNK_APP_PACKAGE} /opt/splunk/etc/apps/${SPLUNK_APP_ID}
21-
COPY deps/apps /opt/splunk/etc/apps/
22-
COPY deps/build/addonfactory_test_matrix_splunk/packages/all/common /opt/splunk/etc/apps/
23-
COPY deps/build/addonfactory_test_matrix_splunk/packages/all/sh /opt/splunk/etc/apps/

pytest_splunk_addon/event_ingestors/hec_event_ingestor.py

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def ingest(self, events, thread_count):
5454
"""
5555
Ingests event and metric data into splunk using HEC token via event endpoint.
5656
57-
For batch ingestion of events in a single request at event endpoint provide a list of event dict to be ingested.
57+
For batch ingestion of events in a single request at event endpoint provide event dicts stacked one after the other, and not in a JSON array.
5858
5959
The format of dictionary for ingesting a single event::
6060
@@ -67,20 +67,18 @@ def ingest(self, events, thread_count):
6767
6868
The format of dictionary for ingesting a batch of events::
6969
70-
[
71-
{
72-
"sourcetype": "sample_HEC",
73-
"source": "sample_source",
74-
"host": "sample_host",
75-
"event": "event_str1"
76-
},
77-
{
78-
"sourcetype": "sample_HEC",
79-
"source": "sample_source",
80-
"host": "sample_host",
81-
"event": "event_str2"
82-
},
83-
]
70+
{
71+
"sourcetype": "sample_HEC",
72+
"source": "sample_source",
73+
"host": "sample_host",
74+
"event": "event_str1"
75+
}
76+
{
77+
"sourcetype": "sample_HEC",
78+
"source": "sample_source",
79+
"host": "sample_host",
80+
"event": "event_str2"
81+
},
8482
8583
Args:
8684
events (list): List of events (SampleEvent) to be ingested

tests/e2e/test_splunk_addon.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,6 @@ def test_connection_splunk(splunk_search_util):
2121

2222

2323
def setup_test_dir(testdir):
24-
shutil.copytree(
25-
os.path.join(testdir.request.config.invocation_dir, "deps"),
26-
os.path.join(testdir.tmpdir, "deps"),
27-
)
28-
2924
shutil.copytree(
3025
os.path.join(testdir.request.config.invocation_dir, "tests/e2e/addons"),
3126
os.path.join(testdir.tmpdir, "tests/addons"),

0 commit comments

Comments
 (0)