-
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: OpenAPI schema generator fixes for when multiple inputs are defi…
…ned (#1016) Previously it was trying to use the parent tables.actions object but that doesn't work when you've only got a single input. Also added a sample app that has multiple inputs to test, not sure how to add it to the test suite though? --------- Co-authored-by: sgoral <sgoral@splunk.com>
- Loading branch information
1 parent
bc82425
commit 332db43
Showing
11 changed files
with
560 additions
and
1 deletion.
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
472 changes: 472 additions & 0 deletions
472
tests/testdata/test_addons/package_global_config_multi_input/globalConfig.json
Large diffs are not rendered by default.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
tests/testdata/test_addons/package_global_config_multi_input/package/README.txt
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 @@ | ||
Just a readme |
54 changes: 54 additions & 0 deletions
54
tests/testdata/test_addons/package_global_config_multi_input/package/app.manifest
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,54 @@ | ||
{ | ||
"schemaVersion": "2.0.0", | ||
"info": { | ||
"title": "Splunk Add-on for UCC Example", | ||
"id": { | ||
"group": null, | ||
"name": "Splunk_TA_UCCExample", | ||
"version": "7.0.1" | ||
}, | ||
"author": [ | ||
{ | ||
"name": "Splunk Inc.", | ||
"email": null, | ||
"company": null | ||
} | ||
], | ||
"releaseDate": null, | ||
"description": "Splunk Add-on for UCC Example", | ||
"classification": { | ||
"intendedAudience": null, | ||
"categories": [], | ||
"developmentStatus": null | ||
}, | ||
"commonInformationModels": null, | ||
"license": { | ||
"name": null, | ||
"text": "LICENSES/Apache-2.0.txt", | ||
"uri": null | ||
}, | ||
"privacyPolicy": { | ||
"name": null, | ||
"text": null, | ||
"uri": null | ||
}, | ||
"releaseNotes": { | ||
"name": null, | ||
"text": "./README.txt", | ||
"uri": null | ||
} | ||
}, | ||
"dependencies": null, | ||
"tasks": null, | ||
"inputGroups": null, | ||
"incompatibleApps": null, | ||
"platformRequirements": null, | ||
"supportedDeployments": [ | ||
"_standalone", | ||
"_distributed" | ||
], | ||
"targetWorkloads": [ | ||
"_search_heads", | ||
"_indexers" | ||
] | ||
} |
15 changes: 15 additions & 0 deletions
15
tests/testdata/test_addons/package_global_config_multi_input/package/default/app.conf
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,15 @@ | ||
[install] | ||
build = 0 | ||
|
||
[launcher] | ||
author = Splunk Inc. | ||
version = 0.1.0 | ||
description = Splunk_TA_UCCExample | ||
|
||
[ui] | ||
is_visible = false | ||
label = Splunk_TA_UCCExample | ||
docs_section_override=AddOns:released | ||
|
||
[package] | ||
id = Splunk_TA_UCCExample |
1 change: 1 addition & 0 deletions
1
tests/testdata/test_addons/package_global_config_multi_input/package/lib/requirements.txt
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 @@ | ||
splunktaucclib |
Binary file added
BIN
+3.27 KB
...stdata/test_addons/package_global_config_multi_input/package/static/appIcon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+3.27 KB
...ata/test_addons/package_global_config_multi_input/package/static/appIconAlt.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+6.58 KB
.../test_addons/package_global_config_multi_input/package/static/appIconAlt_2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+6.58 KB
...ata/test_addons/package_global_config_multi_input/package/static/appIcon_2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.