Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
29 changes: 29 additions & 0 deletions .github/workflows/appinspect.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Validate SDK with Splunk AppInspect
on: [ push, workflow_dispatch ]

env:
PYTHON_VERSION: 3.13
MOCK_APP_PATH: ./tests/system/test_apps/generating_app

jobs:
appinspect:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- uses: ./.github/actions/setup-sdk-environment
with:
python-version: ${{ env.PYTHON_VERSION }}
deps-group: lint
- name: Install splunk-appinspect dependencies
run: sudo apt-get install -y libmagic1
- name: Install packages for the mock app
run: |
mkdir -p ${{ env.MOCK_APP_PATH }}/bin/lib
uv pip install ".[openai, anthropic]" --target ${{ env.MOCK_APP_PATH }}/bin/lib
- name: Copy splunklib to a test app and package it as a mock app
run: |
cd ${{ env.MOCK_APP_PATH }}
tar -czf mock_app.tgz --exclude="__pycache__" bin default metadata
- name: Validate mock app with splunk-appinspect
run: uvx splunk-appinspect inspect ${{ env.MOCK_APP_PATH }}/mock_app.tgz
--included-tags cloud
2 changes: 1 addition & 1 deletion splunklib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ def setup_logging(
logging.basicConfig(level=level, format=log_format, datefmt=date_format)


__version_info__ = (2, 2, 0, "alpha")
__version_info__ = (3, 0, 0)
__version__ = ".".join(map(str, __version_info__))
8 changes: 4 additions & 4 deletions tests/system/test_apps/cre_app/default/restmap.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[script:execute]
match = /execute
scripttype = python
handler = execute.Handler

match = /execute
scripttype = python
handler = execute.Handler
python.required = 3.13
1 change: 1 addition & 0 deletions tests/system/test_apps/eventing_app/default/commands.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
filename = eventingcsc.py
chunked = true
python.version = python3
python.required = 3.13
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
filename = generatingcsc.py
chunked = true
python.version = python3
python.required = 3.13
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
[modularinput]
python.version = python3
python.required = 3.13
1 change: 1 addition & 0 deletions tests/system/test_apps/reporting_app/default/commands.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
filename = reportingcsc.py
chunked = true
python.version = python3
python.required = 3.13
1 change: 1 addition & 0 deletions tests/system/test_apps/streaming_app/default/commands.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
filename = streamingcsc.py
chunked = true
python.version = python3
python.required = 3.13
Loading