Skip to content

Commit

Permalink
Merge branch 'main' into superbeeny/secretstores
Browse files Browse the repository at this point in the history
  • Loading branch information
kachawla authored Aug 15, 2024
2 parents 9e83cdb + fb02873 commit d8b2413
Showing 1 changed file with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -392,13 +392,26 @@ func Test_BicepRecipe_LanguageFailure(t *testing.T) {
Code: recipes.RecipeDeploymentFailed,
MessageContains: "failed to deploy recipe",
Details: []step.DeploymentErrorDetail{
// The column index flagged for the error is different depending on what version of the extension is used.
// These values might be different between functional test and long running test runs.
// Instead of hardcoding values, we'll validate that the rest of the message is correct.
{
Code: "DeploymentFailed",
MessageContains: "At least one resource deployment operation failed. Please see the details for the specific operation that failed.",
Details: []step.DeploymentErrorDetail{
{
Code: "InvalidTemplate",
MessageContains: "Unable to process template language expressions for resource 'Applications.Core/extenders/corerp-resources-recipe-bicep-langugagefailure-failure' at line '1' and column '456'. 'Unable to evaluate the template language function 'substring'. The index parameter cannot be larger than the length of the string. The index parameter: '10', the length of the string parameter: '4'. Please see https://aka.ms/arm-function-substring for usage details.'",
MessageContains: "Unable to process template language expressions for resource 'Applications.Core/extenders/corerp-resources-recipe-bicep-langugagefailure-failure' at line '1' and column",
},
},
},
{
Code: "DeploymentFailed",
MessageContains: "At least one resource deployment operation failed. Please see the details for the specific operation that failed.",
Details: []step.DeploymentErrorDetail{
{
Code: "InvalidTemplate",
MessageContains: "'Unable to evaluate the template language function 'substring'. The index parameter cannot be larger than the length of the string. The index parameter: '10', the length of the string parameter: '4'. Please see https://aka.ms/arm-function-substring for usage details.'",
},
},
},
Expand Down

0 comments on commit d8b2413

Please sign in to comment.