From 758b0cbd7524299268178e27cef257346b48f3e3 Mon Sep 17 00:00:00 2001 From: Cecylia Borek Date: Wed, 10 Sep 2025 17:32:19 +0200 Subject: [PATCH] SDK-21 add deps of test apps into bin/ --- docker-compose.yml | 10 +++++----- tests/system/test_apps/eventing_app/bin/eventingcsc.py | 8 +++----- .../test_apps/generating_app/bin/generatingcsc.py | 7 +++---- .../test_apps/modularinput_app/bin/modularinput.py | 4 +--- .../system/test_apps/reporting_app/bin/reportingcsc.py | 7 +++---- .../system/test_apps/streaming_app/bin/streamingcsc.py | 9 +++------ 6 files changed, 18 insertions(+), 27 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index c29a33976..a82d16a7f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -23,8 +23,8 @@ services: - "./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" + - "./splunklib:/opt/splunk/etc/apps/eventing_app/bin/splunklib" + - "./splunklib:/opt/splunk/etc/apps/generating_app/bin/splunklib" + - "./splunklib:/opt/splunk/etc/apps/reporting_app/bin/splunklib" + - "./splunklib:/opt/splunk/etc/apps/streaming_app/bin/splunklib" + - "./splunklib:/opt/splunk/etc/apps/modularinput_app/bin/splunklib" diff --git a/tests/system/test_apps/eventing_app/bin/eventingcsc.py b/tests/system/test_apps/eventing_app/bin/eventingcsc.py index 9f43d2581..c162195f5 100644 --- a/tests/system/test_apps/eventing_app/bin/eventingcsc.py +++ b/tests/system/test_apps/eventing_app/bin/eventingcsc.py @@ -15,15 +15,13 @@ # License for the specific language governing permissions and limitations # under the License. -import os, sys +import sys -sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "lib")) from splunklib.searchcommands import ( - dispatch, - EventingCommand, Configuration, + EventingCommand, Option, - validators, + dispatch, ) diff --git a/tests/system/test_apps/generating_app/bin/generatingcsc.py b/tests/system/test_apps/generating_app/bin/generatingcsc.py index 42d5aff77..dd69ad245 100644 --- a/tests/system/test_apps/generating_app/bin/generatingcsc.py +++ b/tests/system/test_apps/generating_app/bin/generatingcsc.py @@ -15,15 +15,14 @@ # License for the specific language governing permissions and limitations # under the License. -import os, sys +import sys import time -sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "lib")) from splunklib.searchcommands import ( - dispatch, - GeneratingCommand, Configuration, + GeneratingCommand, Option, + dispatch, validators, ) diff --git a/tests/system/test_apps/modularinput_app/bin/modularinput.py b/tests/system/test_apps/modularinput_app/bin/modularinput.py index 838b2cf42..755d92d35 100755 --- a/tests/system/test_apps/modularinput_app/bin/modularinput.py +++ b/tests/system/test_apps/modularinput_app/bin/modularinput.py @@ -15,11 +15,9 @@ # under the License. import sys -import os from urllib import parse -sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "lib")) -from splunklib.modularinput import Scheme, Argument, Script, Event +from splunklib.modularinput import Argument, Event, Scheme, Script class ModularInput(Script): diff --git a/tests/system/test_apps/reporting_app/bin/reportingcsc.py b/tests/system/test_apps/reporting_app/bin/reportingcsc.py index 145df1b13..3a9907119 100644 --- a/tests/system/test_apps/reporting_app/bin/reportingcsc.py +++ b/tests/system/test_apps/reporting_app/bin/reportingcsc.py @@ -15,14 +15,13 @@ # License for the specific language governing permissions and limitations # under the License. -import os, sys +import sys -sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "lib")) from splunklib.searchcommands import ( - dispatch, - ReportingCommand, Configuration, Option, + ReportingCommand, + dispatch, validators, ) diff --git a/tests/system/test_apps/streaming_app/bin/streamingcsc.py b/tests/system/test_apps/streaming_app/bin/streamingcsc.py index aa92cd456..d3b3ea181 100644 --- a/tests/system/test_apps/streaming_app/bin/streamingcsc.py +++ b/tests/system/test_apps/streaming_app/bin/streamingcsc.py @@ -15,15 +15,12 @@ # License for the specific language governing permissions and limitations # under the License. -import os, sys +import sys -sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "lib")) from splunklib.searchcommands import ( - dispatch, - StreamingCommand, Configuration, - Option, - validators, + StreamingCommand, + dispatch, )