refactor(recipe): rename Recipe2 -> Recipe

This commit is contained in:
2024-07-08 13:19:40 +02:00
parent f638b6a16b
commit f14d49cc64
21 changed files with 85 additions and 85 deletions

View File

@ -47,7 +47,7 @@ func TestGetApp(t *testing.T) {
}
func TestGetComposeFiles(t *testing.T) {
r := recipe.Get2("abra-test-recipe")
r := recipe.Get("abra-test-recipe")
err := r.EnsureExists()
if err != nil {
t.Fatal(err)
@ -85,7 +85,7 @@ func TestGetComposeFiles(t *testing.T) {
}
for _, test := range tests {
r2 := recipe.Get2(r.Name)
r2 := recipe.Get(r.Name)
composeFiles, err := r2.GetComposeFiles(test.appEnv)
if err != nil {
t.Fatal(err)
@ -95,7 +95,7 @@ func TestGetComposeFiles(t *testing.T) {
}
func TestGetComposeFilesError(t *testing.T) {
r := recipe.Get2("abra-test-recipe")
r := recipe.Get("abra-test-recipe")
err := r.EnsureExists()
if err != nil {
t.Fatal(err)
@ -107,7 +107,7 @@ func TestGetComposeFilesError(t *testing.T) {
}
for _, test := range tests {
r2 := recipe.Get2(r.Name)
r2 := recipe.Get(r.Name)
_, err := r2.GetComposeFiles(test.appEnv)
if err == nil {
t.Fatalf("should have failed: %v", test.appEnv)