Skip to content

Commit 758ce01

Browse files
committed
Spruce up example app names etc.
1 parent de1a98b commit 758ce01

File tree

10 files changed

+40
-27
lines changed

10 files changed

+40
-27
lines changed

tests/system/test_apps/eventing_app/bin/eventingcsc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
@Configuration()
2929
class EventingCSC(EventingCommand):
3030
"""
31-
The eventingapp command filters records from the events stream returning only those for which the status is same
32-
as search query.
31+
The `eventingcsc` command filters records from the events stream
32+
returning only those for which the status is same as search query.
3333
3434
Example:
3535

tests/system/test_apps/eventing_app/default/app.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ is_configured = 0
77

88
[ui]
99
is_visible = 1
10-
label = Eventing App
10+
label = [EXAMPLE] Eventing CSC App
1111

1212
[launcher]
13-
description = Eventing custom search commands example
13+
description = Example app for eventing Custom Search Commands
1414
version = 1.0.0
1515
author = Splunk
1616

tests/system/test_apps/generating_app/bin/generatingcsc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
@Configuration()
3131
class GeneratingCSC(GeneratingCommand):
3232
"""
33-
The generatingapp command generates a specific number of records.
33+
The `generatingcsc` command generates a specific number of records.
3434
3535
Example:
3636

tests/system/test_apps/generating_app/default/app.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ is_configured = 0
77

88
[ui]
99
is_visible = 1
10-
label = Generating App
10+
label = [EXAMPLE] Generating CSC App
1111

1212
[launcher]
13-
description = Generating custom search commands example
13+
description = Example app for generating Custom Search Commands
1414
version = 1.0.0
1515
author = Splunk
1616

tests/system/test_apps/modularinput_app/bin/modularinput.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@
2121

2222

2323
class ModularInput(Script):
24+
"""
25+
This app provides an example of a modular input that
26+
can be used in Settings => Data inputs => Local inputs => modularinput
27+
"""
28+
2429
endpoint_arg = "endpoint"
2530

2631
def get_scheme(self):
Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
1+
#
2+
# Splunk app configuration file
3+
#
4+
15
[install]
26
is_configured = 0
37

48
[ui]
59
is_visible = 1
6-
label = Modular Input test app
10+
label = [EXAMPLE] Modular Input Test App
711

812
[launcher]
9-
author=Splunk
10-
description=Modular input test app
11-
version = 1.0
13+
description = Example app for Modular Inputs
14+
version = 1.0.0
15+
author = Splunk
1216

1317
[package]
1418
check_for_updates = false

tests/system/test_apps/reporting_app/bin/reportingcsc.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,17 @@
2929
@Configuration(requires_preop=True)
3030
class ReportingCSC(ReportingCommand):
3131
"""
32-
The reportingapp command returns a count of students having higher total marks than cutoff marks.
32+
The `reportingcsc` command returns a count of students
33+
having higher total marks than cutoff marks.
3334
3435
Example:
36+
```
37+
| makeresults count=10
38+
| eval math=random()%100, eng=random()%100, cs=random()%100
39+
| reportingcsc cutoff=150 math eng cs
40+
```
3541
36-
``| makeresults count=10 | eval math=random()%100, eng=random()%100, cs=random()%100 | reportingcsc cutoff=150 math eng cs``
37-
38-
returns a count of students out of 10 having a higher total marks than cutoff.
42+
Returns a count of students out of 10 having a higher total marks than cutoff.
3943
"""
4044

4145
cutoff = Option(require=True, validate=validators.Integer(0))

tests/system/test_apps/reporting_app/default/app.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ is_configured = 0
77

88
[ui]
99
is_visible = 1
10-
label = Reporting App
10+
label = [EXAMPLE] Reporting CSC App
1111

1212
[launcher]
13-
description = Reporting custom search commands example
13+
description = Example app for reporting Custom Search Commands
1414
version = 1.0.0
1515
author = Splunk
1616

tests/system/test_apps/streaming_app/default/app.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ is_configured = 0
77

88
[ui]
99
is_visible = 1
10-
label = Streaming App
10+
label = [EXAMPLE] Streaming CSC App
1111

1212
[launcher]
13-
description = Streaming custom search commands example
13+
description = Example app for streaming Custom Search Commands
1414
version = 1.0.0
1515
author = Splunk
1616

tests/system/test_csc_apps.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ def test_metadata(self):
5959

6060
self.assertEqual(content.author, "Splunk")
6161
self.assertEqual(content.configured, "0")
62-
self.assertEqual(content.description, "Eventing custom search commands example")
63-
self.assertEqual(content.label, "Eventing App")
62+
self.assertEqual(content.label, "[EXAMPLE] Eventing CSC App")
63+
self.assertEqual(content.description, "Example app for eventing Custom Search Commands")
6464
self.assertEqual(content.version, "1.0.0")
6565
self.assertEqual(content.visible, "1")
6666

@@ -135,10 +135,10 @@ def test_metadata(self):
135135

136136
self.assertEqual(content.author, "Splunk")
137137
self.assertEqual(content.configured, "0")
138+
self.assertEqual(content.label, "[EXAMPLE] Generating CSC App")
138139
self.assertEqual(
139-
content.description, "Generating custom search commands example"
140+
content.description, "Example app for generating Custom Search Commands"
140141
)
141-
self.assertEqual(content.label, "Generating App")
142142
self.assertEqual(content.version, "1.0.0")
143143
self.assertEqual(content.visible, "1")
144144

@@ -189,10 +189,10 @@ def test_metadata(self):
189189

190190
self.assertEqual(content.author, "Splunk")
191191
self.assertEqual(content.configured, "0")
192+
self.assertEqual(content.label, "[EXAMPLE] Reporting CSC App")
192193
self.assertEqual(
193-
content.description, "Reporting custom search commands example"
194+
content.description, "Example app for reporting Custom Search Commands"
194195
)
195-
self.assertEqual(content.label, "Reporting App")
196196
self.assertEqual(content.version, "1.0.0")
197197
self.assertEqual(content.visible, "1")
198198

@@ -267,10 +267,10 @@ def test_metadata(self):
267267

268268
self.assertEqual(content.author, "Splunk")
269269
self.assertEqual(content.configured, "0")
270+
self.assertEqual(content.label, "[EXAMPLE] Streaming CSC App")
270271
self.assertEqual(
271-
content.description, "Streaming custom search commands example"
272+
content.description, "Example app for streaming Custom Search Commands"
272273
)
273-
self.assertEqual(content.label, "Streaming App")
274274
self.assertEqual(content.version, "1.0.0")
275275
self.assertEqual(content.visible, "1")
276276

0 commit comments

Comments
 (0)