mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-17 12:28:07 +00:00
Sematically validate notification configs (#2850)
* Add new command * Update remaining jinja templates and references to use scriban * Add ado template validation * Validate ado and github templates * Remove unnecessary function * Update src/ApiService/ApiService/OneFuzzTypes/Model.cs Co-authored-by: Cheick Keita <kcheick@gmail.com> --------- Co-authored-by: Cheick Keita <kcheick@gmail.com>
This commit is contained in:
@ -24,4 +24,17 @@ resource configStoreFeatureflag 'Microsoft.AppConfiguration/configurationStores/
|
||||
}
|
||||
}
|
||||
|
||||
resource validateNotificationConfigSemantics 'Microsoft.AppConfiguration/configurationStores/keyValues@2021-10-01-preview' = {
|
||||
parent: featureFlags
|
||||
name: '.appconfig.featureflag~2FEnableValidateNotificationConfigSemantics'
|
||||
properties: {
|
||||
value: string({
|
||||
id: 'EnableScribanOnly'
|
||||
description: 'Check notification configs for valid PATs and fields'
|
||||
enabled: true
|
||||
})
|
||||
contentType: 'application/vnd.microsoft.appconfig.ff+json;charset=utf-8'
|
||||
}
|
||||
}
|
||||
|
||||
output AppConfigEndpoint string = 'https://${appConfigName}.azconfig.io'
|
||||
|
Reference in New Issue
Block a user