Skip to content

Commit

Permalink
Merge pull request #466 from splunk/tests-for-csc-apps
Browse files Browse the repository at this point in the history
tests for CSC apps
  • Loading branch information
vmalaviya-splunk committed Jul 12, 2022
2 parents 9753de9 + 3b48fb6 commit 0837de2
Show file tree
Hide file tree
Showing 168 changed files with 693 additions and 18,729 deletions.
22 changes: 8 additions & 14 deletions .github/workflows/test.yml
Expand Up @@ -17,26 +17,20 @@ jobs:
- "latest"
fail-fast: false

services:
splunk:
image: splunk/splunk:${{matrix.splunk-version}}
env:
SPLUNK_START_ARGS: --accept-license
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

steps:
- uses: actions/checkout@v2
- name: Checkout code
uses: actions/checkout@v2

- name: Run docker-compose
run: SPLUNK_VERSION=${{matrix.splunk-version}} docker-compose up -d

- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}

- name: Install tox
run: pip install tox

- name: Test Execution
run: tox -e py
9 changes: 9 additions & 0 deletions docker-compose.yml
Expand Up @@ -18,3 +18,12 @@ services:
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"
- "./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"

This file was deleted.

This file was deleted.

This file was deleted.

Empty file.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Binary file not shown.

0 comments on commit 0837de2

Please sign in to comment.