Skip to content

Commit 220e143

Browse files
committed
Rework searchcommands_app to target only protocol v2, python3, and use docker volumes to include latest splunklib
1 parent 8a988f8 commit 220e143

File tree

5 files changed

+14
-193
lines changed

5 files changed

+14
-193
lines changed

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ MANIFEST
1616
coverage_report
1717
test.log
1818
examples/*/local
19-
examples/*/metadata/local.meta
19+
examples/**/local.meta
20+
examples/**/*.log
2021
tests/searchcommands_data/log/
2122
tests/searchcommands_data/output/
2223
examples/searchcommands_app/searchcommand_app.log
2324
Test Results*.html
2425
tests/searchcommands/data/app/app.log
2526
splunk_sdk.egg-info/
2627
dist/
27-
examples/searchcommands_app/package/default/commands.conf
2828
examples/searchcommands_app/package/lib/splunklib
2929
tests/searchcommands/apps/app_with_logging_configuration/*.log
3030
*.observed

docker-compose.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ services:
99
- SPLUNK_HEC_TOKEN=11111111-1111-1111-1111-1111111111113
1010
- SPLUNK_PASSWORD=changed!
1111
- SPLUNK_APPS_URL=https://github.com/splunk/sdk-app-collection/releases/download/v1.1.0/sdkappcollection.tgz
12+
volumes:
13+
- ./examples/github_forks:/opt/splunk/etc/apps/github_forks
14+
- ./examples/random_numbers:/opt/splunk/etc/apps/random_numbers
15+
- ./examples/searchcommands_app/package:/opt/splunk/etc/apps/searchcommands_app
16+
- ./splunklib:/opt/splunk/etc/apps/searchcommands_app/lib/splunklib
17+
- ./examples/twitted/twitted:/opt/splunk/etc/apps/twitted
1218
ports:
1319
- 8000:8000
1420
- 8088:8088

examples/searchcommands_app/package/default/commands-scpv1.conf

Lines changed: 0 additions & 62 deletions
This file was deleted.

examples/searchcommands_app/package/default/commands-scpv2.conf renamed to examples/searchcommands_app/package/default/commands.conf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,29 @@
44
[countmatches]
55
filename = countmatches.py
66
chunked = true
7+
python.version = python3
78

89
[filter]
910
filename = filter.py
1011
chunked = true
12+
python.version = python3
1113

1214
[generatetext]
1315
filename = generatetext.py
1416
chunked = true
17+
python.version = python3
1518

1619
[pypygeneratetext]
1720
filename = pypygeneratetext.py
1821
chunked = true
22+
python.version = python3
1923

2024
[simulate]
2125
filename = simulate.py
2226
chunked = true
27+
python.version = python3
2328

2429
[sum]
2530
filename = sum.py
2631
chunked = true
32+
python.version = python3

examples/twitted/twitted/metadata/local.meta

Lines changed: 0 additions & 129 deletions
This file was deleted.

0 commit comments

Comments
 (0)