diff --git a/test/functional-portable/cli/noncloud/cli_test.go b/test/functional-portable/cli/noncloud/cli_test.go index 48b67e09bf..4a79c3dc0d 100644 --- a/test/functional-portable/cli/noncloud/cli_test.go +++ b/test/functional-portable/cli/noncloud/cli_test.go @@ -69,8 +69,7 @@ func verifyRecipeCLI(ctx context.Context, t *testing.T, test rp.RPTest) { resourceType := "Applications.Datastores/redisCaches" file := "../../../testrecipes/test-bicep-recipes/corerp-redis-recipe.bicep" - target := fmt.Sprintf("br:%s/dev/test-bicep-recipes/redis-recipe:%s", - strings.TrimPrefix(registry, "registry="), generateUniqueTag()) + target := fmt.Sprintf("br:%s/dev/test-bicep-recipes/redis-recipe:%s", registry, generateUniqueTag()) recipeName := "recipeName" recipeTemplate := fmt.Sprintf("%s/recipes/local-dev/rediscaches:%s", registry, version) diff --git a/test/functional-portable/datastoresrp/noncloud/resources/redis_test.go b/test/functional-portable/datastoresrp/noncloud/resources/redis_test.go index 0397ec8bbf..b4a4435623 100644 --- a/test/functional-portable/datastoresrp/noncloud/resources/redis_test.go +++ b/test/functional-portable/datastoresrp/noncloud/resources/redis_test.go @@ -18,6 +18,7 @@ package resource_test import ( "context" + "fmt" "strings" "testing" @@ -105,9 +106,10 @@ func Test_Redis_Recipe(t *testing.T) { status := redis.Properties["status"].(map[string]any) recipe := status["recipe"].(map[string]interface{}) require.Equal(t, "bicep", recipe["templateKind"].(string)) - templatePath := strings.Split(recipe["templatePath"].(string), ":")[0] - // TODO: Update this to the correct path - require.Equal(t, "radius-registry", templatePath) + // Updated templatePath is calculated by removing the tag from the templatePath + templatePath := recipe["templatePath"].(string)[:strings.LastIndex(recipe["templatePath"].(string), ":")] + registry := strings.TrimPrefix(testutil.GetBicepRecipeRegistry(), "registry=") + require.Equal(t, fmt.Sprintf("%s/test/testrecipes/test-bicep-recipes/redis-recipe-value-backed", registry), templatePath) }, }, })