Skip to content

Commit f878496

Browse files
authored
Merge pull request #188 from splunk/updateTravisCI
Update travis ci
2 parents b8b504b + 7e9f60c commit f878496

File tree

5 files changed

+22
-34
lines changed

5 files changed

+22
-34
lines changed

.travis.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,13 @@ before_install:
3030
- mkdir -p $SPLUNK_HOME/var/log/splunk
3131

3232
env:
33-
- SPLUNK_VERSION=6.4-sdk
34-
- SPLUNK_VERSION=6.5-sdk
33+
- SPLUNK_VERSION=6.6-sdk
34+
- SPLUNK_VERSION=7.0-sdk
3535

3636
language: python
3737

3838
python:
3939
- "2.7"
40-
- "2.6"
4140

4241
install: "pip install unittest2"
4342

README.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Here's what you need to get going with the Splunk SDK for Python.
3636

3737
#### Python
3838

39-
The Splunk SDK for Python requires Python 2.6+.
39+
The Splunk SDK for Python requires Python 2.7+.
4040

4141
#### Splunk
4242

@@ -168,9 +168,7 @@ prompt in the **/splunk-sdk-python/tests** subdirectory and enter:
168168
python test_app.py
169169

170170
The test suite uses Python's standard library and the built-in `unittest`
171-
library. If you're using Python 2.7, you're all set. However, if you are using
172-
Python 2.6, you'll also need to install the `unittest2` library to
173-
get the additional features that were added to Python 2.7.
171+
library.
174172

175173
You can read more about our testing framework on
176174
[GitHub](https://github.com/splunk/splunk-sdk-python/tree/master/tests).
@@ -315,7 +313,3 @@ You can reach the Developer Platform team at [email protected]_.
315313
The Splunk Software Development Kit for Python is licensed under the Apache
316314
License 2.0. Details can be found in the file LICENSE.
317315

318-
For compatibility with Python 2.6, The Splunk Software Development Kit
319-
for Python ships with ordereddict.py from the ordereddict package on
320-
[PyPI](http://pypi.python.org/pypi/ordereddict/1.1), which is licensed
321-
under the MIT license (see the top of splunklib/ordereddict.py).

examples/handlers/cacert.pem

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,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3T1q78dhq1cKneOuE83Te/fREH54QokzrnAXoz+v/aGJkzjEpSEwrWUwLA1koE8I
15-
/0XFEwxWbEbt
8+
QTEhMB8GCSqGSIb3DQEJARYSc3VwcG9ydEBzcGx1bmsuY29tMIIBIjANBgkqhkiG
9+
9w0BAQEFAAOCAQ8AMIIBCgKCAQEAzB9ltVEGk73QvPlxXtA0qMW/SLDQlQMFJ/C/
10+
tXRVJdQsmcW4WsaETteeWZh8AgozO1LqOa3I6UmrWLcv4LmUAh/T3iZWXzHLIqFN
11+
WLSVU+2g0Xkn43xSgQEPSvEK1NqZRZv1SWvx3+oGHgu03AZrqTj0HyLujqUDARFX
12+
sRvBPW/VfDkomHj9b8IuK3qOUwQtIOUr+oKx1tM1J7VNN5NflLw9NdHtlfblw0Ys
13+
5xI5Qxu3rcCxkKQuwz9KRe4iijOIRMAKX28pbakxU9Nk38Ac3PNadgIk0s7R829k
14+
980sqGWkd06+C17OxgjpQbvLOR20FtmQybttUsXGR7Bp07YStwIDAQABMA0GCSqG
15+
SIb3DQEBCwUAA4IBAQCxhQd6KXP2VzK2cwAqdK74bGwl5WnvsyqdPWkdANiKksr4
16+
ZybJZNfdfRso3fA2oK1R8i5Ca8LK3V/UuAsXvG6/ikJtWsJ9jf+eYLou8lS6NVJO
17+
xDN/gxPcHrhToGqi1wfPwDQrNVofZcuQNklcdgZ1+XVuotfTCOXHrRoNmZX+HgkY
18+
gEtPG+r1VwSFowfYqyFXQ5CUeRa3JB7/ObF15WfGUYplbd3wQz/M3PLNKLvz5a1z
19+
LMNXDwN5Pvyb2epyO8LPJu4dGTB4jOGpYLUjG1UUqJo9Oa6D99rv6sId+8qjERtl
20+
ZZc1oaC0PKSzBmq+TpbR27B8Zra3gpoA+gavdRZj
1621
-----END CERTIFICATE-----

tests/test_binding.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,7 @@ def setUp(self):
506506
import splunklib.client as client
507507
service = client.Service(**self.opts.kwargs)
508508
# TODO: Workaround the fact that skipTest is not defined by unittest2.TestCase
509+
service.login()
509510
splver = service.splunk_version
510511
if splver[:2] < (6, 2):
511512
self.skipTest("Skipping cookie-auth tests, running in %d.%d.%d, this feature was added in 6.2+" % splver)

tests/test_service.py

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -158,12 +158,7 @@ def test_query_without_login_raises_http_401(self):
158158
pass
159159
else:
160160
raise
161-
162-
def test_server_info_without_login(self):
163-
service = self._create_unauthenticated_service()
164-
# Should succeed without AuthenticationError
165-
service.info['version']
166-
161+
167162
def _create_unauthenticated_service(self):
168163
return Service(**{
169164
'host': self.opts.kwargs['host'],
@@ -177,12 +172,6 @@ def setUp(self):
177172
self.opts = testlib.parse([], {}, ".splunkrc")
178173
self.service = client.Service(**self.opts.kwargs)
179174

180-
# Skip these tests if running below Splunk 6.2, cookie-auth didn't exist before
181-
splver = self.service.splunk_version
182-
# TODO: Workaround the fact that skipTest is not defined by unittest2.TestCase
183-
if splver[:2] < (6, 2):
184-
self.skipTest("Skipping cookie-auth tests, running in %d.%d.%d, this feature was added in 6.2+" % splver)
185-
186175
if getattr(unittest.TestCase, 'assertIsNotNone', None) is None:
187176

188177
def assertIsNotNone(self, obj, msg=None):

0 commit comments

Comments
 (0)