Skip to content

Commit 5e1d8d0

Browse files
author
David Noble
committed
Changes
* Updated change log * Refined an assertion in tests/searchcomands/test_searchcommands_app.py * Added generatetext command to packing list for examples/searchcommands_app * Reverted to default settings in examples/searchcommands_app/package/bin/_pydebug_conf.py
1 parent 45ed180 commit 5e1d8d0

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

CHANGELOG.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,22 @@
44

55
* Added support for Search Command Protocol V2, for Splunk 6.3+.
66

7-
* Added `splunklib` logger so that command loggers can be configured independently of the `splunklib.searchcommands` module.
7+
* Added support for invoking external search command processes.
8+
9+
See `examples/searchcommands_app/package/bin/pypygeneratext.py`.
10+
11+
* Added a new search command type: EventingCommand is the base class for commands that filter events arriving at a
12+
search head from one or more search peers.
13+
14+
See `examples/searchcommands_app/package/bin/filter.py`.
15+
16+
* Added `splunklib` logger so that command loggers can be configured independently of the `splunklib.searchcommands`
17+
module.
818

919
See `examples/searchcommands_app/package/default/logger.conf` for guidance on logging configuration.
1020

11-
* Added `splunklib.searchcommands.validators.Match` class for verifying that an option value matches a regular expression pattern.
21+
* Added `splunklib.searchcommands.validators.Match` class for verifying that an option value matches a regular
22+
expression pattern.
1223

1324
### Bug fixes
1425

examples/searchcommands_app/package/bin/_pydebug_conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@
1515
# under the License.
1616

1717
host = 'localhost'
18-
port = 52001
18+
port = 5678
1919
suspend = False
2020
is_enabled = {}

examples/searchcommands_app/setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,7 @@ def run(self):
455455
os.path.join('package', 'bin', 'countmatches.py'),
456456
os.path.join('package', 'bin', 'filter.py'),
457457
os.path.join('package', 'bin', 'generatehello.py'),
458+
os.path.join('package', 'bin', 'generatetext.py'),
458459
os.path.join('package', 'bin', 'pypygeneratetext.py'),
459460
os.path.join('package', 'bin', 'simulate.py'),
460461
os.path.join('package', 'bin', 'sum.py')

tests/searchcommands/test_searchcommands_app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ def assertInfoEqual(self, output, expected):
250250
def _get_search_command_path(self, name):
251251
path = os.path.join(
252252
project_root, 'examples', 'searchcommands_app', 'build', 'searchcommands_app', 'bin', name + '.py')
253-
self.assertTrue(path)
253+
self.assertTrue(os.path.isfile(path))
254254
return path
255255

256256
def _run_command(self, name, action=None, phase=None, protocol=2):

0 commit comments

Comments
 (0)