From fe160a6c3d73c7b910636c6d53b69c981559b968 Mon Sep 17 00:00:00 2001 From: hetangmodi-crest Date: Thu, 9 Jan 2025 14:05:12 +0530 Subject: [PATCH] chore: update globalConfig file --- .../static/js/build/globalConfig.json | 26 +++++++++++++------ 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/tests/testdata/expected_addons/expected_addon_no_configuration/Splunk_TA_UCCExample/appserver/static/js/build/globalConfig.json b/tests/testdata/expected_addons/expected_addon_no_configuration/Splunk_TA_UCCExample/appserver/static/js/build/globalConfig.json index 66f2122c5..57cf3224e 100644 --- a/tests/testdata/expected_addons/expected_addon_no_configuration/Splunk_TA_UCCExample/appserver/static/js/build/globalConfig.json +++ b/tests/testdata/expected_addons/expected_addon_no_configuration/Splunk_TA_UCCExample/appserver/static/js/build/globalConfig.json @@ -6,7 +6,7 @@ { "name": "example_input_one", "description": "This is a description for Input One", - "title": "Example Input", + "title": "Example Input One", "entity": [ { "type": "text", @@ -29,9 +29,16 @@ "required": true }, { - "type": "interval", + "type": "text", "field": "interval", "label": "Interval", + "validators": [ + { + "type": "regex", + "errorMsg": "Interval must be either a non-negative number, CRON interval or -1.", + "pattern": "^((?:-1|\\d+(?:\\.\\d+)?)|(([\\*\\d{1,2}\\,\\-\\/]+\\s){4}[\\*\\d{1,2}\\,\\-\\/]+))$" + } + ], "help": "Time interval of the data input, in seconds.", "required": true } @@ -112,9 +119,16 @@ "required": true }, { - "type": "interval", + "type": "text", "field": "interval", "label": "Interval", + "validators": [ + { + "type": "regex", + "errorMsg": "Interval must be either a non-negative number, CRON interval or -1.", + "pattern": "^((?:-1|\\d+(?:\\.\\d+)?)|(([\\*\\d{1,2}\\,\\-\\/]+\\s){4}[\\*\\d{1,2}\\,\\-\\/]+))$" + } + ], "help": "Time interval of the data input, in seconds.", "required": true } @@ -152,11 +166,7 @@ "label": "Status", "field": "disabled" } - ], - "customRow": { - "type": "external", - "src": "custom_row" - } + ] }, "useInputToggleConfirmation": true }