File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ before_install:
3232env :
3333 - SPLUNK_VERSION=7.0-sdk
3434 - SPLUNK_VERSION=7.2-sdk
35+ - SPLUNK_VERSION=8.0-sdk
3536
3637language : python
3738
Original file line number Diff line number Diff 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" ,
Original file line number Diff line number Diff 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" )
You can’t perform that action at this time.
0 commit comments