Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
71c984c
Fix invalid escape sequence in get_api_version func
Sep 4, 2024
cf03883
Merge pull request #614 from splunk/master
szymonjas Apr 9, 2025
62acf2c
Reapply "Fix pipeline"
szymonjas Apr 9, 2025
1f3fa35
Reapply "Use relative imports for splunk-sdk"
szymonjas Apr 9, 2025
ce732fc
Merge pull request #583 from AlexPetul/gh-582
szymonjas Apr 9, 2025
6bd47f2
SDK-23: check if developer added custom map method
maszyk99 Jun 27, 2025
42bf5e1
SDK-23: add unit test with map
maszyk99 Jul 3, 2025
3a6ff04
Merge pull request #622 from splunk/SDK-23/fix-map-reporting-command
maszyk99 Jul 4, 2025
c6c269c
Add loggers in Service, add test for service creation
szymonjas Jul 7, 2025
3d116ba
Merge pull request #623 from splunk/SDK-26
szymonjas Jul 8, 2025
7500539
[SDK-30] nosemgrep added
aciesielczyk-splunk Jul 23, 2025
7d259e8
Merge remote-tracking branch 'origin/develop' into SDK-30/nosemgrep
aciesielczyk-splunk Jul 23, 2025
b39b9d5
Merge pull request #626 from aciesielczyk-splunk/SDK-30/nosemgrep
szymonjas Jul 25, 2025
3795fee
Format entire repo
mateusz834 Aug 7, 2025
99168f6
Merge pull request #632 from splunk/dev/MP/format-repo
Ickerday Aug 8, 2025
7a5aa3f
Set SPLUNK_GENERAL_TERMS env in docker-compose.yml
mateusz834 Aug 12, 2025
1aa5b20
Merge pull request #635 from splunk/dev/MP/set-splunk-general-terms-env
Ickerday Aug 12, 2025
ccf4e8e
fix csc apps test
Aug 8, 2025
2223825
simplify eventing app test
Aug 18, 2025
23f0263
split csc tests into behavior and metadata
Aug 18, 2025
a84c951
Merge pull request #633 from splunk/dev/CB/DVPL-12497-fix-csc-apps-test
Ickerday Aug 19, 2025
a12f605
Deflake test_collection.py
mateusz834 Aug 18, 2025
1c25e27
Merge pull request #639 from splunk/dev/MP/deflake-collection
mateusz834 Aug 19, 2025
3cd7cd3
divide tests into folders
Aug 7, 2025
d85a59f
Merge pull request #637 from splunk/dev/CB/DVPL-12497-reorganize-tests
Ickerday Aug 19, 2025
e62b227
Remove unused Test and TestRecorder classes from test_internals_v2.py
mateusz834 Aug 19, 2025
9ae07f1
Remove unused TestStreamingCommand from test_search_command.py
mateusz834 Aug 19, 2025
cb675f1
Merge pull request #640 from splunk/dev/MP/remove-unused-Test-TestRec…
mateusz834 Aug 20, 2025
0a16aee
Merge pull request #641 from splunk/dev/MP/remove-unused-TestStreamin…
mateusz834 Aug 20, 2025
028b69c
Update and pin external GH Actions in CI/CD
Ickerday Aug 21, 2025
74c0fb8
Add new env variable for Splunk 10, remove docker-compose version, ad…
Ickerday Aug 21, 2025
5166207
Pin actions to newer commits
Ickerday Aug 21, 2025
c7e9f87
Merge pull request #630 from splunk/dev/BJ/DVPL-12487-update-pin-gh-a…
Ickerday Aug 21, 2025
731bffd
Re-enable test_delete from test_input.py
mateusz834 Aug 21, 2025
27af330
Merge pull request #642 from splunk/dev/MP/re-enable-test_delete
mateusz834 Aug 22, 2025
501517b
Change dependabot's target branch to `develop`
Ickerday Aug 25, 2025
3c90fc2
Merge pull request #650 from splunk/dev/BJ/nojira-change-dependabot-t…
Ickerday Aug 25, 2025
de7e883
DVPL-12509: Update CI target matrix (#644)
Ickerday Aug 25, 2025
18e9eca
Remove duplicated modular input kind tests
mateusz834 Aug 25, 2025
dc066cc
Add modular input e2e test
mateusz834 Aug 14, 2025
f82c32b
Merge pull request #636 from splunk/dev/MP/modularinput-e2e-test
mateusz834 Aug 25, 2025
1c2cc7b
Merge pull request #651 from splunk/dev/MP/remove-duplicated-modular-…
mateusz834 Aug 25, 2025
8e0a4ba
Remove unchecked splunk restart in test_modular_input_kinds.py
mateusz834 Aug 25, 2025
0f5e913
Merge pull request #652 from splunk/dev/MP/remove-unchecked-restart-i…
mateusz834 Aug 26, 2025
f0d1627
update CHANGELOG, readme and init for release 2.1.1
szymonjas Aug 26, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/dependabot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
target-branch: "master"
target-branch: "develop"
schedule:
interval: "weekly"
6 changes: 6 additions & 0 deletions .github/workflows/fossa.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
name: Fossa OSS Scan
on: [push]
jobs:
fossa-scan:
uses: splunk/oss-scanning-public/.github/workflows/oss-scan.yml@main
secrets: inherit
15 changes: 8 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,21 @@ on:
jobs:
publish:
name: Deploy Release to PyPI
runs-on: ubuntu-latest
# Last version with Python 3.7 binaries available
runs-on: ubuntu-22.04
steps:
- name: Checkout source
uses: actions/checkout@v3
uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@9322b3ca74000aeb2c01eb777b646334015ddd72
with:
python-version: 3.7
- name: Install dependencies
run: pip install twine
- name: Build package
run: python setup.py sdist
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@v1.8.10
uses: pypa/gh-action-pypi-publish@d417ba7e7683fa9104c42abe611c1f2c93c0727d
with:
user: __token__
password: ${{ secrets.pypi_password }}
Expand All @@ -29,14 +30,14 @@ jobs:
run: |
rm -rf ./docs/_build
tox -e docs
- name : Docs Upload
uses: actions/upload-artifact@v3
- name: Docs Upload
uses: actions/upload-artifact@de65e23aa2b7e23d713bb51fbfcb6d502f8667d8
with:
name: python_sdk_docs
path: docs/_build/html
# Test upload
# - name: Publish package to TestPyPI
# uses: pypa/gh-action-pypi-publish@master
# uses: pypa/gh-action-pypi-publish@d417ba7e7683fa9104c42abe611c1f2c93c0727d
# with:
# user: __token__
# password: ${{ secrets.test_pypi_password }}
Expand Down
43 changes: 19 additions & 24 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,35 @@
name: Python CI

on:
[ push, pull_request, workflow_dispatch ]
on: [push, workflow_dispatch]

jobs:
build:

runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
python: [ 3.7, 3.9, 3.13]
splunk-version:
- "8.1"
- "8.2"
- "latest"
fail-fast: false

matrix:
os: [ubuntu-latest]
python-version: [3.9]
splunk-version: [9.4, latest]
include:
# Oldest possible configuration
# Last Ubuntu version with Python 3.7 binaries available
- os: ubuntu-22.04
python-version: 3.7
splunk-version: 9.1
# Latest possible configuration
- os: ubuntu-latest
python-version: 3.13
splunk-version: latest
steps:
- name: Checkout code
uses: actions/checkout@v3

uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493
- name: Run docker compose
run: SPLUNK_VERSION=${{matrix.splunk-version}} docker compose up -d

run: SPLUNK_VERSION=${{ matrix.splunk-version }} docker compose up -d
- name: Setup Python
uses: actions/setup-python@v4
uses: actions/setup-python@9322b3ca74000aeb2c01eb777b646334015ddd72
with:
python-version: ${{ matrix.python }}

python-version: ${{ matrix.python-version }}
- name: Install tox
run: pip install tox

- name: Test Execution
run: tox -e py
fossa-scan:
uses: splunk/oss-scanning-public/.github/workflows/oss-scan.yml@main
secrets: inherit
8 changes: 2 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,14 @@ __stdout__
docs/_build
build/
proxypid
proxy.log
MANIFEST
coverage_report
test.log
tests/searchcommands_data/log/
tests/searchcommands_data/output/
Test Results*.html
tests/searchcommands/data/app/app.log
*.log
splunk_sdk.egg-info/
dist/
tests/searchcommands/apps/app_with_logging_configuration/*.log
*.observed
venv/
.venv/
.tox
test-reports/
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Splunk Enterprise SDK for Python Changelog

## Version 2.1.1

### Changes
* [#623](https://github.com/splunk/splunk-sdk-python/pull/623/) Additional logging in custom search commands
* [#622](https://github.com/splunk/splunk-sdk-python/pull/622/) Check if developer added custom map method in reporting command
* Code reformatting and linting, improvements to github acitons

## Version 2.1.0

### Changes
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# The Splunk Enterprise Software Development Kit for Python

#### Version 2.1.0
#### Version 2.1.1

The Splunk Enterprise Software Development Kit (SDK) for Python contains library code designed to enable developers to build applications using the Splunk platform.

Expand Down
19 changes: 10 additions & 9 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,30 @@
version: '3.6'

services:
splunk:
image: "splunk/splunk:${SPLUNK_VERSION}"
container_name: splunk
environment:
- SPLUNK_START_ARGS=--accept-license
- SPLUNK_GENERAL_TERMS=--accept-sgt-current-at-splunk-com
- SPLUNK_HEC_TOKEN=11111111-1111-1111-1111-1111111111113
- SPLUNK_PASSWORD=changed!
- SPLUNK_APPS_URL=https://github.com/splunk/sdk-app-collection/releases/download/v1.1.0/sdkappcollection.tgz
ports:
- 8000:8000
- 8088:8088
- 8089:8089
- "8000:8000"
- "8088:8088"
- "8089:8089"
healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:8000']
interval: 5s
timeout: 5s
retries: 20
volumes:
- "./tests/searchcommands/test_apps/eventing_app:/opt/splunk/etc/apps/eventing_app"
- "./tests/searchcommands/test_apps/generating_app:/opt/splunk/etc/apps/generating_app"
- "./tests/searchcommands/test_apps/reporting_app:/opt/splunk/etc/apps/reporting_app"
- "./tests/searchcommands/test_apps/streaming_app:/opt/splunk/etc/apps/streaming_app"
- "./tests/system/test_apps/eventing_app:/opt/splunk/etc/apps/eventing_app"
- "./tests/system/test_apps/generating_app:/opt/splunk/etc/apps/generating_app"
- "./tests/system/test_apps/reporting_app:/opt/splunk/etc/apps/reporting_app"
- "./tests/system/test_apps/streaming_app:/opt/splunk/etc/apps/streaming_app"
- "./tests/system/test_apps/modularinput_app:/opt/splunk/etc/apps/modularinput_app"
- "./splunklib:/opt/splunk/etc/apps/eventing_app/lib/splunklib"
- "./splunklib:/opt/splunk/etc/apps/generating_app/lib/splunklib"
- "./splunklib:/opt/splunk/etc/apps/reporting_app/lib/splunklib"
- "./splunklib:/opt/splunk/etc/apps/streaming_app/lib/splunklib"
- "./splunklib:/opt/splunk/etc/apps/modularinput_app/lib/splunklib"
Loading