diff --git a/tests/unit/testdata/alert_actions.conf.generated b/tests/unit/testdata/alert_actions.conf.generated new file mode 100644 index 000000000..4c7387665 --- /dev/null +++ b/tests/unit/testdata/alert_actions.conf.generated @@ -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 = diff --git a/tests/unit/testdata/alert_actions.conf.spec.generated b/tests/unit/testdata/alert_actions.conf.spec.generated new file mode 100644 index 000000000..a1e581f10 --- /dev/null +++ b/tests/unit/testdata/alert_actions.conf.spec.generated @@ -0,0 +1,7 @@ +[test_alert] +param._cam = Adaptive Response parameters. +param.name = Name. It's a required parameter. It's default value is xyz. +param.all_incidents = All Incidents. +param.table_list = Table List. It's default value is problem. +param.action = Action:. It's a required parameter. It's default value is two. +param.account = Select Account. It's a required parameter. diff --git a/tests/unit/testdata/app.conf b/tests/unit/testdata/app.conf new file mode 100644 index 000000000..5c84be61f --- /dev/null +++ b/tests/unit/testdata/app.conf @@ -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 diff --git a/tests/unit/testdata/app.conf.minimal b/tests/unit/testdata/app.conf.minimal new file mode 100644 index 000000000..2e6b45545 --- /dev/null +++ b/tests/unit/testdata/app.conf.minimal @@ -0,0 +1,2 @@ +[id] +version = 0.0.1 \ No newline at end of file diff --git a/tests/unit/testdata/app.conf.minimal.updated b/tests/unit/testdata/app.conf.minimal.updated new file mode 100644 index 000000000..8ba25ae78 --- /dev/null +++ b/tests/unit/testdata/app.conf.minimal.updated @@ -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 diff --git a/tests/unit/testdata/app.conf.supported_themes b/tests/unit/testdata/app.conf.supported_themes new file mode 100644 index 000000000..9f4241032 --- /dev/null +++ b/tests/unit/testdata/app.conf.supported_themes @@ -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 diff --git a/tests/unit/testdata/app.conf.updated b/tests/unit/testdata/app.conf.updated new file mode 100644 index 000000000..922cb3599 --- /dev/null +++ b/tests/unit/testdata/app.conf.updated @@ -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 diff --git a/tests/unit/testdata/app.conf.updated_not_visible b/tests/unit/testdata/app.conf.updated_not_visible new file mode 100644 index 000000000..84c82f12f --- /dev/null +++ b/tests/unit/testdata/app.conf.updated_not_visible @@ -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 diff --git a/tests/unit/testdata/eventtypes.conf.generated b/tests/unit/testdata/eventtypes.conf.generated new file mode 100644 index 000000000..053deadaf --- /dev/null +++ b/tests/unit/testdata/eventtypes.conf.generated @@ -0,0 +1,2 @@ +[test_alert_modaction_result] +search = sourcetype="test:incident" diff --git a/tests/unit/testdata/server.conf.generated b/tests/unit/testdata/server.conf.generated new file mode 100644 index 000000000..018fc34c9 --- /dev/null +++ b/tests/unit/testdata/server.conf.generated @@ -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 diff --git a/tests/unit/testdata/tags.conf.generated b/tests/unit/testdata/tags.conf.generated new file mode 100644 index 000000000..dc27f8eeb --- /dev/null +++ b/tests/unit/testdata/tags.conf.generated @@ -0,0 +1,2 @@ +[eventtype=test_alert_modaction_result] +modaction_result = enabled