Skip to content

Commit

Permalink
chore: added removed files in tests/unit/testdata directory
Browse files Browse the repository at this point in the history
  • Loading branch information
hetangmodi-crest committed Sep 26, 2024
1 parent bfbf55b commit dc25660
Show file tree
Hide file tree
Showing 11 changed files with 137 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/unit/testdata/alert_actions.conf.generated
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[test_alert]
label = Test Alert
description = Description for test Alert Action
param._cam = {"task": ["Create", "Update"], "subject": ["endpoint"], "category": ["Information Conveyance", "Information Portrayal"], "technology": [{"version": ["1.0.0"], "product": "Test Incident Update", "vendor": "Splunk"}], "supports_adhoc": true, "supports_cloud": true, "drilldown_uri": "search?q=search%20index%3D\"_internal\"&earliest=0&latest="}
python.version = python3
is_custom = 1
payload_format = json
icon_path = alerticon.png
param.name = xyz
param.all_incidents = 0
param.table_list = problem
param.action = two
param.account =
7 changes: 7 additions & 0 deletions tests/unit/testdata/alert_actions.conf.spec.generated
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[test_alert]
param._cam = <json> Adaptive Response parameters.
param.name = <string> Name. It's a required parameter. It's default value is xyz.
param.all_incidents = <bool> All Incidents.
param.table_list = <list> Table List. It's default value is problem.
param.action = <list> Action:. It's a required parameter. It's default value is two.
param.account = <list> Select Account. It's a required parameter.
15 changes: 15 additions & 0 deletions tests/unit/testdata/app.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[install]
build = 0

[launcher]
author = Splunk Inc.
version = 0.1.0
description = Splunk_TA_UCCExample

[ui]
is_visible = true
label = Splunk_TA_UCCExample
docs_section_override=AddOns:released

[package]
id = Splunk_TA_UCCExample
2 changes: 2 additions & 0 deletions tests/unit/testdata/app.conf.minimal
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[id]
version = 0.0.1
21 changes: 21 additions & 0 deletions tests/unit/testdata/app.conf.minimal.updated
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[id]
version = 1.0.0
name = Splunk_TA_UCCExample

[launcher]
version = 1.0.0
description = Description for Splunk_TA_UCCExample
author = Company name

[install]
build = 12345
is_configured = false
state = enabled

[package]
id = Splunk_TA_UCCExample
check_for_updates = false

[ui]
label = Title for Splunk_TA_UCCExample
is_visible = true
23 changes: 23 additions & 0 deletions tests/unit/testdata/app.conf.supported_themes
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[install]
build = 12345
is_configured = false
state = enabled

[launcher]
author = Company name
version = 1.0.0
description = Description for Splunk_TA_UCCExample

[ui]
is_visible = true
label = Title for Splunk_TA_UCCExample
docs_section_override = AddOns:released
supported_themes = light, dark

[package]
id = Splunk_TA_UCCExample
check_for_updates = true

[id]
version = 1.0.0
name = Splunk_TA_UCCExample
26 changes: 26 additions & 0 deletions tests/unit/testdata/app.conf.updated
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[install]
build = 12345
is_configured = false
state = enabled

[launcher]
author = Company name
version = 1.0.0
description = Description for Splunk_TA_UCCExample

[ui]
is_visible = true
label = Title for Splunk_TA_UCCExample
docs_section_override = AddOns:released

[package]
id = Splunk_TA_UCCExample
check_for_updates = true

[id]
version = 1.0.0
name = Splunk_TA_UCCExample

[triggers]
reload.splunk_ta_uccexample_settings = simple
reload.splunk_ta_uccexample_accounts = simple
22 changes: 22 additions & 0 deletions tests/unit/testdata/app.conf.updated_not_visible
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
[install]
build = 12345
is_configured = false
state = enabled

[launcher]
author = Company name
version = 1.0.0
description = Description for Splunk_TA_UCCExample

[ui]
is_visible = false
label = Title for Splunk_TA_UCCExample
docs_section_override = AddOns:released

[package]
id = Splunk_TA_UCCExample
check_for_updates = true

[id]
version = 1.0.0
name = Splunk_TA_UCCExample
2 changes: 2 additions & 0 deletions tests/unit/testdata/eventtypes.conf.generated
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[test_alert_modaction_result]
search = sourcetype="test:incident"
4 changes: 4 additions & 0 deletions tests/unit/testdata/server.conf.generated
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[shclustering]
conf_replication_include.splunk_ta_ucc_example_settings = true
conf_replication_include.splunk_ta_ucc_example_account = true
conf_replication_include.splunk_ta_ucc_example_oauth = true
2 changes: 2 additions & 0 deletions tests/unit/testdata/tags.conf.generated
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[eventtype=test_alert_modaction_result]
modaction_result = enabled

0 comments on commit dc25660

Please sign in to comment.