Skip to content

Commit 1f7541d

Browse files
Merge pull request #174 from gaurav22gupta/bugfix/SPL-142009
Bugfix/spl 142009
2 parents 833b530 + fdaf4b8 commit 1f7541d

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

examples/searchcommands_app/package/default/searchbnf.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ comment1 = \
3636
example1 = \
3737
| generatetext text="Hello world! How the heck are you?" count=6 \
3838
| filter predicate="(long(_serial) & 1) == 0" map="_raw = _raw.replace('world', 'Splunk')"
39-
category = eventing
39+
category = events
4040
appears-in = 1.5
4141
maintainer = dnoble
4242
usage = public

splunklib/searchcommands/eventing_command.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,10 @@ class ConfigurationSettings(SearchCommand.ConfigurationSettings):
113113
114114
''')
115115

116-
type = ConfigurationSetting(readonly=True, value='eventing', doc='''
116+
type = ConfigurationSetting(readonly=True, value='events', doc='''
117117
Command type
118118
119-
Fixed: :const:`'eventing'`.
119+
Fixed: :const:`'events'`.
120120
121121
Supported by: SCP 2
122122

splunklib/searchcommands/generating_command.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class GeneratingCommand(SearchCommand):
5656
+==========+=====================================+============================================+
5757
| streams | streaming=True[,local=[True|False]] | type='streaming'[,distributed=[true|false] |
5858
+----------+-------------------------------------+--------------------------------------------+
59-
| events | retainsevents=True, streaming=False | type='eventing' |
59+
| events | retainsevents=True, streaming=False | type='events' |
6060
+----------+-------------------------------------+--------------------------------------------+
6161
| reports | streaming=False | type='reporting' |
6262
+----------+-------------------------------------+--------------------------------------------+
@@ -112,7 +112,7 @@ class StreamingGeneratingCommand(GeneratingCommand)
112112
| | settings to your command class: | setting to your command class: |
113113
| | | |
114114
| | .. code-block:: python | .. code-block:: python |
115-
| | @Configuration( | @Configuration(type='eventing') |
115+
| | @Configuration( | @Configuration(type='events') |
116116
| | retainsevents=True, streaming=False) | class SomeCommand(GeneratingCommand) |
117117
| | class SomeCommand(GeneratingCommand) | ... |
118118
| | ... | |
@@ -127,7 +127,7 @@ class StreamingGeneratingCommand(GeneratingCommand)
127127
Configure your command class like this, if you wish to support both protocols:
128128
129129
.. code-block:: python
130-
@Configuration(type='eventing', retainsevents=True, streaming=False)
130+
@Configuration(type='events', retainsevents=True, streaming=False)
131131
class SomeCommand(GeneratingCommand)
132132
...
133133
@@ -280,7 +280,7 @@ class ConfigurationSettings(SearchCommand.ConfigurationSettings):
280280
==================== ======================================================================================
281281
Value Description
282282
-------------------- --------------------------------------------------------------------------------------
283-
:const:`'eventing'` Runs as the first command in the Splunk events pipeline. Cannot be distributed.
283+
:const:`'events'` Runs as the first command in the Splunk events pipeline. Cannot be distributed.
284284
:const:`'reporting'` Runs as the first command in the Splunk reports pipeline. Cannot be distributed.
285285
:const:`'streaming'` Runs as the first command in the Splunk streams pipeline. May be distributed.
286286
==================== ======================================================================================

splunklib/searchcommands/internals.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ def validate_configuration_setting(specification, name, value):
326326
supporting_protocols=[1, 2]),
327327
'type': specification(
328328
type=(bytes, unicode),
329-
constraint=lambda value: value in ('eventing', 'reporting', 'streaming'),
329+
constraint=lambda value: value in ('events', 'reporting', 'streaming'),
330330
supporting_protocols=[2])}
331331

332332

tests/searchcommands/test_configuration_settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def stream(self, records):
155155
command.configuration.required_fields = ['field_1', 'field_2', 'field_3']
156156

157157
try:
158-
command.configuration.type = 'eventing'
158+
command.configuration.type = 'events'
159159
except AttributeError:
160160
pass
161161
except Exception as error:

tests/searchcommands/test_decorators.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,8 @@ def fix_up(cls, command_class):
252252
('some unicode string', b'some byte string'),
253253
(None, 0xdead)),
254254
('type',
255-
('eventing', 'reporting', 'streaming', b'eventing', b'reporting', b'streaming'),
256-
('events', 0xdead))):
255+
('events', 'reporting', 'streaming', b'events', b'reporting', b'streaming'),
256+
('eventing', 0xdead))):
257257

258258
for value in values:
259259

0 commit comments

Comments
 (0)