Skip to content

Commit 6a24337

Browse files
committed
release v1.7.2 changes
1 parent 0db743d commit 6a24337

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Splunk Enterprise SDK for Python Changelog
22

3+
## Version 1.7.2
4+
5+
### Minor changes
6+
* [#482](https://github.com/splunk/splunk-sdk-python/pull/482) updated version checks for enabling v2 search APIs
7+
38
## Version 1.7.1
49

510
### Bug fixes

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
# The Splunk Enterprise Software Development Kit for Python
55

6-
#### Version 1.7.1
6+
#### Version 1.7.2
77

88
The Splunk Enterprise Software Development Kit (SDK) for Python contains library code designed to enable developers to build applications using the Splunk platform.
99

splunklib/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@ def setup_logging(level, log_format=DEFAULT_LOG_FORMAT, date_format=DEFAULT_DATE
3131
format=log_format,
3232
datefmt=date_format)
3333

34-
__version_info__ = (1, 7, 1)
34+
__version_info__ = (1, 7, 2)
3535
__version__ = ".".join(map(str, __version_info__))

splunklib/binding.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1434,7 +1434,7 @@ def request(url, message, **kwargs):
14341434
head = {
14351435
"Content-Length": str(len(body)),
14361436
"Host": host,
1437-
"User-Agent": "splunk-sdk-python/1.7.1",
1437+
"User-Agent": "splunk-sdk-python/1.7.2",
14381438
"Accept": "*/*",
14391439
"Connection": "Close",
14401440
} # defaults

tests/test_job.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -399,10 +399,10 @@ def test_v1_job_fallback(self):
399399
n_events = len([x for x in events_r if isinstance(x, dict)])
400400
n_preview = len([x for x in preview_r if isinstance(x, dict)])
401401
n_results = len([x for x in results_r if isinstance(x, dict)])
402-
403-
# Fallback test for Splunk Version 9+
404-
if self.service.splunk_version >= (9,0,2):
405-
self.assertGreaterEqual((9,0,2), self.service.splunk_version)
402+
403+
# Fallback test for Splunk Version 9.0.2+
404+
if self.service.splunk_version >= (9, 0, 2):
405+
self.assertTrue(client.PATH_JOBS_V2 in self.job.path)
406406
self.assertEqual(n_events, n_preview, n_results)
407407

408408

tests/test_service.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,6 @@ def test_parse(self):
102102
# objectified form of the results, but for now there's
103103
# nothing to test but a good response code.
104104
response = self.service.parse('search * abc="def" | dedup abc')
105-
106-
# Splunk Version 9+ using API v2: search/v2/parser
107-
if self.service.splunk_version >= (9,0,2):
108-
self.assertGreaterEqual((9,0,2), self.service.splunk_version)
109-
110105
self.assertEqual(response.status, 200)
111106

112107
def test_parse_fail(self):

0 commit comments

Comments
 (0)