Skip to content

Commit b69baaf

Browse files
authored
Merge pull request #671 from splunk/dev/CB/SDK-21-dependencies-in-bin
SDK-21 add deps of test apps into bin/
2 parents 9a97183 + 758b0cb commit b69baaf

File tree

6 files changed

+18
-27
lines changed

6 files changed

+18
-27
lines changed

docker-compose.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ services:
2323
- "./tests/system/test_apps/reporting_app:/opt/splunk/etc/apps/reporting_app"
2424
- "./tests/system/test_apps/streaming_app:/opt/splunk/etc/apps/streaming_app"
2525
- "./tests/system/test_apps/modularinput_app:/opt/splunk/etc/apps/modularinput_app"
26-
- "./splunklib:/opt/splunk/etc/apps/eventing_app/lib/splunklib"
27-
- "./splunklib:/opt/splunk/etc/apps/generating_app/lib/splunklib"
28-
- "./splunklib:/opt/splunk/etc/apps/reporting_app/lib/splunklib"
29-
- "./splunklib:/opt/splunk/etc/apps/streaming_app/lib/splunklib"
30-
- "./splunklib:/opt/splunk/etc/apps/modularinput_app/lib/splunklib"
26+
- "./splunklib:/opt/splunk/etc/apps/eventing_app/bin/splunklib"
27+
- "./splunklib:/opt/splunk/etc/apps/generating_app/bin/splunklib"
28+
- "./splunklib:/opt/splunk/etc/apps/reporting_app/bin/splunklib"
29+
- "./splunklib:/opt/splunk/etc/apps/streaming_app/bin/splunklib"
30+
- "./splunklib:/opt/splunk/etc/apps/modularinput_app/bin/splunklib"

tests/system/test_apps/eventing_app/bin/eventingcsc.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,13 @@
1515
# License for the specific language governing permissions and limitations
1616
# under the License.
1717

18-
import os, sys
18+
import sys
1919

20-
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "lib"))
2120
from splunklib.searchcommands import (
22-
dispatch,
23-
EventingCommand,
2421
Configuration,
22+
EventingCommand,
2523
Option,
26-
validators,
24+
dispatch,
2725
)
2826

2927

tests/system/test_apps/generating_app/bin/generatingcsc.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,14 @@
1515
# License for the specific language governing permissions and limitations
1616
# under the License.
1717

18-
import os, sys
18+
import sys
1919
import time
2020

21-
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "lib"))
2221
from splunklib.searchcommands import (
23-
dispatch,
24-
GeneratingCommand,
2522
Configuration,
23+
GeneratingCommand,
2624
Option,
25+
dispatch,
2726
validators,
2827
)
2928

tests/system/test_apps/modularinput_app/bin/modularinput.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,9 @@
1515
# under the License.
1616

1717
import sys
18-
import os
1918
from urllib import parse
2019

21-
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "lib"))
22-
from splunklib.modularinput import Scheme, Argument, Script, Event
20+
from splunklib.modularinput import Argument, Event, Scheme, Script
2321

2422

2523
class ModularInput(Script):

tests/system/test_apps/reporting_app/bin/reportingcsc.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,13 @@
1515
# License for the specific language governing permissions and limitations
1616
# under the License.
1717

18-
import os, sys
18+
import sys
1919

20-
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "lib"))
2120
from splunklib.searchcommands import (
22-
dispatch,
23-
ReportingCommand,
2421
Configuration,
2522
Option,
23+
ReportingCommand,
24+
dispatch,
2625
validators,
2726
)
2827

tests/system/test_apps/streaming_app/bin/streamingcsc.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,12 @@
1515
# License for the specific language governing permissions and limitations
1616
# under the License.
1717

18-
import os, sys
18+
import sys
1919

20-
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "lib"))
2120
from splunklib.searchcommands import (
22-
dispatch,
23-
StreamingCommand,
2421
Configuration,
25-
Option,
26-
validators,
22+
StreamingCommand,
23+
dispatch,
2724
)
2825

2926

0 commit comments

Comments
 (0)