diff --git a/pkg/config/app_test.go b/pkg/config/app_test.go index dbf91c05..5f8cb8e6 100644 --- a/pkg/config/app_test.go +++ b/pkg/config/app_test.go @@ -5,18 +5,11 @@ import ( "reflect" "testing" - "coopcloud.tech/abra/pkg/catalogue" "coopcloud.tech/abra/pkg/config" "coopcloud.tech/abra/pkg/recipe" "github.com/stretchr/testify/assert" ) -func setup(t *testing.T) { - if err := catalogue.EnsureCatalogue(); err != nil { - t.Fatal(err) - } -} - func TestNewApp(t *testing.T) { app, err := config.NewApp(ExpectedAppEnv, AppName, ExpectedAppFile) if err != nil { @@ -48,8 +41,6 @@ func TestGetApp(t *testing.T) { } func TestGetComposeFiles(t *testing.T) { - setup(t) - offline := true r, err := recipe.Get("abra-integration-test-recipe", offline) if err != nil { @@ -97,8 +88,6 @@ func TestGetComposeFiles(t *testing.T) { } func TestGetComposeFilesError(t *testing.T) { - setup(t) - offline := true r, err := recipe.Get("abra-integration-test-recipe", offline) if err != nil { diff --git a/pkg/config/env_test.go b/pkg/config/env_test.go index fc2c835f..0e25766e 100644 --- a/pkg/config/env_test.go +++ b/pkg/config/env_test.go @@ -8,7 +8,6 @@ import ( "strings" "testing" - "coopcloud.tech/abra/pkg/catalogue" "coopcloud.tech/abra/pkg/config" "coopcloud.tech/abra/pkg/recipe" ) @@ -87,10 +86,6 @@ func TestReadEnv(t *testing.T) { } func TestReadAbraShEnvVars(t *testing.T) { - if err := catalogue.EnsureCatalogue(); err != nil { - t.Fatal(err) - } - offline := true r, err := recipe.Get("abra-integration-test-recipe", offline) if err != nil { diff --git a/pkg/recipe/recipe_test.go b/pkg/recipe/recipe_test.go index fb0f29ae..59a57ebc 100644 --- a/pkg/recipe/recipe_test.go +++ b/pkg/recipe/recipe_test.go @@ -3,15 +3,10 @@ package recipe import ( "testing" - "coopcloud.tech/abra/pkg/catalogue" "github.com/stretchr/testify/assert" ) func TestGetVersionLabelLocalDoesNotUseTimeoutLabel(t *testing.T) { - if err := catalogue.EnsureCatalogue(); err != nil { - t.Fatal(err) - } - offline := true recipe, err := Get("traefik", offline) if err != nil { diff --git a/pkg/secret/secret_test.go b/pkg/secret/secret_test.go index 82dd200c..443b3bab 100644 --- a/pkg/secret/secret_test.go +++ b/pkg/secret/secret_test.go @@ -4,7 +4,6 @@ import ( "path" "testing" - "coopcloud.tech/abra/pkg/catalogue" "coopcloud.tech/abra/pkg/config" "coopcloud.tech/abra/pkg/recipe" "coopcloud.tech/abra/pkg/upstream/stack" @@ -13,10 +12,6 @@ import ( ) func TestReadSecretsConfig(t *testing.T) { - if err := catalogue.EnsureCatalogue(); err != nil { - t.Fatal(err) - } - offline := true recipe, err := recipe.Get("matrix-synapse", offline) if err != nil {