Skip to content

Commit 11b4966

Browse files
committed
run tests in Splunk 8.0
1 parent b4d50ab commit 11b4966

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ before_install:
3232
env:
3333
- SPLUNK_VERSION=7.0-sdk
3434
- SPLUNK_VERSION=7.2-sdk
35+
- SPLUNK_VERSION=8.0-sdk
3536

3637
language: python
3738

tests/test_examples.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,8 @@ def test_submit(self):
248248
def test_upload(self):
249249
# Note: test must run on machine where splunkd runs,
250250
# or a failure is expected
251+
if "SPLUNK_HOME" not in os.environ:
252+
self.skipTest("SPLUNK_HOME is not set, skipping")
251253
file_to_upload = os.path.expandvars(os.environ.get("INPUT_EXAMPLE_UPLOAD", "./upload.py"))
252254
self.check_commands(
253255
"upload.py --help",

tests/test_index.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ def tearDown(self):
4040
# someone cares to go clean them up. Unique naming prevents
4141
# clashes, though.
4242
if self.service.splunk_version >= (5,):
43-
if self.index_name in self.service.indexes and "TRAVIS" in os.environ:
43+
if self.index_name in self.service.indexes:
4444
self.service.indexes.delete(self.index_name)
45-
self.assertEventuallyTrue(lambda: self.index_name not in self.service.indexes)
45+
self.assertEventuallyTrue(lambda: self.index_name not in self.service.indexes)
4646
else:
4747
logging.warning("test_index.py:TestDeleteIndex: Skipped: cannot "
4848
"delete indexes via the REST API in Splunk 4.x")

0 commit comments

Comments
 (0)