-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: globalConfig validator respects numbers in values in autoComplet…
…eFields (#957) * fix: globalConfig validator respects numbers in values in autoCompleteFields * fix: globalConfig validator respects numbers in values in autoCompleteFields.children
- Loading branch information
Showing
5 changed files
with
147 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
64 changes: 64 additions & 0 deletions
64
...nit/testdata/invalid_config_configuration_autoCompleteFields_children_integer_values.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
{ | ||
"pages": { | ||
"configuration": { | ||
"tabs": [ | ||
{ | ||
"name": "logging", | ||
"entity": [ | ||
{ | ||
"type": "singleSelect", | ||
"label": "Label", | ||
"options": { | ||
"disableSearch": true, | ||
"autoCompleteFields": [ | ||
{ | ||
"label": "Label group 1", | ||
"children": [ | ||
{ | ||
"value": 1, | ||
"label": "Label 1" | ||
}, | ||
{ | ||
"value": 2, | ||
"label": "Label 2" | ||
}, | ||
{ | ||
"value": 3, | ||
"label": "Label 3" | ||
} | ||
] | ||
}, | ||
{ | ||
"label": "Label group 2", | ||
"children": [ | ||
{ | ||
"value": 4, | ||
"label": "Label 4" | ||
}, | ||
{ | ||
"value": 5, | ||
"label": "Label 5" | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
"defaultValue": 1, | ||
"field": "loglevel" | ||
} | ||
], | ||
"title": "Logging" | ||
} | ||
], | ||
"title": "Configuration", | ||
"description": "Set up your add-on" | ||
} | ||
}, | ||
"meta": { | ||
"name": "Splunk_TA_UCCExample", | ||
"restRoot": "splunk_ta_uccexample", | ||
"version": "1.0.0", | ||
"displayName": "Splunk UCC test Add-on", | ||
"schemaVersion": "0.0.3" | ||
} | ||
} |
46 changes: 46 additions & 0 deletions
46
tests/unit/testdata/invalid_config_configuration_autoCompleteFields_integer_values.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{ | ||
"pages": { | ||
"configuration": { | ||
"tabs": [ | ||
{ | ||
"name": "logging", | ||
"entity": [ | ||
{ | ||
"type": "singleSelect", | ||
"label": "Label", | ||
"options": { | ||
"disableSearch": true, | ||
"autoCompleteFields": [ | ||
{ | ||
"value": 1, | ||
"label": "Label 1" | ||
}, | ||
{ | ||
"value": 2, | ||
"label": "Label 2" | ||
}, | ||
{ | ||
"value": 3, | ||
"label": "Label 3" | ||
} | ||
] | ||
}, | ||
"defaultValue": 1, | ||
"field": "loglevel" | ||
} | ||
], | ||
"title": "Logging" | ||
} | ||
], | ||
"title": "Configuration", | ||
"description": "Set up your add-on" | ||
} | ||
}, | ||
"meta": { | ||
"name": "Splunk_TA_UCCExample", | ||
"restRoot": "splunk_ta_uccexample", | ||
"version": "1.0.0", | ||
"displayName": "Splunk UCC test Add-on", | ||
"schemaVersion": "0.0.3" | ||
} | ||
} |