Skip to content

Commit c951ca1

Browse files
author
Frederick Ross
committed
Merge branch 'develop' into fross/test-timing
2 parents ff42341 + 69c6ffd commit c951ca1

File tree

12 files changed

+236
-173
lines changed

12 files changed

+236
-173
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ proxypid
1212
proxy.log
1313
MANIFEST
1414
coverage_report
15+
test.log

CHANGELOG.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
### New features and APIs
66

77
* An `AuthenticationError` exception has been added.
8+
This exception is a subclass of `HTTPError`, so existing code that expects
9+
HTTP 401 (Unauthorized) will continue to work.
810

911
* An `"autologin"` argument has been added to the `splunklib.client.connect` and
1012
`splunklib.binding.connect` functions. When set to true, Splunk automatically
@@ -57,9 +59,6 @@
5759

5860
### Breaking changes
5961

60-
* Authentication errors are now reported as `AuthenticationError` instead of as
61-
`HTTPError` with code 401.
62-
6362
* `Job` objects are no longer guaranteed to be ready for querying.
6463
Client code should call the `Job.is_ready` method to determine when it is safe
6564
to access properties on the job.

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ examples and unit tests from the SDK.
7171
### Running the examples and unit tests
7272

7373
To run the examples and unit tests, you must put the root of
74-
the SDK on your PYTHONPATH. For example, add the following line to your
74+
the SDK on your PYTHONPATH. For example, if you have downloaded the SDK to your
75+
home folder and are running Mac OS X or Linux, add the following line to your
7576
**.bash_profile**:
7677

7778
export PYTHONPATH=~/splunk-sdk-python

docs/binding.rst

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,5 @@ splunklib.binding
2121
.. autoclass:: HttpLib
2222
:members: delete, get, post, request
2323

24-
.. autoclass:: NoAuthenticationToken
25-
:members:
26-
2724
.. autoclass:: ResponseReader
2825
:members: close, empty, peek, read
29-
30-
.. autoclass:: UrlEncoded
31-
:members:
32-

docs/client.rst

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,6 @@ splunklib.client
6464
:members: cancel, disable_preview, enable_preview, events, finalize, is_done, is_ready, name, pause, refresh, results, preview, searchlog, set_priority, summary, timeline, touch, set_ttl, unpause
6565
:inherited-members:
6666

67-
.. autoclass:: JobNotReadyException
68-
:members:
69-
7067
.. autoclass:: Jobs
7168
:members: create, export, itemmeta, oneshot
7269
:inherited-members:
@@ -83,24 +80,15 @@ splunklib.client
8380
:members: arguments, update
8481
:inherited-members:
8582

86-
.. autoclass:: NoSuchApplicationException
87-
:members:
88-
8983
.. autoclass:: NoSuchCapability
9084
:members:
9185

92-
.. autoclass:: NoSuchUserException
93-
:members:
94-
9586
.. autoclass:: NotSupportedError
9687
:members:
9788

9889
.. autoclass:: OperationError
9990
:members:
10091

101-
.. autoclass:: OperationFailedException
102-
:members:
103-
10492
.. autoclass:: ReadOnlyCollection
10593
:members: itemmeta, iter, list, names
10694
:inherited-members:

docs/index.rst

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,13 @@ For more information about the SDK, see the `Splunk Developer Portal <http://dev
1515

1616
:class:`~splunklib.binding.ResponseReader` class
1717

18-
:class:`~splunklib.binding.UrlEncoded` class
19-
2018

2119
**Exceptions**
2220

2321
:func:`~splunklib.binding.handler` function
2422

2523
:class:`~splunklib.binding.AuthenticationError` class
2624

27-
:class:`~splunklib.binding.NoAuthenticationToken` class
28-
2925
**Custom HTTP handler**
3026

3127
:class:`~splunklib.binding.HTTPError` class
@@ -104,20 +100,12 @@ For more information about the SDK, see the `Splunk Developer Portal <http://dev
104100

105101
:class:`~splunklib.client.InvalidNameException` class
106102

107-
:class:`~splunklib.client.JobNotReadyException` class
108-
109-
:class:`~splunklib.client.NoSuchApplicationException` class
110-
111103
:class:`~splunklib.client.NoSuchCapability` class
112104

113-
:class:`~splunklib.client.NoSuchUserException` class
114-
115105
:class:`~splunklib.client.NotSupportedError` class
116106

117107
:class:`~splunklib.client.OperationError` class
118108

119-
:class:`~splunklib.client.OperationFailedException` class
120-
121109

122110
:doc:`data`
123111
-----------

0 commit comments

Comments
 (0)