@@ -60,7 +60,7 @@ func TestRecipePackDataModelToVersioned(t *testing.T) {
6060 "Applications.Core/containers" : {
6161 RecipeKind : "bicep" ,
6262 RecipeLocation : "br:myregistry.azurecr.io/recipes/container:1.0" ,
63- Parameters : map [string ]any {
63+ RecipeParameters : map [string ]any {
6464 "param1" : "value1" ,
6565 },
6666 PlainHTTP : false ,
@@ -164,7 +164,7 @@ func TestRecipePackDataModelFromVersioned(t *testing.T) {
164164 "Applications.Core/containers": {
165165 "recipeKind": "bicep",
166166 "recipeLocation": "br:myregistry.azurecr.io/recipes/container:1.0",
167- "parameters ": {
167+ "recipeParameters ": {
168168 "param1": "value1"
169169 },
170170 "plainHTTP": false
@@ -205,7 +205,7 @@ func TestRecipePackDataModelFromVersioned(t *testing.T) {
205205 "Applications.Core/containers" : {
206206 RecipeKind : "bicep" ,
207207 RecipeLocation : "br:myregistry.azurecr.io/recipes/container:1.0" ,
208- Parameters : map [string ]any {
208+ RecipeParameters : map [string ]any {
209209 "param1" : "value1" ,
210210 },
211211 PlainHTTP : false ,
@@ -394,8 +394,8 @@ func TestRecipePackDataModelFromVersioned(t *testing.T) {
394394 require .Equal (t , expectedRecipe .PlainHTTP , actualRecipe .PlainHTTP , "PlainHTTP for recipe %s should match. Expected: %v, Actual: %v" , key , expectedRecipe .PlainHTTP , actualRecipe .PlainHTTP )
395395
396396 // Note: JSON unmarshaling can change the type of parameters, especially for numbers
397- if expectedRecipe .Parameters != nil {
398- require .Equal (t , expectedRecipe .Parameters , actualRecipe .Parameters )
397+ if expectedRecipe .RecipeParameters != nil {
398+ require .Equal (t , expectedRecipe .RecipeParameters , actualRecipe .RecipeParameters )
399399 }
400400 }
401401 }
@@ -428,7 +428,7 @@ func TestRecipePackRoundTripConversion(t *testing.T) {
428428 "Applications.Core/containers" : {
429429 RecipeKind : "bicep" ,
430430 RecipeLocation : "br:test.azurecr.io/recipes/container:latest" ,
431- Parameters : map [string ]any {
431+ RecipeParameters : map [string ]any {
432432 "cpu" : "0.5" ,
433433 "memory" : "1Gi" ,
434434 },
@@ -471,7 +471,7 @@ func TestRecipePackRoundTripConversion(t *testing.T) {
471471 require .Equal (t , originalRecipe .RecipeKind , resultRecipe .RecipeKind )
472472 require .Equal (t , originalRecipe .RecipeLocation , resultRecipe .RecipeLocation )
473473 require .Equal (t , originalRecipe .PlainHTTP , resultRecipe .PlainHTTP )
474- require .Equal (t , originalRecipe .Parameters , resultRecipe .Parameters )
474+ require .Equal (t , originalRecipe .RecipeParameters , resultRecipe .RecipeParameters )
475475 }
476476}
477477
0 commit comments