-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[AppConfig] Validate key and feature names before setting and importing #11753
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
ae46d83
Adding input validation for key and feature name
avanigupta 9217186
Adding unit tests
avanigupta 5eba9fa
Add key validation for keyvault ref
avanigupta fb24753
Add missing comma in credscansiuppressions file
avanigupta fe60d58
Fix styling issue
avanigupta 47e002f
Make reserved keyword validations case insensitive
avanigupta 9208d37
Merge branch 'dev' into avanigupta/keynamevalidation
avanigupta 122f5f2
Update history file
avanigupta 10313f6
Fix styling issue
avanigupta 7b543fe
Merge branch 'dev' into avanigupta/keynamevalidation
avanigupta fce453b
Merge branch 'dev' into avanigupta/keynamevalidation
avanigupta 5d83657
Merge branch 'dev' into avanigupta/keynamevalidation
avanigupta 9ed7f4b
Merge branch 'dev' into avanigupta/keynamevalidation
avanigupta 3f0ae7f
Merge branch 'avanigupta/keynamevalidation' of https://github.com/ava…
avanigupta 599bb3e
Fix style issues
avanigupta 907f5e6
Merge branch 'dev' into avanigupta/keynamevalidation
Juliehzl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
20 changes: 3 additions & 17 deletions
20
src/azure-cli/azure/cli/command_modules/appconfig/tests/latest/export.json
This file contains hidden or 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 |
|---|---|---|
| @@ -1,20 +1,6 @@ | ||
| { | ||
| "BackgroundColor": "red", | ||
| "Language": "spanish", | ||
| "Langugage": "English", | ||
| "Settings:BackgroundColor": { | ||
| "cars": { | ||
| "Toyota": "Acura" | ||
| }, | ||
| "ship": [ | ||
| "ship1", | ||
| "ship2", | ||
| "ship3" | ||
| ] | ||
| }, | ||
| "abc": "", | ||
| "appabc": "", | ||
| "background-color": "black", | ||
| "font-size": "34", | ||
| "language": "spanish" | ||
| "FeatureManagement": { | ||
| "Beta": false | ||
| } | ||
| } |
1 change: 1 addition & 0 deletions
1
src/azure-cli/azure/cli/command_modules/appconfig/tests/latest/export_features_prop.json
This file contains hidden or 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 |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| #Mon Jan 20 09:34:31 Pacific Standard Time 2020 | ||
|
|
||
| Color=Red | ||
| Region=West US | ||
| feature-management.FalseFeature=false | ||
|
|
||
6 changes: 6 additions & 0 deletions
6
...re-cli/azure/cli/command_modules/appconfig/tests/latest/export_valid_kv_and_features.json
This file contains hidden or 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,6 @@ | ||
| { | ||
| "Language": "spanish", | ||
| "FeatureManagement": { | ||
| "Beta": false | ||
| } | ||
| } |
8 changes: 8 additions & 0 deletions
8
...-cli/azure/cli/command_modules/appconfig/tests/latest/import_invalid_kv_and_features.json
This file contains hidden or 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,8 @@ | ||
| { | ||
| "Background%%Color": "red", | ||
| "Language": "spanish", | ||
| "FeatureManagement": { | ||
| "Beta": false, | ||
| "$Percentage$": true | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.