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

@ -55,7 +55,7 @@ func TestReadEnv(t *testing.T) {
}
func TestReadAbraShEnvVars(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 TestReadAbraShEnvVars(t *testing.T) {
}
func TestReadAbraShCmdNames(t *testing.T) {
r := recipe.Get2("abra-test-recipe")
r := recipe.Get("abra-test-recipe")
err := r.EnsureExists()
if err != nil {
t.Fatal(err)
@ -110,13 +110,13 @@ func TestReadAbraShCmdNames(t *testing.T) {
}
func TestCheckEnv(t *testing.T) {
r := recipe.Get2("abra-test-recipe")
r := recipe.Get("abra-test-recipe")
err := r.EnsureExists()
if err != nil {
t.Fatal(err)
}
r2 := recipe.Get2(r.Name)
r2 := recipe.Get(r.Name)
envSample, err := r2.SampleEnv()
if err != nil {
t.Fatal(err)
@ -124,7 +124,7 @@ func TestCheckEnv(t *testing.T) {
app := appPkg.App{
Name: "test-app",
Recipe: recipe.Get2(r.Name),
Recipe: recipe.Get(r.Name),
Domain: "example.com",
Env: envSample,
Path: "example.com.env",
@ -144,13 +144,13 @@ func TestCheckEnv(t *testing.T) {
}
func TestCheckEnvError(t *testing.T) {
r := recipe.Get2("abra-test-recipe")
r := recipe.Get("abra-test-recipe")
err := r.EnsureExists()
if err != nil {
t.Fatal(err)
}
r2 := recipe.Get2(r.Name)
r2 := recipe.Get(r.Name)
envSample, err := r2.SampleEnv()
if err != nil {
t.Fatal(err)
@ -160,7 +160,7 @@ func TestCheckEnvError(t *testing.T) {
app := appPkg.App{
Name: "test-app",
Recipe: recipe.Get2(r.Name),
Recipe: recipe.Get(r.Name),
Domain: "example.com",
Env: envSample,
Path: "example.com.env",
@ -180,13 +180,13 @@ func TestCheckEnvError(t *testing.T) {
}
func TestEnvVarCommentsRemoved(t *testing.T) {
r := recipe.Get2("abra-test-recipe")
r := recipe.Get("abra-test-recipe")
err := r.EnsureExists()
if err != nil {
t.Fatal(err)
}
r2 := recipe.Get2(r.Name)
r2 := recipe.Get(r.Name)
envSample, err := r2.SampleEnv()
if err != nil {
t.Fatal(err)
@ -212,7 +212,7 @@ func TestEnvVarCommentsRemoved(t *testing.T) {
}
func TestEnvVarModifiersIncluded(t *testing.T) {
r := recipe.Get2("abra-test-recipe")
r := recipe.Get("abra-test-recipe")
err := r.EnsureExists()
if err != nil {
t.Fatal(err)