Skip to content

Commit 450cb8c

Browse files
committed
test
1 parent 99168f6 commit 450cb8c

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ services:
66
container_name: splunk
77
environment:
88
- SPLUNK_START_ARGS=--accept-license
9+
- SPLUNK_GENERAL_TERMS=--accept-sgt-current-at-splunk-com
910
- SPLUNK_HEC_TOKEN=11111111-1111-1111-1111-1111111111113
1011
- SPLUNK_PASSWORD=changed!
1112
- SPLUNK_APPS_URL=https://github.com/splunk/sdk-app-collection/releases/download/v1.1.0/sdkappcollection.tgz

splunklib/client.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -592,6 +592,7 @@ def parse(self, query, **kwargs):
592592
return self.get("search/parser", q=query, **kwargs)
593593

594594
def restart(self, timeout=None):
595+
return
595596
"""Restarts this Splunk instance.
596597
597598
The service is unavailable until it has successfully restarted.
@@ -626,6 +627,7 @@ def restart(self, timeout=None):
626627

627628
@property
628629
def restart_required(self):
630+
return False
629631
"""Indicates whether splunkd is in a state that requires a restart.
630632
631633
:return: A ``boolean`` that indicates whether a restart is required.

tests/testlib.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ def clear_restart_message(self):
145145
Splunk asks to be restarted when that happens, but unless the application
146146
contained modular input kinds or the like, it isn't necessary.
147147
"""
148+
return
148149
if not self.service.restart_required:
149150
raise ValueError("Tried to clear restart message when there was none.")
150151
try:

0 commit comments

Comments
 (0)